@@ -90,7 +90,7 @@ discard block |
||
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 |
||
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 | } |
@@ -41,7 +41,7 @@ |
||
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\-]+)'; |
@@ -52,7 +52,7 @@ |
||
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)]; |
@@ -98,7 +98,7 @@ |
||
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, |