@@ 400-405 (lines=6) @@ | ||
397 | if ('' === $prevLine && preg_match($regexDir, $line, $match)) { |
|
398 | $directory = $match[1]; |
|
399 | unset($directories[$directory]); |
|
400 | if ($onlyKeys) { |
|
401 | $keys = array( |
|
402 | 'keys' => array_merge($keys['keys'], $keys['dirs']), |
|
403 | 'dirs' => array(), |
|
404 | ); |
|
405 | } |
|
406 | } elseif (preg_match($regexItem, $line, $tokens)) { |
|
407 | $name = $tokens[3]; |
|
408 | ||
@@ 425-430 (lines=6) @@ | ||
422 | $prevLine = $line; |
|
423 | } |
|
424 | ||
425 | if ($onlyKeys) { |
|
426 | $keys = array( |
|
427 | 'keys' => array_merge($keys['keys'], $keys['dirs']), |
|
428 | 'dirs' => array(), |
|
429 | ); |
|
430 | } |
|
431 | ||
432 | foreach (array_keys($directories) as $directory) { |
|
433 | $keys = array_merge_recursive($keys, $this->fetchKeys($directory, $onlyKeys)); |