@@ -21,6 +21,9 @@ |
||
21 | 21 | */ |
22 | 22 | private $endNode; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $value |
|
26 | + */ |
|
24 | 27 | public function __construct($value) |
25 | 28 | { |
26 | 29 | $this->value = $value; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | public function addSuffix($suffix, $word) |
75 | 75 | { |
76 | - if (count($suffix) < 1) { |
|
76 | + if (count($suffix) < 1) { |
|
77 | 77 | $this->endNode = $word; |
78 | 78 | return true; |
79 | 79 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | $this->inputParse($prefix); |
50 | 50 | $child = $this->root->getClosest($prefix); |
51 | - if( ! $child) { |
|
51 | + if( ! $child) { |
|
52 | 52 | return []; |
53 | 53 | } |
54 | 54 | $postFixes = $child->getPostfix($prefix); |