@@ 168-170 (lines=3) @@ | ||
165 | $node = $this->getNodeFromPrefix($prefix); |
|
166 | $words = []; |
|
167 | if($node !== null) { |
|
168 | foreach($node->children as $char => $n) { |
|
169 | $words = $this->_traverse($node->children[$char], $words, $prefix . $char); |
|
170 | } |
|
171 | ||
172 | } |
|
173 | ||
@@ 187-189 (lines=3) @@ | ||
184 | $words[] = $word; |
|
185 | } |
|
186 | ||
187 | foreach($node->children as $char => $n) { |
|
188 | return $this->_traverse($node->children[$char], $words, $word . $n->char); |
|
189 | } |
|
190 | ||
191 | } |
|
192 |