File tree Expand file tree Collapse file tree 7 files changed +11
-14
lines changed
Expand file tree Collapse file tree 7 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 99 - 7.1
1010 - 7.2
1111 - 7.3
12- - hhvm
1312
1413env :
1514 global :
@@ -29,8 +28,8 @@ install:
2928 - if [ "$deps" = "high" ]; then composer update; fi
3029
3130script :
32- - mkdir -p build/logs
33- - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
31+ - mkdir -p build/logs
32+ - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
3433
3534after_script :
36- - php vendor/bin/coveralls
35+ - php vendor/bin/coveralls
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function hasInvalidTokens()
8989 }
9090
9191 /**
92- * @param $type
92+ * @param string $type
9393 * @throws \UnexpectedValueException
9494 * @return boolean
9595 */
@@ -189,7 +189,7 @@ protected function isValid($value)
189189 }
190190
191191 /**
192- * @param $value
192+ * @param string $value
193193 * @return bool
194194 */
195195 protected function isNullType ($ value )
@@ -202,7 +202,7 @@ protected function isNullType($value)
202202 }
203203
204204 /**
205- * @param $value
205+ * @param string $value
206206 * @return bool
207207 */
208208 protected function isUTF8Invalid ($ value )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function __construct(EmailLexer $lexer)
3333 }
3434
3535 /**
36- * @param $str
36+ * @param string $str
3737 * @return array
3838 */
3939 public function parse ($ str )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function __construct()
2828 }
2929
3030 /**
31- * @param $email
31+ * @param string $email
3232 * @param EmailValidation $emailValidation
3333 * @return bool
3434 */
Original file line number Diff line number Diff line change 22
33namespace Egulias \EmailValidator \Exception ;
44
5- class ExpectedQPair extends InvalidEmail
5+ class ExpectingQPair extends InvalidEmail
66{
77 const CODE = 136 ;
88 const REASON = "Expecting QPAIR " ;
Original file line number Diff line number Diff line change 22
33namespace Egulias \EmailValidator \Exception ;
44
5- use Egulias \EmailValidator \Exception \InvalidEmail ;
6-
75class NoDNSRecord extends InvalidEmail
86{
97 const CODE = 5 ;
Original file line number Diff line number Diff line change 88use Egulias \EmailValidator \Exception \CRLFAtTheEnd ;
99use Egulias \EmailValidator \Exception \CRLFX2 ;
1010use Egulias \EmailValidator \Exception \CRNoLF ;
11- use Egulias \EmailValidator \Exception \ExpectedQPair ;
11+ use Egulias \EmailValidator \Exception \ExpectingQPair ;
1212use Egulias \EmailValidator \Exception \ExpectingATEXT ;
1313use Egulias \EmailValidator \Exception \ExpectingCTEXT ;
1414use Egulias \EmailValidator \Exception \UnclosedComment ;
@@ -50,7 +50,7 @@ protected function validateQuotedPair()
5050 {
5151 if (!($ this ->lexer ->token ['type ' ] === EmailLexer::INVALID
5252 || $ this ->lexer ->token ['type ' ] === EmailLexer::C_DEL )) {
53- throw new ExpectedQPair ();
53+ throw new ExpectingQPair ();
5454 }
5555
5656 $ this ->warnings [QuotedPart::CODE ] =
You can’t perform that action at this time.
0 commit comments