Passed
Branch master (0332f8)
by Tomasz
03:06
created
src/Filters/FiltersBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Filters;
5 5
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             return [$this->defaultOrder];
105 105
         }
106 106
 
107
-        $orders = array_map(function (string $order) {
107
+        $orders = array_map(function(string $order) {
108 108
             return new OrderBy(trim($order));
109 109
         }, explode(',', $order));
110 110
 
Please login to merge, or discard this patch.
src/Filters/OrderBy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Filters;
5 5
 
Please login to merge, or discard this patch.
src/Walker/BinaryUuidTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Walker;
5 5
 
Please login to merge, or discard this patch.
src/Walker/ResultWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Walker;
5 5
 
Please login to merge, or discard this patch.
src/Walker/ScalarTransformerWalker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Walker;
5 5
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function walk(array $result): array
22 22
     {
23
-        array_walk($result, function (&$value, $key) {
23
+        array_walk($result, function(&$value, $key) {
24 24
             if ($value === null || !isset($this->typeMapping[$key])) {
25 25
                 return;
26 26
             }
Please login to merge, or discard this patch.
src/Walker/EmbedWalker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Walker;
5 5
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     private function embed(string $prefix, array $result): array
32 32
     {
33 33
         // filter out prefixed fields
34
-        $prefixed = array_filter($result, function ($key) use ($prefix) {
34
+        $prefixed = array_filter($result, function($key) use ($prefix) {
35 35
             return substr($key, 0, strlen($prefix)) === $prefix;
36 36
         }, ARRAY_FILTER_USE_KEY);
37 37
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         }
42 42
 
43 43
         // remove prefix from field's name
44
-        $keys = array_map(function ($key) use ($prefix) {
44
+        $keys = array_map(function($key) use ($prefix) {
45 45
             return substr($key, strlen($prefix.'_'));
46 46
         }, array_keys($prefixed));
47 47
 
Please login to merge, or discard this patch.
src/Walker/NullWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Walker;
5 5
 
Please login to merge, or discard this patch.
src/Walker/CallableWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Walker;
5 5
 
Please login to merge, or discard this patch.
src/Walker/WalkerBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Walker;
5 5
 
Please login to merge, or discard this patch.