Skip to content

Commit c26463f

Browse files
szepeviktoregulias
authored andcommitted
Fix class name and parameter types (#200)
* Fix class name and paramtere types * HHVM is not a thing anymore
1 parent a09af2d commit c26463f

File tree

7 files changed

+11
-14
lines changed

7 files changed

+11
-14
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ php:
99
- 7.1
1010
- 7.2
1111
- 7.3
12-
- hhvm
1312

1413
env:
1514
global:
@@ -29,8 +28,8 @@ install:
2928
- if [ "$deps" = "high" ]; then composer update; fi
3029

3130
script:
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

3534
after_script:
36-
- php vendor/bin/coveralls
35+
- php vendor/bin/coveralls

EmailValidator/EmailLexer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

EmailValidator/EmailParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

EmailValidator/EmailValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*/

EmailValidator/Exception/ExpectingQPair.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Egulias\EmailValidator\Exception;
44

5-
class ExpectedQPair extends InvalidEmail
5+
class ExpectingQPair extends InvalidEmail
66
{
77
const CODE = 136;
88
const REASON = "Expecting QPAIR";

EmailValidator/Exception/NoDNSRecord.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Egulias\EmailValidator\Exception;
44

5-
use Egulias\EmailValidator\Exception\InvalidEmail;
6-
75
class NoDNSRecord extends InvalidEmail
86
{
97
const CODE = 5;

EmailValidator/Parser/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Egulias\EmailValidator\Exception\CRLFAtTheEnd;
99
use Egulias\EmailValidator\Exception\CRLFX2;
1010
use Egulias\EmailValidator\Exception\CRNoLF;
11-
use Egulias\EmailValidator\Exception\ExpectedQPair;
11+
use Egulias\EmailValidator\Exception\ExpectingQPair;
1212
use Egulias\EmailValidator\Exception\ExpectingATEXT;
1313
use Egulias\EmailValidator\Exception\ExpectingCTEXT;
1414
use 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] =

0 commit comments

Comments
 (0)