| @@ 428-433 (lines=6) @@ | ||
| 425 | if ('' === $prevLine && preg_match($regexDir, $line, $match)) { |
|
| 426 | $directory = $match[1]; |
|
| 427 | unset($directories[$directory]); |
|
| 428 | if ($onlyKeys) { |
|
| 429 | $keys = array( |
|
| 430 | 'keys' => array_merge($keys['keys'], $keys['dirs']), |
|
| 431 | 'dirs' => array(), |
|
| 432 | ); |
|
| 433 | } |
|
| 434 | } elseif (preg_match($regexItem, $line, $tokens)) { |
|
| 435 | $name = $tokens[3]; |
|
| 436 | ||
| @@ 453-458 (lines=6) @@ | ||
| 450 | $prevLine = $line; |
|
| 451 | } |
|
| 452 | ||
| 453 | if ($onlyKeys) { |
|
| 454 | $keys = array( |
|
| 455 | 'keys' => array_merge($keys['keys'], $keys['dirs']), |
|
| 456 | 'dirs' => array(), |
|
| 457 | ); |
|
| 458 | } |
|
| 459 | ||
| 460 | foreach (array_keys($directories) as $directory) { |
|
| 461 | $keys = array_merge_recursive($keys, $this->fetchKeys($directory, $onlyKeys)); |
|