Passed
Pull Request — master (#179)
by Aleksei
04:24 queued 02:29
created
src/Relation/HasMany.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     protected function calcDeleted(array $related, array $original)
124 124
     {
125
-        return array_udiff($original ?? [], $related, function ($a, $b) {
125
+        return array_udiff($original ?? [], $related, function($a, $b) {
126 126
             return strcmp(spl_object_hash($a), spl_object_hash($b));
127 127
         });
128 128
     }
@@ -166,12 +166,12 @@  discard block
 block discarded – undo
166 166
             $store->register($this->columnName($rNode, $this->outerKey), null, true);
167 167
             $rNode->getState()->decClaim();
168 168
 
169
-            return new Condition($store, function () use ($rNode) {
169
+            return new Condition($store, function() use ($rNode) {
170 170
                 return !$rNode->getState()->hasClaims();
171 171
             });
172 172
         }
173 173
 
174
-        return new Condition($this->orm->queueDelete($related), function () use ($rNode) {
174
+        return new Condition($this->orm->queueDelete($related), function() use ($rNode) {
175 175
             return !$rNode->getState()->hasClaims();
176 176
         });
177 177
     }
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
@@ -90,13 +90,13 @@
 block discarded – undo
90 90
             $store->register($this->columnName($rNode, $this->outerKey), null, true);
91 91
             $rNode->getState()->decClaim();
92 92
 
93
-            return new Condition($store, function () use ($rNode) {
93
+            return new Condition($store, function() use ($rNode) {
94 94
                 return !$rNode->getState()->hasClaims();
95 95
             });
96 96
         }
97 97
 
98 98
         // only delete original child when no other objects claim it
99
-        return new Condition($this->orm->queueDelete($original), function () use ($rNode) {
99
+        return new Condition($this->orm->queueDelete($original), function() use ($rNode) {
100 100
             return !$rNode->getState()->hasClaims();
101 101
         });
102 102
     }
Please login to merge, or discard this patch.