@@ -181,6 +181,9 @@ discard block |
||
| 181 | 181 | return self::GENERIC; |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string $value |
|
| 186 | + */ |
|
| 184 | 187 | protected function isValid($value) |
| 185 | 188 | { |
| 186 | 189 | if (isset($this->charValue[$value])) { |
@@ -191,7 +194,7 @@ discard block |
||
| 191 | 194 | } |
| 192 | 195 | |
| 193 | 196 | /** |
| 194 | - * @param $value |
|
| 197 | + * @param string $value |
|
| 195 | 198 | * @return bool |
| 196 | 199 | */ |
| 197 | 200 | protected function isNullType($value) |
@@ -204,7 +207,7 @@ discard block |
||
| 204 | 207 | } |
| 205 | 208 | |
| 206 | 209 | /** |
| 207 | - * @param $value |
|
| 210 | + * @param string $value |
|
| 208 | 211 | * @return bool |
| 209 | 212 | */ |
| 210 | 213 | protected function isUTF8Invalid($value) |
@@ -63,6 +63,9 @@ |
||
| 63 | 63 | return $chars; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $code_point |
|
| 68 | + */ |
|
| 66 | 69 | protected function utf8Chr($code_point) |
| 67 | 70 | { |
| 68 | 71 | |
@@ -78,6 +78,9 @@ discard block |
||
| 78 | 78 | return $result; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param \Egulias\EmailValidator\Exception\InvalidEmail|null $possibleError |
|
| 83 | + */ |
|
| 81 | 84 | private function addNewError($possibleError, array $errors) { |
| 82 | 85 | if (null !== $possibleError) { |
| 83 | 86 | $errors[] = $possibleError; |
@@ -86,6 +89,9 @@ discard block |
||
| 86 | 89 | return $errors; |
| 87 | 90 | } |
| 88 | 91 | |
| 92 | + /** |
|
| 93 | + * @param boolean $result |
|
| 94 | + */ |
|
| 89 | 95 | private function shouldStop($result) |
| 90 | 96 | { |
| 91 | 97 | return !$result && $this->mode === self::STOP_ON_ERROR; |