Passed
Push — master ( 8ff0f0...b1da4e )
by Anton
01:53
created
src/Select/QueryBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         }
230 230
 
231 231
         if ($args[0] instanceof \Closure) {
232
-            $args[0] = $args[0] = function ($q) use ($args) {
232
+            $args[0] = $args[0] = function($q) use ($args) {
233 233
                 $args[0]($this->withQuery($q));
234 234
             };
235 235
         }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         }
251 251
 
252 252
         if ($value instanceof \Closure) {
253
-            $value = function ($q) use ($value) {
253
+            $value = function($q) use ($value) {
254 254
                 $value($this->withQuery($q));
255 255
             };
256 256
         }
Please login to merge, or discard this patch.
src/Relation/HasMany.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function calcDeleted(array $related, array $original)
120 120
     {
121
-        return array_udiff($original ?? [], $related, function ($a, $b) {
121
+        return array_udiff($original ?? [], $related, function($a, $b) {
122 122
             return strcmp(spl_object_hash($a), spl_object_hash($b));
123 123
         });
124 124
     }
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
             $store->register($this->outerKey, null, true);
157 157
             $relNode->getState()->decClaim();
158 158
 
159
-            return new Condition($store, function () use ($relNode) {
159
+            return new Condition($store, function() use ($relNode) {
160 160
                 return !$relNode->getState()->hasClaims();
161 161
             });
162 162
         }
163 163
 
164
-        return new Condition($this->orm->queueDelete($related), function () use ($relNode) {
164
+        return new Condition($this->orm->queueDelete($related), function() use ($relNode) {
165 165
             return !$relNode->getState()->hasClaims();
166 166
         });
167 167
     }
Please login to merge, or discard this patch.
src/Relation/HasOne.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,13 +82,13 @@
 block discarded – undo
82 82
             $store->register($this->outerKey, null, true);
83 83
             $relNode->getState()->decClaim();
84 84
 
85
-            return new Condition($store, function () use ($relNode) {
85
+            return new Condition($store, function() use ($relNode) {
86 86
                 return !$relNode->getState()->hasClaims();
87 87
             });
88 88
         }
89 89
 
90 90
         // only delete original child when no other objects claim it
91
-        return new Condition($this->orm->queueDelete($original), function () use ($relNode) {
91
+        return new Condition($this->orm->queueDelete($original), function() use ($relNode) {
92 92
             return !$relNode->getState()->hasClaims();
93 93
         });
94 94
     }
Please login to merge, or discard this patch.