@@ -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) |
@@ -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(); |
@@ -98,6 +98,9 @@ |
||
| 98 | 98 | || $input->hasParameterOption('-r'); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $filename |
|
| 103 | + */ |
|
| 101 | 104 | private function regenerate(InputInterface $input, $filename) |
| 102 | 105 | { |
| 103 | 106 | $filename = str_replace(DIRECTORY_SEPARATOR, '/', $filename); |
@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | return $result . ($this->_options['lines']['enable'] ? $this->formatLineEnd($this->_line++) : ''); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $text |
|
| 48 | + */ |
|
| 46 | 49 | private function _content($text) |
| 47 | 50 | { |
| 48 | 51 | $content = $this->content($text); |
@@ -57,11 +60,17 @@ discard block |
||
| 57 | 60 | return $text; |
| 58 | 61 | } |
| 59 | 62 | |
| 63 | + /** |
|
| 64 | + * @param integer $line |
|
| 65 | + */ |
|
| 60 | 66 | protected function formatLineStart($line) |
| 61 | 67 | { |
| 62 | 68 | return null; |
| 63 | 69 | } |
| 64 | 70 | |
| 71 | + /** |
|
| 72 | + * @param integer $line |
|
| 73 | + */ |
|
| 65 | 74 | protected function formatLineEnd($line) |
| 66 | 75 | { |
| 67 | 76 | return null; |