Test Failed
Push — master ( eebd04...0e5dd0 )
by Kacper
04:21
created
Parser/Token/Token.php 1 patch
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.
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/Test/RegenerateCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@
 block discarded – undo
99 99
             || $input->hasParameterOption('-r');
100 100
     }
101 101
 
102
+    /**
103
+     * @param string $filename
104
+     */
102 105
     private function regenerate(InputInterface $input, $filename) {
103 106
         $filename = str_replace(DIRECTORY_SEPARATOR, '/', $filename);
104 107
         $patterns = $input->getArgument('files');
Please login to merge, or discard this patch.
KeyLighter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@
 block discarded – undo
135 135
         return $this->_formatters;
136 136
     }
137 137
 
138
+    /**
139
+     * @return string
140
+     */
138 141
     public function highlight($source, Language $language, FormatterInterface $formatter = null)
139 142
     {
140 143
         $formatter = $formatter ?: $this->getDefaultFormatter();
Please login to merge, or discard this patch.
bin/Commands/Benchmark/AnalyzeCommand.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,7 @@
 block discarded – undo
16 16
 namespace Kadet\Highlighter\bin\Commands\Benchmark;
17 17
 
18 18
 
19
-use Kadet\Highlighter\Formatter\FormatterInterface;
20 19
 use Kadet\Highlighter\KeyLighter;
21
-use Kadet\Highlighter\Language\Language;
22 20
 use Symfony\Component\Console\Command\Command;
23 21
 use Symfony\Component\Console\Helper\Table;
24 22
 use Symfony\Component\Console\Helper\TableCell;
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
@@ -110,6 +110,9 @@  discard block
 block discarded – undo
110 110
         ;
111 111
     }
112 112
 
113
+    /**
114
+     * @param string $source
115
+     */
113 116
     protected function benchmark($source, Language $language, FormatterInterface $formatter, $geshi = null)
114 117
     {
115 118
         gc_collect_cycles(); // force garbage collector
@@ -161,6 +164,9 @@  discard block
 block discarded – undo
161 164
         ];
162 165
     }
163 166
 
167
+    /**
168
+     * @param string $source
169
+     */
164 170
     protected function geshi($source, $language)
165 171
     {
166 172
         $geshi = microtime(true);
Please login to merge, or discard this patch.