Skip to content

Commit

Permalink
Fix class name and parameter types (#200)
Browse files Browse the repository at this point in the history
* Fix class name and paramtere types

* HHVM is not a thing anymore
  • Loading branch information
szepeviktor authored and egulias committed May 16, 2019
1 parent a09af2d commit c26463f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ php:
- 7.1
- 7.2
- 7.3
- hhvm

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

script:
- mkdir -p build/logs
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- mkdir -p build/logs
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
- php vendor/bin/coveralls
- php vendor/bin/coveralls
6 changes: 3 additions & 3 deletions EmailValidator/EmailLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function hasInvalidTokens()
}

/**
* @param $type
* @param string $type
* @throws \UnexpectedValueException
* @return boolean
*/
Expand Down Expand Up @@ -189,7 +189,7 @@ protected function isValid($value)
}

/**
* @param $value
* @param string $value
* @return bool
*/
protected function isNullType($value)
Expand All @@ -202,7 +202,7 @@ protected function isNullType($value)
}

/**
* @param $value
* @param string $value
* @return bool
*/
protected function isUTF8Invalid($value)
Expand Down
2 changes: 1 addition & 1 deletion EmailValidator/EmailParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(EmailLexer $lexer)
}

/**
* @param $str
* @param string $str
* @return array
*/
public function parse($str)
Expand Down
2 changes: 1 addition & 1 deletion EmailValidator/EmailValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct()
}

/**
* @param $email
* @param string $email
* @param EmailValidation $emailValidation
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion EmailValidator/Exception/ExpectingQPair.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Egulias\EmailValidator\Exception;

class ExpectedQPair extends InvalidEmail
class ExpectingQPair extends InvalidEmail
{
const CODE = 136;
const REASON = "Expecting QPAIR";
Expand Down
2 changes: 0 additions & 2 deletions EmailValidator/Exception/NoDNSRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Egulias\EmailValidator\Exception;

use Egulias\EmailValidator\Exception\InvalidEmail;

class NoDNSRecord extends InvalidEmail
{
const CODE = 5;
Expand Down
4 changes: 2 additions & 2 deletions EmailValidator/Parser/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Egulias\EmailValidator\Exception\CRLFAtTheEnd;
use Egulias\EmailValidator\Exception\CRLFX2;
use Egulias\EmailValidator\Exception\CRNoLF;
use Egulias\EmailValidator\Exception\ExpectedQPair;
use Egulias\EmailValidator\Exception\ExpectingQPair;
use Egulias\EmailValidator\Exception\ExpectingATEXT;
use Egulias\EmailValidator\Exception\ExpectingCTEXT;
use Egulias\EmailValidator\Exception\UnclosedComment;
Expand Down Expand Up @@ -50,7 +50,7 @@ protected function validateQuotedPair()
{
if (!($this->lexer->token['type'] === EmailLexer::INVALID
|| $this->lexer->token['type'] === EmailLexer::C_DEL)) {
throw new ExpectedQPair();
throw new ExpectingQPair();
}

$this->warnings[QuotedPart::CODE] =
Expand Down

0 comments on commit c26463f

Please sign in to comment.