Passed
Pull Request — master (#45)
by Rustam
05:27
created
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
     }
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
             $store->register($this->outerKey, null, true);
163 163
             $rNode->getState()->decClaim();
164 164
 
165
-            return new Condition($store, function () use ($rNode) {
165
+            return new Condition($store, function() use ($rNode) {
166 166
                 return !$rNode->getState()->hasClaims();
167 167
             });
168 168
         }
169 169
 
170
-        return new Condition($this->orm->queueDelete($related), function () use ($rNode) {
170
+        return new Condition($this->orm->queueDelete($related), function() use ($rNode) {
171 171
             return !$rNode->getState()->hasClaims();
172 172
         });
173 173
     }
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
@@ -88,13 +88,13 @@
 block discarded – undo
88 88
             $store->register($this->outerKey, null, true);
89 89
             $rNode->getState()->decClaim();
90 90
 
91
-            return new Condition($store, function () use ($rNode) {
91
+            return new Condition($store, function() use ($rNode) {
92 92
                 return !$rNode->getState()->hasClaims();
93 93
             });
94 94
         }
95 95
 
96 96
         // only delete original child when no other objects claim it
97
-        return new Condition($this->orm->queueDelete($original), function () use ($rNode) {
97
+        return new Condition($this->orm->queueDelete($original), function() use ($rNode) {
98 98
             return !$rNode->getState()->hasClaims();
99 99
         });
100 100
     }
Please login to merge, or discard this patch.
src/Select/QueryBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         }
249 249
 
250 250
         if ($args[0] instanceof \Closure) {
251
-            $args[0] = $args[0] = function ($q) use ($args): void {
251
+            $args[0] = $args[0] = function($q) use ($args): void {
252 252
                 $args[0]($this->withQuery($q));
253 253
             };
254 254
         }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
         }
270 270
 
271 271
         if ($value instanceof \Closure) {
272
-            $value = function ($q) use ($value): void {
272
+            $value = function($q) use ($value): void {
273 273
                 $value($this->withQuery($q));
274 274
             };
275 275
         }
Please login to merge, or discard this patch.
src/Select/AbstractLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
                 $this->target,
209 209
                 $relation
210 210
             );
211
-        } catch (SchemaException | FactoryException $e) {
211
+        } catch (SchemaException|FactoryException $e) {
212 212
             throw new LoaderException(
213 213
                 sprintf('Unable to create loader: %s', $e->getMessage()),
214 214
                 $e->getCode(),
Please login to merge, or discard this patch.