Passed
Push — master ( c5ec64...bb84d6 )
by Ole
01:58
created
Controller/LegacyScriptController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $prepend   = $this->prependScript;
37 37
         $append    = $this->appendScript;
38 38
 
39
-        $requireLegacyScript = function () use (
39
+        $requireLegacyScript = function() use (
40 40
           $requestPath,
41 41
           $legacyScript,
42 42
           $container,
Please login to merge, or discard this patch.
Tests/Routing/LegacyRouteLoaderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Routing/LegacyRouteLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             '__',
Please login to merge, or discard this patch.