@@ -47,12 +47,12 @@ |
||
47 | 47 | |
48 | 48 | private function getLinesRecursively(&$lines, $scopes, $depth = -1, $previousScopeCode = "") |
49 | 49 | { |
50 | - foreach ($scopes as $scopeCode => $scopeName) { |
|
51 | - if ($scopeCode == "~name") { |
|
52 | - $lines[] = [str_repeat(" ", $depth) . "- " . $previousScopeCode, $scopes["~name"]]; |
|
53 | - } else { |
|
54 | - $this->getLinesRecursively($lines, $scopeName, $depth + 1, $scopeCode); |
|
55 | - } |
|
56 | - } |
|
50 | + foreach ($scopes as $scopeCode => $scopeName) { |
|
51 | + if ($scopeCode == "~name") { |
|
52 | + $lines[] = [str_repeat(" ", $depth) . "- " . $previousScopeCode, $scopes["~name"]]; |
|
53 | + } else { |
|
54 | + $this->getLinesRecursively($lines, $scopeName, $depth + 1, $scopeCode); |
|
55 | + } |
|
56 | + } |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | \ No newline at end of file |