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