@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Highlighter |
|
| 4 | - *1 |
|
| 5 | - * Copyright (C) 2016, Some right reserved. |
|
| 6 | - * @author Kacper "Kadet" Donat <[email protected]> |
|
| 7 | - * |
|
| 8 | - * Contact with author: |
|
| 9 | - * Xmpp: [email protected] |
|
| 10 | - * E-mail: [email protected] |
|
| 11 | - * |
|
| 12 | - * From Kadet with love. |
|
| 13 | - */ |
|
| 3 | + * Highlighter |
|
| 4 | + *1 |
|
| 5 | + * Copyright (C) 2016, Some right reserved. |
|
| 6 | + * @author Kacper "Kadet" Donat <[email protected]> |
|
| 7 | + * |
|
| 8 | + * Contact with author: |
|
| 9 | + * Xmpp: [email protected] |
|
| 10 | + * E-mail: [email protected] |
|
| 11 | + * |
|
| 12 | + * From Kadet with love. |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | namespace Kadet\Highlighter\Language; |
| 16 | 16 | |
@@ -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 | { |
@@ -1,17 +1,17 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Highlighter |
|
| 4 | - * |
|
| 5 | - * Copyright (C) 2016, Some right reserved. |
|
| 6 | - * |
|
| 7 | - * @author Kacper "Kadet" Donat <[email protected]> |
|
| 8 | - * |
|
| 9 | - * Contact with author: |
|
| 10 | - * Xmpp: [email protected] |
|
| 11 | - * E-mail: [email protected] |
|
| 12 | - * |
|
| 13 | - * From Kadet with love. |
|
| 14 | - */ |
|
| 3 | + * Highlighter |
|
| 4 | + * |
|
| 5 | + * Copyright (C) 2016, Some right reserved. |
|
| 6 | + * |
|
| 7 | + * @author Kacper "Kadet" Donat <[email protected]> |
|
| 8 | + * |
|
| 9 | + * Contact with author: |
|
| 10 | + * Xmpp: [email protected] |
|
| 11 | + * E-mail: [email protected] |
|
| 12 | + * |
|
| 13 | + * From Kadet with love. |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace Kadet\Highlighter\Parser\Token; |
| 17 | 17 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | return $this->_end === null; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - public function isValid(Context $context) |
|
| 103 | + public function isValid(Context $context) |
|
| 104 | 104 | { |
| 105 | 105 | if ($this->_valid === null) { |
| 106 | 106 | $this->validate($context); |
@@ -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) |
@@ -64,8 +64,8 @@ |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @param Language|callable|string $language |
|
| 68 | - * @param array[string] $aliases |
|
| 67 | + * @param string $language |
|
| 68 | + * @param string[] $aliases |
|
| 69 | 69 | */ |
| 70 | 70 | public function registerLanguage($language, $aliases) |
| 71 | 71 | { |