Completed
Pull Request — master (#5)
by
unknown
03:00
created
Parser/Rules.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,9 @@
 block discarded – undo
107 107
     public function all()
108 108
     {
109 109
         $items = $this->getArrayCopy();
110
-        if(empty($items)) return [];
110
+        if(empty($items)) {
111
+            return [];
112
+        }
111 113
 
112 114
         return call_user_func_array('array_merge', $items);
113 115
     }
Please login to merge, or discard this patch.
Parser/Token/Token.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     }
152 152
 
153 153
     /**
154
-     * @return Token|null|false
154
+     * @return Token
155 155
      */
156 156
     public function getEnd()
157 157
     {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
             }
227 227
         } elseif (($rule = Helper::cmp($b->rule->priority, $a->rule->priority)) !== 0) {
228 228
             return $multiplier*$rule;
229
-        }  else {
229
+        } else {
230 230
             return $multiplier*($a->id < $b->id ? -1 : 1);
231 231
         }
232 232
     }
Please login to merge, or discard this patch.
Matcher/DelegateRegexMatcher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * RegexMatcher constructor.
27 27
      *
28
-     * @param          $regex
28
+     * @param          string $regex
29 29
      * @param callable $callable
30 30
      */
31 31
     public function __construct($regex, callable $callable)
Please login to merge, or discard this patch.
Language/GreedyLanguage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     /**
142 142
      * @param bool $embedded
143 143
      *
144
-     * @return Rule[]
144
+     * @return \Generator
145 145
      */
146 146
     private function _rules($embedded = false)
147 147
     {
Please login to merge, or discard this patch.
bin/Commands/Benchmark/RunCommand.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -104,6 +104,9 @@  discard block
 block discarded – undo
104 104
         ;
105 105
     }
106 106
 
107
+    /**
108
+     * @param string $source
109
+     */
107 110
     protected function benchmark($source, Language $language, FormatterInterface $formatter, $geshi = null)
108 111
     {
109 112
         $tokenization = microtime(true);
@@ -122,6 +125,9 @@  discard block
 block discarded – undo
122 125
         return compact('tokenization', 'parsing', 'formatting', 'overall');
123 126
     }
124 127
 
128
+    /**
129
+     * @param string $source
130
+     */
125 131
     protected function geshi($source, $language)
126 132
     {
127 133
         $geshi = microtime(true);
Please login to merge, or discard this patch.