Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
renanbr committed Oct 16, 2024
1 parent 31c2461 commit c722e65
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions src/Factory/DeviceDetectorProxyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function createDeviceDetectorProxy(): DeviceDetector
return (new AccessInterceptorValueHolderFactory($configuration))
->createProxy(
$instance,
$prefixInterceptors
$prefixInterceptors,
);
}

Expand Down Expand Up @@ -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();
Expand All @@ -107,7 +107,7 @@ private function buildAutoParserCaller(): callable
{
return static function (
AccessInterceptorInterface $proxy,
DeviceDetector $real
DeviceDetector $real,
): void {
if (!$real->isParsed()) {
$real->parse();
Expand Down
4 changes: 2 additions & 2 deletions tests/ClientHintsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public function testFactoryCreatesClientHintsFromRequest(): void
$kernel->appendCompilerPass(
CompilerPassFactory::createPublicAlias(
'client_hints_factory.public',
ClientHintsFactoryInterface::class
)
ClientHintsFactoryInterface::class,
),
);

$kernel->boot();
Expand Down
12 changes: 6 additions & 6 deletions tests/RoutingConditionServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down
8 changes: 4 additions & 4 deletions tests/ServiceAvailabilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -57,8 +57,8 @@ public function testDeviceDetectorFactoryService(): void
$kernel->appendCompilerPass(
CompilerPassFactory::createPublicAlias(
'device_detector_factory.public',
DeviceDetectorFactoryInterface::class
)
DeviceDetectorFactoryInterface::class,
),
);

$kernel->boot();
Expand Down
4 changes: 2 additions & 2 deletions tests/Util/Compiler/CompilerPassFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static function (ContainerBuilder $containerBuilder) use ($alias, $id): void {
$containerBuilder
->setAlias($alias, $id)
->setPublic(true);
}
},
);
}

Expand All @@ -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)));
}
},
);
}
}
10 changes: 5 additions & 5 deletions tests/VersionTruncationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function testDefaultsTargetsToMinor(): void
$kernel->appendCompilerPass(
CompilerPassFactory::createPublicAlias(
'device_detector_factory.public',
DeviceDetectorFactoryInterface::class
)
DeviceDetectorFactoryInterface::class,
),
);

$kernel->boot();
Expand All @@ -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());
Expand All @@ -60,8 +60,8 @@ public function testSetVersionTruncation(
$kernel->appendCompilerPass(
CompilerPassFactory::createPublicAlias(
'device_detector_factory.public',
DeviceDetectorFactoryInterface::class
)
DeviceDetectorFactoryInterface::class,
),
);

$kernel->boot();
Expand Down

0 comments on commit c722e65

Please sign in to comment.