From c722e65c3b1200880fad0e991bf31bb89395b615 Mon Sep 17 00:00:00 2001 From: Renan Date: Wed, 16 Oct 2024 22:41:31 +0200 Subject: [PATCH] CS fixes --- src/Factory/DeviceDetectorProxyFactory.php | 6 +++--- tests/ClientHintsTest.php | 4 ++-- tests/RoutingConditionServiceTest.php | 12 ++++++------ tests/ServiceAvailabilityTest.php | 8 ++++---- tests/Util/Compiler/CompilerPassFactory.php | 4 ++-- tests/VersionTruncationTest.php | 10 +++++----- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/Factory/DeviceDetectorProxyFactory.php b/src/Factory/DeviceDetectorProxyFactory.php index 831644a..c5dd689 100644 --- a/src/Factory/DeviceDetectorProxyFactory.php +++ b/src/Factory/DeviceDetectorProxyFactory.php @@ -59,7 +59,7 @@ public function createDeviceDetectorProxy(): DeviceDetector return (new AccessInterceptorValueHolderFactory($configuration)) ->createProxy( $instance, - $prefixInterceptors + $prefixInterceptors, ); } @@ -89,7 +89,7 @@ private function buildAutoParserCallerForMagicCall(): callable AccessInterceptorInterface $proxy, DeviceDetector $real, string $method, - array $arguments + array $arguments, ): void { if (!$real->isParsed() && 0 === stripos($arguments['methodName'] ?? '', 'is')) { $real->parse(); @@ -107,7 +107,7 @@ private function buildAutoParserCaller(): callable { return static function ( AccessInterceptorInterface $proxy, - DeviceDetector $real + DeviceDetector $real, ): void { if (!$real->isParsed()) { $real->parse(); diff --git a/tests/ClientHintsTest.php b/tests/ClientHintsTest.php index ed4d1f9..30ca43f 100644 --- a/tests/ClientHintsTest.php +++ b/tests/ClientHintsTest.php @@ -52,8 +52,8 @@ public function testFactoryCreatesClientHintsFromRequest(): void $kernel->appendCompilerPass( CompilerPassFactory::createPublicAlias( 'client_hints_factory.public', - ClientHintsFactoryInterface::class - ) + ClientHintsFactoryInterface::class, + ), ); $kernel->boot(); diff --git a/tests/RoutingConditionServiceTest.php b/tests/RoutingConditionServiceTest.php index 62793ca..d52f6cf 100644 --- a/tests/RoutingConditionServiceTest.php +++ b/tests/RoutingConditionServiceTest.php @@ -27,8 +27,8 @@ static function (ContainerBuilder $containerBuilder): void { self::assertTrue($definition->hasTag('routing.condition_service')); self::assertSame([['alias' => 'device']], $definition->getTag('routing.condition_service')); - } - ) + }, + ), ); $kernel->boot(); @@ -50,8 +50,8 @@ static function (ContainerBuilder $containerBuilder): void { self::assertTrue($definition->hasTag('routing.condition_service')); self::assertSame([['alias' => 'custom']], $definition->getTag('routing.condition_service')); - } - ) + }, + ), ); $kernel->boot(); @@ -69,8 +69,8 @@ public function testDisabling(): void static function (ContainerBuilder $containerBuilder): void { self::assertTrue($containerBuilder->hasDefinition(DeviceDetector::class)); self::assertFalse($containerBuilder->getDefinition(DeviceDetector::class)->hasTag('routing.condition_service')); - } - ) + }, + ), ); $kernel->boot(); diff --git a/tests/ServiceAvailabilityTest.php b/tests/ServiceAvailabilityTest.php index 6a71d05..dfef4ea 100644 --- a/tests/ServiceAvailabilityTest.php +++ b/tests/ServiceAvailabilityTest.php @@ -25,8 +25,8 @@ public function testDeviceDetectorServiceExistsAndIsPrivate(): void static function (ContainerBuilder $containerBuilder): void { self::assertTrue($containerBuilder->hasDefinition(DeviceDetector::class)); self::assertFalse($containerBuilder->getDefinition(DeviceDetector::class)->isPublic()); - } - ) + }, + ), ); $kernel->boot(); @@ -57,8 +57,8 @@ public function testDeviceDetectorFactoryService(): void $kernel->appendCompilerPass( CompilerPassFactory::createPublicAlias( 'device_detector_factory.public', - DeviceDetectorFactoryInterface::class - ) + DeviceDetectorFactoryInterface::class, + ), ); $kernel->boot(); diff --git a/tests/Util/Compiler/CompilerPassFactory.php b/tests/Util/Compiler/CompilerPassFactory.php index 7be991f..f491da6 100644 --- a/tests/Util/Compiler/CompilerPassFactory.php +++ b/tests/Util/Compiler/CompilerPassFactory.php @@ -17,7 +17,7 @@ static function (ContainerBuilder $containerBuilder) use ($alias, $id): void { $containerBuilder ->setAlias($alias, $id) ->setPublic(true); - } + }, ); } @@ -33,7 +33,7 @@ static function (ContainerBuilder $containerBuilder) use ($id): void { ->register(sprintf('%s.traceable', $id), TraceableAdapter::class) ->setDecoratedService($id, sprintf('%s.inner', $id)) ->addArgument(new Reference(sprintf('%s.inner', $id))); - } + }, ); } } diff --git a/tests/VersionTruncationTest.php b/tests/VersionTruncationTest.php index 1a9f686..e5abee5 100644 --- a/tests/VersionTruncationTest.php +++ b/tests/VersionTruncationTest.php @@ -27,8 +27,8 @@ public function testDefaultsTargetsToMinor(): void $kernel->appendCompilerPass( CompilerPassFactory::createPublicAlias( 'device_detector_factory.public', - DeviceDetectorFactoryInterface::class - ) + DeviceDetectorFactoryInterface::class, + ), ); $kernel->boot(); @@ -49,7 +49,7 @@ public function testSetVersionTruncation( string $userAgent, string $truncation, string $expectedOsVersion, - string $expectedClientVersion + string $expectedClientVersion, ): void { $kernel = new Kernel('test', true); $kernel->appendBundle(new FrameworkBundle()); @@ -60,8 +60,8 @@ public function testSetVersionTruncation( $kernel->appendCompilerPass( CompilerPassFactory::createPublicAlias( 'device_detector_factory.public', - DeviceDetectorFactoryInterface::class - ) + DeviceDetectorFactoryInterface::class, + ), ); $kernel->boot();