|
@@ 139-145 (lines=7) @@
|
| 136 |
|
|
| 137 |
|
if (count($parentReferences) > 0) { |
| 138 |
|
foreach ($parentReferences as $currentPath => $currentReferences) { |
| 139 |
|
if (isset($this->json['_order'][$currentPath])) { |
| 140 |
|
$this->json['_order'][$path] = $this->json['_order'][$currentPath]; |
| 141 |
|
|
| 142 |
|
$this->insertOrderEntry($path, $path); |
| 143 |
|
|
| 144 |
|
break; |
| 145 |
|
} |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
|
|
@@ 170-174 (lines=5) @@
|
| 167 |
|
// after adding /a/b and /a. Here, /a/b has the order |
| 168 |
|
// [/a, /a/b] defined. The long path should end up with |
| 169 |
|
// the order [/a/b, /a, /a/b]. |
| 170 |
|
if (isset($this->json['_order'][$parentPath])) { |
| 171 |
|
$this->json['_order'][$currentPath] = $this->json['_order'][$parentPath]; |
| 172 |
|
|
| 173 |
|
break; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
// Otherwise continue to build the default order |
| 177 |
|
$parentEntry = array( |