@@ 378-383 (lines=6) @@ | ||
375 | if ('' === $prevLine && preg_match($regexDir, $line, $match)) { |
|
376 | $directory = $match[1]; |
|
377 | unset($directories[$directory]); |
|
378 | if ($onlyKeys) { |
|
379 | $keys = array( |
|
380 | 'keys' => array_merge($keys['keys'], $keys['dirs']), |
|
381 | 'dirs' => array(), |
|
382 | ); |
|
383 | } |
|
384 | } elseif (preg_match($regexItem, $line, $tokens)) { |
|
385 | $name = $tokens[3]; |
|
386 | ||
@@ 403-408 (lines=6) @@ | ||
400 | $prevLine = $line; |
|
401 | } |
|
402 | ||
403 | if ($onlyKeys) { |
|
404 | $keys = array( |
|
405 | 'keys' => array_merge($keys['keys'], $keys['dirs']), |
|
406 | 'dirs' => array(), |
|
407 | ); |
|
408 | } |
|
409 | ||
410 | foreach (array_keys($directories) as $directory) { |
|
411 | $keys = array_merge_recursive($keys, $this->fetchKeys($directory, $onlyKeys)); |