@@ 535-546 (lines=12) @@ | ||
532 | ||
533 | // We found a mapping that matches the search path |
|
534 | // e.g. mapping /a/b for path /a/b |
|
535 | if ($searchPathForTest === $currentPathForTest) { |
|
536 | $foundMatchingMappings = true; |
|
537 | $result[$currentPath] = $this->resolveReferences($currentReferences, $flags); |
|
538 | ||
539 | // Return unless an explicit mapping order is defined |
|
540 | // In that case, the ancestors need to be searched as well |
|
541 | if (($flags & self::STOP_ON_FIRST) && !isset($this->json['_order'][$currentPath])) { |
|
542 | return $result; |
|
543 | } |
|
544 | ||
545 | continue; |
|
546 | } |
|
547 | ||
548 | // We found a mapping that lies within the search path |
|
549 | // e.g. mapping /a/b/c for path /a/b |
|
@@ 568-579 (lines=12) @@ | ||
565 | if (0 === strpos($searchPathForTest, $currentPathForTest)) { |
|
566 | $foundMatchingMappings = true; |
|
567 | ||
568 | if ($flags & self::INCLUDE_ANCESTORS) { |
|
569 | // Include the references of the ancestor |
|
570 | $result[$currentPath] = $this->resolveReferences($currentReferences, $flags); |
|
571 | ||
572 | // Return unless an explicit mapping order is defined |
|
573 | // In that case, the ancestors need to be searched as well |
|
574 | if (($flags & self::STOP_ON_FIRST) && !isset($this->json['_order'][$currentPath])) { |
|
575 | return $result; |
|
576 | } |
|
577 | ||
578 | continue; |
|
579 | } |
|
580 | ||
581 | if ($flags & self::NO_SEARCH_FILESYSTEM) { |
|
582 | continue; |