Skip to content

Commit f7751fd

Browse files
committed
Fix CS
1 parent 2365bd7 commit f7751fd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ protected function parseImport(RouteCollection $collection, \DOMElement $node, $
182182
$this->setCurrentDir(\dirname($path));
183183

184184
/** @var RouteCollection[] $imported */
185-
$imported = $this->import($resource, ('' !== $type ? $type : null), false, $file, $exclude) ?: [];
185+
$imported = $this->import($resource, '' !== $type ? $type : null, false, $file, $exclude) ?: [];
186186

187187
if (!\is_array($imported)) {
188188
$imported = [$imported];

Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testDumpWithRoutes()
8787

8888
public function testDumpWithSimpleLocalizedRoutes()
8989
{
90-
$this->routeCollection->add('test', (new Route('/foo')));
90+
$this->routeCollection->add('test', new Route('/foo'));
9191
$this->routeCollection->add('test.en', (new Route('/testing/is/fun'))->setDefault('_locale', 'en')->setDefault('_canonical_route', 'test')->setRequirement('_locale', 'en'));
9292
$this->routeCollection->add('test.nl', (new Route('/testen/is/leuk'))->setDefault('_locale', 'nl')->setDefault('_canonical_route', 'test')->setRequirement('_locale', 'nl'));
9393

Tests/Generator/Dumper/PhpGeneratorDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testDumpWithRoutes()
9090

9191
public function testDumpWithSimpleLocalizedRoutes()
9292
{
93-
$this->routeCollection->add('test', (new Route('/foo')));
93+
$this->routeCollection->add('test', new Route('/foo'));
9494
$this->routeCollection->add('test.en', (new Route('/testing/is/fun'))->setDefault('_locale', 'en')->setDefault('_canonical_route', 'test')->setRequirement('_locale', 'en'));
9595
$this->routeCollection->add('test.nl', (new Route('/testen/is/leuk'))->setDefault('_locale', 'nl')->setDefault('_canonical_route', 'test')->setRequirement('_locale', 'nl'));
9696

Tests/RouteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public function testLocaleRequirementWithLocalizedRoutes(Route $route)
334334
public function provideNonLocalizedRoutes()
335335
{
336336
return [
337-
[(new Route('/foo'))],
337+
[new Route('/foo')],
338338
[(new Route('/foo'))->setDefault('_locale', 'en')],
339339
[(new Route('/foo'))->setDefault('_locale', 'en')->setDefault('_canonical_route', 'foo')],
340340
[(new Route('/foo'))->setDefault('_locale', 'en')->setDefault('_canonical_route', 'foo')->setRequirement('_locale', 'foobar')],

0 commit comments

Comments
 (0)