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