| @@ 173-180 (lines=8) @@ | ||
| 170 | } |
|
| 171 | ||
| 172 | $filteredKeys = []; |
|
| 173 | foreach (['keys', 'dirs'] as $hash) { |
|
| 174 | $filteredKeys[$hash] = []; |
|
| 175 | foreach ($keys[$hash] as $key) { |
|
| 176 | if (0 === strpos($key, $prefix)) { |
|
| 177 | $filteredKeys[$hash][] = $key; |
|
| 178 | } |
|
| 179 | } |
|
| 180 | } |
|
| 181 | ||
| 182 | return $filteredKeys; |
|
| 183 | } |
|
| @@ 124-131 (lines=8) @@ | ||
| 121 | } |
|
| 122 | ||
| 123 | $filteredKeys = []; |
|
| 124 | foreach (['keys', 'dirs'] as $hash) { |
|
| 125 | $filteredKeys[$hash] = []; |
|
| 126 | foreach ($keys[$hash] as $key) { |
|
| 127 | if (0 === strpos($key, $prefix)) { |
|
| 128 | $filteredKeys[$hash][] = $key; |
|
| 129 | } |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| 133 | return $filteredKeys; |
|
| 134 | } |
|