Skip to content

Commit

Permalink
[1.x]: bump friendsofphp/php-cs-fixer from 3.14.1 to 3.52.1 (#397)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump friendsofphp/php-cs-fixer from 3.14.1 to 3.52.1

Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.14.1 to 3.52.1.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](PHP-CS-Fixer/PHP-CS-Fixer@v3.14.1...v3.52.1)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [ci] fix styling

* Update ValidReceipt.php

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: imdhemy <imdhemy@gmail.com>
  • Loading branch information
dependabot[bot] and imdhemy authored Apr 2, 2024
1 parent ac5491c commit 8580c33
Show file tree
Hide file tree
Showing 24 changed files with 73 additions and 230 deletions.
203 changes: 63 additions & 140 deletions composer.lock

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/Console/LiapConfigPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@ class LiapConfigPublishCommand extends Command
*/
public const MESSAGE_SUCCESS = 'liap.php published successfully';

/**
* {@inheritdoc}
*/
protected $signature = 'liap:config:publish {--f|force}';

/**
* {@inheritdoc}
*/
protected $description = 'Publishes the LIAP configuration file.';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Console/LiapUrlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ private function generateUnsignedUrls(array $providers): void
protected function shouldGenerateSignedUrls(): bool
{
return
config('liap.routing.signed') ||
$this->confirm(self::CONFIRM_GENERATE_SIGNED_ROUTES);
config('liap.routing.signed')
|| $this->confirm(self::CONFIRM_GENERATE_SIGNED_ROUTES);
}

protected function generateUrls(): void
Expand Down
6 changes: 0 additions & 6 deletions src/Console/RequestTestNotificationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,8 @@
*/
class RequestTestNotificationCommand extends Command
{
/**
* {@inheritdoc}
*/
protected $signature = 'liap:apple:test-notification {--s|sandbox}';

/**
* {@inheritdoc}
*/
protected $description = 'Request a test notification from Apple';

/**
Expand Down
3 changes: 0 additions & 3 deletions src/Console/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public function __construct(LaravelUrlGenerator $urlGenerator)
$this->urlGenerator = $urlGenerator;
}

/**
* {@inheritDoc}
*/
public function generate(string $provider): string
{
$singedUrl = $this->urlGenerator->signedRoute('liap.serverNotifications');
Expand Down
4 changes: 2 additions & 2 deletions src/Events/AppStore/DidChangeRenewalPref.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class DidChangeRenewalPref extends PurchaseEvent
public function getAutoRenewProductId(): ?string
{
assert(
$this->serverNotification instanceof AppStoreServerNotification ||
$this->serverNotification instanceof AppStoreV2ServerNotification
$this->serverNotification instanceof AppStoreServerNotification
|| $this->serverNotification instanceof AppStoreV2ServerNotification
);

if ($this->serverNotification instanceof AppStoreServerNotification) {
Expand Down
8 changes: 4 additions & 4 deletions src/Events/AppStore/DidChangeRenewalStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class DidChangeRenewalStatus extends PurchaseEvent
public function isAutoRenewal(): bool
{
assert(
$this->serverNotification instanceof AppStoreServerNotification ||
$this->serverNotification instanceof AppStoreV2ServerNotification
$this->serverNotification instanceof AppStoreServerNotification
|| $this->serverNotification instanceof AppStoreV2ServerNotification
);

if ($this->serverNotification instanceof AppStoreServerNotification) {
Expand All @@ -35,8 +35,8 @@ public function isAutoRenewal(): bool
public function getAutoRenewStatusChangeDate(): ?Time
{
assert(
$this->serverNotification instanceof AppStoreServerNotification ||
$this->serverNotification instanceof AppStoreV2ServerNotification
$this->serverNotification instanceof AppStoreServerNotification
|| $this->serverNotification instanceof AppStoreV2ServerNotification
);

if ($this->serverNotification instanceof AppStoreServerNotification) {
Expand Down
7 changes: 2 additions & 5 deletions src/Http/Rules/ValidReceipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ class ValidReceipt implements Rule
/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
*
* @throws InvalidReceiptException
*
* @deprecated - This rule will be removed in the next major release
*
* @psalm-suppress MixedAssignment
* @psalm-suppress MixedArrayAccess
* @psalm-suppress MixedArgument
* @psalm-suppress DeprecatedMethod
*
* @deprecated - This rule will be removed in the next major release
*/
public function passes($attribute, $value): bool
{
Expand Down
3 changes: 0 additions & 3 deletions src/ServiceProviders/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
*/
class EventServiceProvider extends BaseEventServiceProvider
{
/**
* {@inheritdoc}
*/
public function __construct(Application $app)
{
parent::__construct($app);
Expand Down
3 changes: 0 additions & 3 deletions tests/Console/LiapConfigPublishCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ class LiapConfigPublishCommandTest extends TestCase
{
private string $configFilePath;

/**
* {@inheritdoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
3 changes: 0 additions & 3 deletions tests/Console/LiapUrlCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ class LiapUrlCommandTest extends TestCase

private UrlGeneratorContract $urlGenerator;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
6 changes: 0 additions & 6 deletions tests/Console/RequestTestNotificationCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ class RequestTestNotificationCommandTest extends TestCase
{
private string $privateKey;

/**
* {@inheritdoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down Expand Up @@ -105,9 +102,6 @@ public function it_can_request_a_test_notification_from_sandbox_server(): void
->assertExitCode(Command::SUCCESS);
}

/**
* {@inheritdoc}
*/
protected function tearDown(): void
{
parent::tearDown();
Expand Down
9 changes: 0 additions & 9 deletions tests/Console/UrlGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ class UrlGeneratorTest extends TestCase
*/
protected $app;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down Expand Up @@ -126,9 +123,6 @@ public function has_valid_signature_delegates_call_to_laravel_9_implementation()
Mockery::close();
}

/**
* {@inheritDoc}
*/
protected function resolveApplication()
{
return tap(new Application($this->getBasePath()), function ($app) {
Expand All @@ -138,9 +132,6 @@ protected function resolveApplication()
});
}

/**
* {@inheritDoc}
*/
protected function tearDown(): void
{
$this->app->setCustomVersion(Application::ORIGINAL_VERSION);
Expand Down
3 changes: 0 additions & 3 deletions tests/Doubles/Laravel9/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ class Application extends IlluminateApplication
*/
public const ORIGINAL_VERSION = IlluminateApplication::VERSION;

/**
* {@inheritDoc}
*/
public function version(): string
{
return $this->customVersion;
Expand Down
3 changes: 0 additions & 3 deletions tests/Doubles/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
*/
class UrlGenerator extends BaseUrlGenerator
{
/**
* {@inheritDoc}
*/
public function generate(string $provider): string
{
return sprintf('https://example.com?signature=fake_signature&provider=%s', $provider);
Expand Down
3 changes: 0 additions & 3 deletions tests/Facades/ProductTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ class ProductTest extends TestCase
*/
private $itemId;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
3 changes: 0 additions & 3 deletions tests/Facades/SubscriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ class SubscriptionTest extends TestCase
*/
private $itemId;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
3 changes: 0 additions & 3 deletions tests/Faker.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public function __construct(Generator $faker)
$this->faker = $faker;
}

/**
* @return mixed
*/
public function __call($name, $arguments)
{
return $this->faker->$name(...$arguments);
Expand Down
3 changes: 0 additions & 3 deletions tests/Http/Controllers/ServerNotificationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

class ServerNotificationControllerTest extends TestCase
{
/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
2 changes: 0 additions & 2 deletions tests/ServerNotifications/AppStoreServerNotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class AppStoreServerNotificationTest extends TestCase
private array $serverNotificationBody;

/**
* {@inheritDoc}
*
* @throws JsonException
*/
protected function setUp(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class AppStoreV2ServerNotificationTest extends TestCase

private AppStoreV2ServerNotification $sut;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
3 changes: 0 additions & 3 deletions tests/ServerNotifications/GoogleServerNotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ class GoogleServerNotificationTest extends TestCase

private DeveloperNotification $developerNotification;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
3 changes: 0 additions & 3 deletions tests/Subscriptions/AppStoreSubscriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ class AppStoreSubscriptionTest extends TestCase
*/
private $appStoreSubscription;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();
Expand Down
9 changes: 0 additions & 9 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,13 @@ class TestCase extends Orchestra
{
protected Faker $faker;

/**
* {@inheritDoc}
*/
protected function setUp(): void
{
parent::setUp();

$this->faker = new Faker(Factory::create());
}

/**
* {@inheritdoc}
*/
protected function getPackageProviders($app): array
{
return [
Expand All @@ -43,9 +37,6 @@ protected function getPackageProviders($app): array
];
}

/**
* {@inheritdoc}
*/
public function getEnvironmentSetUp($app): void
{
$app['config']->set('database.default', 'sqlite');
Expand Down

0 comments on commit 8580c33

Please sign in to comment.