@@ -57,9 +57,9 @@ |
||
| 57 | 57 | { |
| 58 | 58 | $path = implode('.', $this->getCurrentPath()); |
| 59 | 59 | if (isset($this->persistentCollections[$path])) { |
| 60 | - $return = $this->persistentCollections[$path]; |
|
| 61 | - unset($this->persistentCollections[$path]); |
|
| 62 | - return $return; |
|
| 60 | + $return = $this->persistentCollections[$path]; |
|
| 61 | + unset($this->persistentCollections[$path]); |
|
| 62 | + return $return; |
|
| 63 | 63 | } |
| 64 | 64 | return null; |
| 65 | 65 | } |
@@ -102,9 +102,9 @@ |
||
| 102 | 102 | |
| 103 | 103 | if ($collection = $context->removePersistentCollectionForCurrentPath()) { |
| 104 | 104 | foreach ($elements as $element) { |
| 105 | - if (!$collection->contains($element)) { |
|
| 106 | - $collection->add($element); |
|
| 107 | - } |
|
| 105 | + if (!$collection->contains($element)) { |
|
| 106 | + $collection->add($element); |
|
| 107 | + } |
|
| 108 | 108 | } |
| 109 | 109 | foreach ($collection as $collectionElement) { |
| 110 | 110 | if (!$elements->contains($collectionElement)) { |