Skip to content

Commit cec68d5

Browse files
authored
Apply fixes from StyleCI (#405)
[ci skip] [skip ci]
1 parent 3407322 commit cec68d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/DependencyInjection/CmfRoutingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private function loadOrmProvider(array $config, LoaderInterface $loader, Contain
248248
$container->setParameter('cmf_routing.backend_type_orm', true);
249249
$container->setParameter('cmf_routing.dynamic.persistence.orm.manager_name', $config['manager_name']);
250250
$container->setParameter('cmf_routing.dynamic.persistence.orm.route_class', $config['route_class']);
251-
if ($config['route_class'] === Route::class) {
251+
if (Route::class === $config['route_class']) {
252252
$container->setParameter('cmf_routing.backend_type_orm_default', true);
253253
} else {
254254
$container->setParameter('cmf_routing.backend_type_orm_custom', true);

src/Doctrine/Phpcr/RedirectRoute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,6 @@ public function getRouteChildren()
269269
*/
270270
protected function isBooleanOption($name)
271271
{
272-
return $name === 'add_trailing_slash' || parent::isBooleanOption($name);
272+
return 'add_trailing_slash' === $name || parent::isBooleanOption($name);
273273
}
274274
}

src/Doctrine/Phpcr/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,6 @@ public function getChildren()
297297
*/
298298
protected function isBooleanOption($name)
299299
{
300-
return $name === 'add_trailing_slash' || parent::isBooleanOption($name);
300+
return 'add_trailing_slash' === $name || parent::isBooleanOption($name);
301301
}
302302
}

0 commit comments

Comments
 (0)