@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace ReadModel\Walker; |
5 | 5 | |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | { |
10 | 10 | $camelCased = []; |
11 | 11 | |
12 | - array_walk($result, function ($value, $key) use (&$camelCased) { |
|
12 | + array_walk($result, function($value, $key) use (&$camelCased) { |
|
13 | 13 | $key = is_string($key) ? $this->toCamelCase($key) : $key; |
14 | 14 | |
15 | 15 | if (is_array($value)) { |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | private function toCamelCase(string $value): string |
26 | 26 | { |
27 | - $camelCasedName = preg_replace_callback('/(^|_|\.)+(.)/', function ($match) { |
|
27 | + $camelCasedName = preg_replace_callback('/(^|_|\.)+(.)/', function($match) { |
|
28 | 28 | return ('.' === $match[1] ? '_' : '').strtoupper($match[2]); |
29 | 29 | }, $value); |
30 | 30 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace ReadModel\Walker; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace ReadModel; |
5 | 5 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | private function resolveMeta(): array |
47 | 47 | { |
48 | - return array_map(function ($value) { |
|
48 | + return array_map(function($value) { |
|
49 | 49 | // execute callables |
50 | 50 | if (is_callable($value)) { |
51 | 51 | $value = call_user_func($value); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace ReadModel; |
5 | 5 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $results = parent::getResults(); |
27 | 27 | Assertion::allIsArray($results, 'For WalkablePaginator getResults() method must return array of arrays'); |
28 | 28 | |
29 | - return array_map(function (array $row) { |
|
29 | + return array_map(function(array $row) { |
|
30 | 30 | return $this->resultWalker->walk($row); |
31 | 31 | }, $results); |
32 | 32 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace ReadModel; |
5 | 5 |