| @@ 169-176 (lines=8) @@ | ||
| 166 | } |
|
| 167 | ||
| 168 | $filteredKeys = []; |
|
| 169 | foreach (['keys', 'dirs'] as $hash) { |
|
| 170 | $filteredKeys[$hash] = []; |
|
| 171 | foreach ($keys[$hash] as $key) { |
|
| 172 | if (0 === strpos($key, $prefix)) { |
|
| 173 | $filteredKeys[$hash][] = $key; |
|
| 174 | } |
|
| 175 | } |
|
| 176 | } |
|
| 177 | ||
| 178 | return $filteredKeys; |
|
| 179 | } |
|
| @@ 121-128 (lines=8) @@ | ||
| 118 | } |
|
| 119 | ||
| 120 | $filteredKeys = []; |
|
| 121 | foreach (['keys', 'dirs'] as $hash) { |
|
| 122 | $filteredKeys[$hash] = []; |
|
| 123 | foreach ($keys[$hash] as $key) { |
|
| 124 | if (0 === strpos($key, $prefix)) { |
|
| 125 | $filteredKeys[$hash][] = $key; |
|
| 126 | } |
|
| 127 | } |
|
| 128 | } |
|
| 129 | ||
| 130 | return $filteredKeys; |
|
| 131 | } |
|