@@ -122,7 +122,7 @@ discard block |
||
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 |
||
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 | } |
@@ -90,13 +90,13 @@ |
||
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 | } |