Passed
Push — dev ( 62ccfd...bd0680 )
by Fike
02:45
created
src/Tile/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function load(Pattern $pattern)
43 43
     {
44
-        return array_map(function ($entry) {
44
+        return array_map(function($entry) {
45 45
             return $this->createTile($entry['path'], $entry['parameters']);
46 46
         }, $this->locator->locate($pattern));
47 47
     }
Please login to merge, or discard this patch.
src/Filesystem/Pattern.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
     public function resolve(array $parameters)
92 92
     {
93
-        $resolved = array_map(function (Chunk $chunk) use ($parameters) {
93
+        $resolved = array_map(function(Chunk $chunk) use ($parameters) {
94 94
             return (string) $chunk->resolve($parameters);
95 95
         }, $this->chunks);
96 96
         return new Pattern(implode('/', $resolved));
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     private static function split($path)
116 116
     {
117
-        return array_filter(explode('/', trim($path, '/')), function ($item) {
117
+        return array_filter(explode('/', trim($path, '/')), function($item) {
118 118
             return $item !== '';
119 119
         });
120 120
     }
Please login to merge, or discard this patch.
src/Filesystem/Pattern/Chunk.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->source = $chunk;
42 42
         $this->expression = $chunk;
43 43
         $this->type = self::TYPE_EXACT_MATCH;
44
-        $expression = preg_replace_callback(self::PATTERN, function ($match) {
44
+        $expression = preg_replace_callback(self::PATTERN, function($match) {
45 45
             $parameter = $match[1];
46 46
             if (in_array($parameter, $this->parameters)) {
47 47
                 return '(?:[\w\-]+)';
Please login to merge, or discard this patch.