Passed
Pull Request — master (#17)
by
unknown
02:50
created
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.
src/Tile/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     {
53 53
         $context = ['pattern' => $pattern];
54 54
         $this->logger->debug('Loading tiles by pattern {pattern}', $context);
55
-        $tiles = array_map(function ($entry) {
55
+        $tiles = array_map(function($entry) {
56 56
             return $this->createTile($entry['path'], $entry['parameters']);
57 57
         }, $this->locator->locate($pattern));
58 58
         $context = ['amount' => sizeof($tiles)];
Please login to merge, or discard this patch.
src/Type/AbstractHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             throw new BadMethodCallException($message);
99 99
         }
100 100
         $mapping = $this->getMapping();
101
-        $context = ['target' => $target,];
101
+        $context = ['target' => $target, ];
102 102
         $this->logger->debug('Creating tile generator for {target}', $context);
103 103
         return new DefaultGenerator(
104 104
             $this->imageManager,
Please login to merge, or discard this patch.