@@ -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 | |
@@ -56,6 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * {@inheritdoc} |
| 59 | + * @param string $email |
|
| 59 | 60 | */ |
| 60 | 61 | public function isValid($email, EmailLexer $emailLexer) |
| 61 | 62 | { |
@@ -76,6 +77,9 @@ discard block |
||
| 76 | 77 | return $result; |
| 77 | 78 | } |
| 78 | 79 | |
| 80 | + /** |
|
| 81 | + * @param boolean $result |
|
| 82 | + */ |
|
| 79 | 83 | private function shouldStop($result) |
| 80 | 84 | { |
| 81 | 85 | return !$result && $this->mode; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Egulias\EmailValidator\Validation; |
| 4 | 4 | |
| 5 | 5 | use Egulias\EmailValidator\EmailLexer; |
| 6 | -use Egulias\EmailValidator\Exception\InvalidEmail; |
|
| 7 | 6 | use Egulias\EmailValidator\Validation\Exception\EmptyValidationList; |
| 8 | 7 | |
| 9 | 8 | class MultipleValidationWithAnd implements EmailValidation |