@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function dontSupportWhenPathIsNotExisting() |
52 | 52 | { |
53 | - $this->routeLoader = new LegacyRouteLoader(__DIR__.'/not_existing'); |
|
53 | + $this->routeLoader = new LegacyRouteLoader(__DIR__ . '/not_existing'); |
|
54 | 54 | self::assertFalse($this->routeLoader->supports('any', 'legacy')); |
55 | 55 | } |
56 | 56 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** {@inheritdoc} */ |
79 | 79 | protected function setUp() |
80 | 80 | { |
81 | - $this->root = vfsStream::setup(); |
|
81 | + $this->root = vfsStream::setup(); |
|
82 | 82 | $this->legacyFile = vfsStream::newFile('hello.php')->at($this->root); |
83 | 83 | $this->routeLoader = new LegacyRouteLoader($this->root->url()); |
84 | 84 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $this->initFinder(); |
51 | 51 | |
52 | 52 | $defaults = array( |
53 | - '_controller' => 'basster_legacy_bridge.legacy_controller:runLegacyScript', |
|
53 | + '_controller' => 'basster_legacy_bridge.legacy_controller:runLegacyScript', |
|
54 | 54 | ); |
55 | 55 | |
56 | 56 | /** @var SplFileInfo $file */ |
@@ -80,9 +80,9 @@ discard block |
||
80 | 80 | private function initFinder() |
81 | 81 | { |
82 | 82 | $this->finder->ignoreDotFiles(true) |
83 | - ->files() |
|
84 | - ->name('*.php') |
|
85 | - ->in($this->legacyPath); |
|
83 | + ->files() |
|
84 | + ->name('*.php') |
|
85 | + ->in($this->legacyPath); |
|
86 | 86 | } |
87 | 87 | /** |
88 | 88 | * @param SplFileInfo $file |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | private function createLegacyRouteName(SplFileInfo $file) |
93 | 93 | { |
94 | 94 | return 'basster.legacy.'. |
95 | - str_replace( |
|
95 | + str_replace( |
|
96 | 96 | '/', |
97 | 97 | '__', |
98 | 98 | substr($file->getRelativePathname(), 0, -4) |
99 | - ); |
|
99 | + ); |
|
100 | 100 | } |
101 | 101 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** @var SplFileInfo $file */ |
57 | 57 | foreach ($this->finder as $file) { |
58 | 58 | $defaults['legacyScript'] = $file->getPathname(); |
59 | - $defaults['requestPath'] = '/'.$file->getRelativePathname(); |
|
59 | + $defaults['requestPath'] = '/' . $file->getRelativePathname(); |
|
60 | 60 | |
61 | 61 | $route = new Route($file->getRelativePathname(), $defaults); |
62 | 62 | $routes->add($this->createLegacyRouteName($file), $route); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | private function createLegacyRouteName(SplFileInfo $file) |
93 | 93 | { |
94 | - return 'basster.legacy.'. |
|
94 | + return 'basster.legacy.' . |
|
95 | 95 | str_replace( |
96 | 96 | '/', |
97 | 97 | '__', |