|
@@ 527-538 (lines=12) @@
|
| 524 |
|
|
| 525 |
|
// We found a mapping that matches the search path |
| 526 |
|
// e.g. mapping /a/b for path /a/b |
| 527 |
|
if ($searchPathForTest === $currentPathForTest) { |
| 528 |
|
$foundMatchingMappings = true; |
| 529 |
|
$result[$currentPath] = $this->resolveReferences($currentReferences, $stopOnFirst, $checkFilesystem); |
| 530 |
|
|
| 531 |
|
// Return unless an explicit mapping order is defined |
| 532 |
|
// In that case, the ancestors need to be searched as well |
| 533 |
|
if ($stopOnFirst && !isset($this->json['_order'][$currentPath])) { |
| 534 |
|
return $result; |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
continue; |
| 538 |
|
} |
| 539 |
|
|
| 540 |
|
// We found a mapping that lies within the search path |
| 541 |
|
// e.g. mapping /a/b/c for path /a/b |
|
@@ 542-553 (lines=12) @@
|
| 539 |
|
|
| 540 |
|
// We found a mapping that lies within the search path |
| 541 |
|
// e.g. mapping /a/b/c for path /a/b |
| 542 |
|
if ($includeNested && 0 === strpos($currentPathForTest, $searchPathForTest)) { |
| 543 |
|
$foundMatchingMappings = true; |
| 544 |
|
$result[$currentPath] = $this->resolveReferences($currentReferences, $stopOnFirst, $checkFilesystem); |
| 545 |
|
|
| 546 |
|
// Return unless an explicit mapping order is defined |
| 547 |
|
// In that case, the ancestors need to be searched as well |
| 548 |
|
if ($stopOnFirst && !isset($this->json['_order'][$currentPath])) { |
| 549 |
|
return $result; |
| 550 |
|
} |
| 551 |
|
|
| 552 |
|
continue; |
| 553 |
|
} |
| 554 |
|
|
| 555 |
|
// We found a mapping that is an ancestor of the search path |
| 556 |
|
// e.g. mapping /a for path /a/b |