@@ -229,7 +229,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -88,13 +88,13 @@ |
||
| 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 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | throw new NullException("Relation {$this} can not be null"); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - if ($original!== null) { |
|
| 37 | + if ($original !== null) { |
|
| 38 | 38 | // reset the key |
| 39 | 39 | $store->register($this->innerKey, null, true); |
| 40 | 40 | } |