Completed
Push — master ( 32300f...24bde1 )
by Ma
02:12
created
src/Autocomplete/Container/Trie/Node.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Autocomplete/Container/Trie/Method/Template.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
     public $child;
9 9
     public $word;
10 10
 
11
+    /**
12
+     * @param \Autocomplete\Container\Trie\Node $child
13
+     */
11 14
     public final function execute($string, &$child)
12 15
     {
13 16
        $this->word = (join($string));
Please login to merge, or discard this patch.
examples/Dictionary/Dictionary.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,10 @@
 block discarded – undo
22 22
     $input = fgets(STDIN, 1024);
23 23
     $input = trim($input);
24 24
     parseInput($input, $trie);
25
-    if($input == 'quit') $running = false;
26
-}
25
+    if($input == 'quit') {
26
+        $running = false;
27
+    }
28
+    }
27 29
 
28 30
 function parseInput($input, $trie)
29 31
 {
Please login to merge, or discard this patch.