@@ -151,7 +151,7 @@ |
||
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
154 | - * @return Token|null|false |
|
154 | + * @return Token |
|
155 | 155 | */ |
156 | 156 | public function getEnd() |
157 | 157 | { |
@@ -25,7 +25,7 @@ |
||
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) |
@@ -99,6 +99,9 @@ |
||
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'); |
@@ -135,6 +135,9 @@ |
||
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(); |
@@ -110,6 +110,9 @@ discard block |
||
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 |
||
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); |
@@ -45,6 +45,9 @@ discard block |
||
45 | 45 | return $result.($this->_options['lines']['enable'] ? $this->formatLineEnd($this->_line++) : ''); |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $text |
|
50 | + */ |
|
48 | 51 | private function _content($text) |
49 | 52 | { |
50 | 53 | $content = $this->content($text); |
@@ -59,11 +62,17 @@ discard block |
||
59 | 62 | return $text; |
60 | 63 | } |
61 | 64 | |
65 | + /** |
|
66 | + * @param integer $line |
|
67 | + */ |
|
62 | 68 | protected function formatLineStart($line) |
63 | 69 | { |
64 | 70 | return null; |
65 | 71 | } |
66 | 72 | |
73 | + /** |
|
74 | + * @param integer $line |
|
75 | + */ |
|
67 | 76 | protected function formatLineEnd($line) |
68 | 77 | { |
69 | 78 | return null; |