@@ 227-229 (lines=3) @@ | ||
224 | if($node->isWord) { |
|
225 | $words[] = $prefix; |
|
226 | } |
|
227 | foreach($node->children as $char => $n) { |
|
228 | $words = $this->_traverseWithPrefix($node->children[$char], $words, $prefix . $char); |
|
229 | } |
|
230 | } |
|
231 | ||
232 | return $words; |
|
@@ 247-249 (lines=3) @@ | ||
244 | return $words; |
|
245 | } |
|
246 | ||
247 | foreach($node->children as $char => &$n) { |
|
248 | $words = $this->_traverseWithPrefix($node->children[$char], $words, $word . $char); |
|
249 | } |
|
250 | ||
251 | return $words; |
|
252 | } |