diff --git a/.php_cs b/.php_cs index 4e789bc2..708db060 100644 --- a/.php_cs +++ b/.php_cs @@ -1,24 +1,24 @@ files() - ->name('*.php') - ->name('*.phpt') - ->in('library') - ->in('tests'); - -return Symfony\CS\Config\Config::create() - ->level(\Symfony\CS\FixerInterface::SYMFONY_LEVEL) - ->fixers(array( - 'empty_return', - 'mb_str_functions', - 'multiline_spaces_before_semicolon', - 'newline_after_open_tag', - 'no_useless_else', - 'no_useless_return', - 'ordered_use', - 'phpdoc_order', - 'short_array_syntax', - )) - ->setUsingCache(true) - ->finder($finder); +return PhpCsFixer\Config::create() + ->setRiskyAllowed(true) + ->setRules([ + '@Symfony' => true, + '@PHP71Migration:risky' => true, + 'phpdoc_align' => false, + 'phpdoc_summary' => false, + 'mb_str_functions' => true, + 'no_multiline_whitespace_before_semicolons' => true, + 'no_useless_else' => true, + 'no_useless_return' => true, + 'ordered_imports' => true, + 'phpdoc_order' => true, + 'array_syntax' => ['syntax' => 'short'], + 'no_short_echo_tag' => true, + ]) + ->setFinder( + PhpCsFixer\Finder::create() + ->in(['library', 'tests']) + ->name('*.php') + ->name('*.phpt') + ); diff --git a/composer.json b/composer.json index 586cdff1..df537e42 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,7 @@ }, "require-dev": { "egulias/email-validator": "^2.0", + "friendsofphp/php-cs-fixer": "^2.8", "malukenho/docheader": "^0.1.4", "mikey179/vfsStream": "^1.6", "phpunit/phpunit": "^6.4", diff --git a/library/Exceptions/AgeException.php b/library/Exceptions/AgeException.php index 1beccc6f..d4239e9b 100644 --- a/library/Exceptions/AgeException.php +++ b/library/Exceptions/AgeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AgeException extends NestedValidationException diff --git a/library/Exceptions/AllOfException.php b/library/Exceptions/AllOfException.php index 73c93b91..0e0cfcbc 100644 --- a/library/Exceptions/AllOfException.php +++ b/library/Exceptions/AllOfException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AllOfException extends GroupedValidationException diff --git a/library/Exceptions/AlnumException.php b/library/Exceptions/AlnumException.php index b082551c..92f1a8da 100644 --- a/library/Exceptions/AlnumException.php +++ b/library/Exceptions/AlnumException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AlnumException extends AlphaException diff --git a/library/Exceptions/AlphaException.php b/library/Exceptions/AlphaException.php index 78161303..728e90a0 100644 --- a/library/Exceptions/AlphaException.php +++ b/library/Exceptions/AlphaException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AlphaException extends ValidationException diff --git a/library/Exceptions/AlwaysInvalidException.php b/library/Exceptions/AlwaysInvalidException.php index cd44ddf7..d8af74c8 100644 --- a/library/Exceptions/AlwaysInvalidException.php +++ b/library/Exceptions/AlwaysInvalidException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AlwaysInvalidException extends ValidationException diff --git a/library/Exceptions/AlwaysValidException.php b/library/Exceptions/AlwaysValidException.php index 4416e469..56b45e4e 100644 --- a/library/Exceptions/AlwaysValidException.php +++ b/library/Exceptions/AlwaysValidException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AlwaysValidException extends ValidationException diff --git a/library/Exceptions/AnyOfException.php b/library/Exceptions/AnyOfException.php index db47ff7c..ddf7a935 100644 --- a/library/Exceptions/AnyOfException.php +++ b/library/Exceptions/AnyOfException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AnyOfException extends NestedValidationException diff --git a/library/Exceptions/ArrayTypeException.php b/library/Exceptions/ArrayTypeException.php index 2c6d19c1..d9e1a4e3 100644 --- a/library/Exceptions/ArrayTypeException.php +++ b/library/Exceptions/ArrayTypeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class ArrayTypeException extends ValidationException diff --git a/library/Exceptions/ArrayValException.php b/library/Exceptions/ArrayValException.php index 5bd9bdb6..de1228c1 100644 --- a/library/Exceptions/ArrayValException.php +++ b/library/Exceptions/ArrayValException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class ArrayValException extends ValidationException diff --git a/library/Exceptions/AtLeastException.php b/library/Exceptions/AtLeastException.php index d9e0743a..96f600af 100644 --- a/library/Exceptions/AtLeastException.php +++ b/library/Exceptions/AtLeastException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AtLeastException extends GroupedValidationException diff --git a/library/Exceptions/AttributeException.php b/library/Exceptions/AttributeException.php index ab9b826a..b7680824 100644 --- a/library/Exceptions/AttributeException.php +++ b/library/Exceptions/AttributeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class AttributeException extends NestedValidationException implements NonOmissibleExceptionInterface diff --git a/library/Exceptions/Base64Exception.php b/library/Exceptions/Base64Exception.php index ef54f42b..0a08bb60 100644 --- a/library/Exceptions/Base64Exception.php +++ b/library/Exceptions/Base64Exception.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class Base64Exception extends ValidationException diff --git a/library/Exceptions/BaseException.php b/library/Exceptions/BaseException.php index cd913fb6..e026d141 100644 --- a/library/Exceptions/BaseException.php +++ b/library/Exceptions/BaseException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class BaseException extends ValidationException diff --git a/library/Exceptions/BetweenException.php b/library/Exceptions/BetweenException.php index 0e0b2513..4412cafe 100644 --- a/library/Exceptions/BetweenException.php +++ b/library/Exceptions/BetweenException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class BetweenException extends NestedValidationException diff --git a/library/Exceptions/BoolTypeException.php b/library/Exceptions/BoolTypeException.php index ece8aec4..d0fcd96f 100644 --- a/library/Exceptions/BoolTypeException.php +++ b/library/Exceptions/BoolTypeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class BoolTypeException extends ValidationException diff --git a/library/Exceptions/BoolValException.php b/library/Exceptions/BoolValException.php index bb2ab436..464f1f8b 100644 --- a/library/Exceptions/BoolValException.php +++ b/library/Exceptions/BoolValException.php @@ -1,4 +1,5 @@ rewind(); $childException = $relatedExceptions->current(); - return $relatedExceptions->count() === 1 && !$childException instanceof NonOmissibleExceptionInterface; + return 1 === $relatedExceptions->count() && !$childException instanceof NonOmissibleExceptionInterface; } /** @@ -166,7 +168,7 @@ class NestedValidationException extends ValidationException implements IteratorA if (isset($knownDepths[$currentDepthOriginal])) { $currentDepth = $knownDepths[$currentDepthOriginal]; } elseif ($currentDepthOriginal > $lastDepthOriginal - && ($this->hasCustomTemplate() || $exceptionIterator->count() != 1)) { + && ($this->hasCustomTemplate() || 1 != $exceptionIterator->count())) { ++$currentDepth; } @@ -217,7 +219,7 @@ class NestedValidationException extends ValidationException implements IteratorA $messages = []; $exceptions = $this->getIterator(); - if ($this->hasCustomTemplate() || count($exceptions) != 1) { + if ($this->hasCustomTemplate() || 1 != count($exceptions)) { $messages[] = sprintf('%s %s', $marker, $this->getMessage()); } diff --git a/library/Exceptions/NfeAccessKeyException.php b/library/Exceptions/NfeAccessKeyException.php index 349bdf24..78521a72 100644 --- a/library/Exceptions/NfeAccessKeyException.php +++ b/library/Exceptions/NfeAccessKeyException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NfeAccessKeyException extends ValidationException diff --git a/library/Exceptions/NifException.php b/library/Exceptions/NifException.php index e0ac6f8c..b4b4ddc5 100644 --- a/library/Exceptions/NifException.php +++ b/library/Exceptions/NifException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; /** diff --git a/library/Exceptions/NoException.php b/library/Exceptions/NoException.php index 617ec3c2..73166538 100644 --- a/library/Exceptions/NoException.php +++ b/library/Exceptions/NoException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NoException extends ValidationException diff --git a/library/Exceptions/NoWhitespaceException.php b/library/Exceptions/NoWhitespaceException.php index 01b65c8e..b8ac49b5 100644 --- a/library/Exceptions/NoWhitespaceException.php +++ b/library/Exceptions/NoWhitespaceException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NoWhitespaceException extends ValidationException diff --git a/library/Exceptions/NonOmissibleExceptionInterface.php b/library/Exceptions/NonOmissibleExceptionInterface.php index 94e9270b..8f228e4b 100644 --- a/library/Exceptions/NonOmissibleExceptionInterface.php +++ b/library/Exceptions/NonOmissibleExceptionInterface.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; interface NonOmissibleExceptionInterface extends ExceptionInterface diff --git a/library/Exceptions/NoneOfException.php b/library/Exceptions/NoneOfException.php index 244f111f..7ec9de21 100644 --- a/library/Exceptions/NoneOfException.php +++ b/library/Exceptions/NoneOfException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NoneOfException extends NestedValidationException diff --git a/library/Exceptions/NotBlankException.php b/library/Exceptions/NotBlankException.php index 66b57223..6e35e8ce 100644 --- a/library/Exceptions/NotBlankException.php +++ b/library/Exceptions/NotBlankException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NotBlankException extends ValidationException @@ -29,6 +31,6 @@ class NotBlankException extends ValidationException public function chooseTemplate() { - return $this->getName() == '' ? static::STANDARD : static::NAMED; + return '' == $this->getName() ? static::STANDARD : static::NAMED; } } diff --git a/library/Exceptions/NotEmptyException.php b/library/Exceptions/NotEmptyException.php index 7414280e..d2f28e8a 100644 --- a/library/Exceptions/NotEmptyException.php +++ b/library/Exceptions/NotEmptyException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NotEmptyException extends ValidationException @@ -28,6 +30,6 @@ class NotEmptyException extends ValidationException public function chooseTemplate() { - return $this->getName() == '' ? static::STANDARD : static::NAMED; + return '' == $this->getName() ? static::STANDARD : static::NAMED; } } diff --git a/library/Exceptions/NotException.php b/library/Exceptions/NotException.php index e3bc28ae..7f3b3659 100644 --- a/library/Exceptions/NotException.php +++ b/library/Exceptions/NotException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NotException extends GroupedValidationException diff --git a/library/Exceptions/NotOptionalException.php b/library/Exceptions/NotOptionalException.php index e4b613bf..d4c9e5f7 100644 --- a/library/Exceptions/NotOptionalException.php +++ b/library/Exceptions/NotOptionalException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NotOptionalException extends ValidationException @@ -29,6 +31,6 @@ class NotOptionalException extends ValidationException public function chooseTemplate() { - return $this->getName() == '' ? static::STANDARD : static::NAMED; + return '' == $this->getName() ? static::STANDARD : static::NAMED; } } diff --git a/library/Exceptions/NullTypeException.php b/library/Exceptions/NullTypeException.php index f5d69efb..5c28050b 100644 --- a/library/Exceptions/NullTypeException.php +++ b/library/Exceptions/NullTypeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NullTypeException extends ValidationException diff --git a/library/Exceptions/NumberException.php b/library/Exceptions/NumberException.php index 3dbe255a..ad26b48f 100644 --- a/library/Exceptions/NumberException.php +++ b/library/Exceptions/NumberException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NumberException extends ValidationException diff --git a/library/Exceptions/NumericValException.php b/library/Exceptions/NumericValException.php index 26518e77..d365baf4 100644 --- a/library/Exceptions/NumericValException.php +++ b/library/Exceptions/NumericValException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class NumericValException extends ValidationException diff --git a/library/Exceptions/ObjectTypeException.php b/library/Exceptions/ObjectTypeException.php index f6dd6b94..e99701c8 100644 --- a/library/Exceptions/ObjectTypeException.php +++ b/library/Exceptions/ObjectTypeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class ObjectTypeException extends ValidationException diff --git a/library/Exceptions/OddException.php b/library/Exceptions/OddException.php index 87a0c572..8b01b35f 100644 --- a/library/Exceptions/OddException.php +++ b/library/Exceptions/OddException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class OddException extends ValidationException diff --git a/library/Exceptions/OneOfException.php b/library/Exceptions/OneOfException.php index c28c11b1..5134842f 100644 --- a/library/Exceptions/OneOfException.php +++ b/library/Exceptions/OneOfException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; /** diff --git a/library/Exceptions/OptionalException.php b/library/Exceptions/OptionalException.php index f52d5795..e782206c 100644 --- a/library/Exceptions/OptionalException.php +++ b/library/Exceptions/OptionalException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class OptionalException extends ValidationException @@ -29,6 +31,6 @@ class OptionalException extends ValidationException public function chooseTemplate() { - return $this->getName() == '' ? static::STANDARD : static::NAMED; + return '' == $this->getName() ? static::STANDARD : static::NAMED; } } diff --git a/library/Exceptions/PerfectSquareException.php b/library/Exceptions/PerfectSquareException.php index 27f3ae9f..7008845b 100644 --- a/library/Exceptions/PerfectSquareException.php +++ b/library/Exceptions/PerfectSquareException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PerfectSquareException extends ValidationException diff --git a/library/Exceptions/PeselException.php b/library/Exceptions/PeselException.php index c565402d..1f48f42e 100644 --- a/library/Exceptions/PeselException.php +++ b/library/Exceptions/PeselException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PeselException extends ValidationException diff --git a/library/Exceptions/PhoneException.php b/library/Exceptions/PhoneException.php index f680684a..5f6c053f 100644 --- a/library/Exceptions/PhoneException.php +++ b/library/Exceptions/PhoneException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PhoneException extends ValidationException diff --git a/library/Exceptions/PhpLabelException.php b/library/Exceptions/PhpLabelException.php index df76ed56..a63ed65e 100644 --- a/library/Exceptions/PhpLabelException.php +++ b/library/Exceptions/PhpLabelException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PhpLabelException extends ValidationException diff --git a/library/Exceptions/PisException.php b/library/Exceptions/PisException.php index 7cd14a0a..b1e3e2cb 100644 --- a/library/Exceptions/PisException.php +++ b/library/Exceptions/PisException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PisException extends ValidationException diff --git a/library/Exceptions/PositiveException.php b/library/Exceptions/PositiveException.php index c370216c..203cfb2d 100644 --- a/library/Exceptions/PositiveException.php +++ b/library/Exceptions/PositiveException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PositiveException extends ValidationException diff --git a/library/Exceptions/PostalCodeException.php b/library/Exceptions/PostalCodeException.php index 3eaf14ce..16f9e938 100644 --- a/library/Exceptions/PostalCodeException.php +++ b/library/Exceptions/PostalCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PostalCodeException extends ValidationException diff --git a/library/Exceptions/PrimeNumberException.php b/library/Exceptions/PrimeNumberException.php index 5c4fdf96..b2ba33df 100644 --- a/library/Exceptions/PrimeNumberException.php +++ b/library/Exceptions/PrimeNumberException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PrimeNumberException extends ValidationException diff --git a/library/Exceptions/PrntException.php b/library/Exceptions/PrntException.php index 79531511..1c2eedb7 100644 --- a/library/Exceptions/PrntException.php +++ b/library/Exceptions/PrntException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PrntException extends AlphaException diff --git a/library/Exceptions/PunctException.php b/library/Exceptions/PunctException.php index 36948d60..85773210 100644 --- a/library/Exceptions/PunctException.php +++ b/library/Exceptions/PunctException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class PunctException extends AlphaException diff --git a/library/Exceptions/ReadableException.php b/library/Exceptions/ReadableException.php index 9965e2a6..a05eb158 100644 --- a/library/Exceptions/ReadableException.php +++ b/library/Exceptions/ReadableException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class ReadableException extends ValidationException diff --git a/library/Exceptions/RecursiveExceptionIterator.php b/library/Exceptions/RecursiveExceptionIterator.php index 66e6248d..a5149145 100644 --- a/library/Exceptions/RecursiveExceptionIterator.php +++ b/library/Exceptions/RecursiveExceptionIterator.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; use Countable; @@ -52,12 +54,12 @@ class RecursiveExceptionIterator implements RecursiveIterator, Countable return $this->exceptions->key(); } - public function next() + public function next(): void { $this->exceptions->next(); } - public function rewind() + public function rewind(): void { $this->exceptions->rewind(); } diff --git a/library/Exceptions/RegexException.php b/library/Exceptions/RegexException.php index 76a629bb..e7374f8b 100644 --- a/library/Exceptions/RegexException.php +++ b/library/Exceptions/RegexException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class RegexException extends ValidationException diff --git a/library/Exceptions/ResourceTypeException.php b/library/Exceptions/ResourceTypeException.php index a1f05572..ff3a2789 100644 --- a/library/Exceptions/ResourceTypeException.php +++ b/library/Exceptions/ResourceTypeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; /** diff --git a/library/Exceptions/RomanException.php b/library/Exceptions/RomanException.php index 937730d9..9b4b18ad 100644 --- a/library/Exceptions/RomanException.php +++ b/library/Exceptions/RomanException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class RomanException extends ValidationException diff --git a/library/Exceptions/ScalarValException.php b/library/Exceptions/ScalarValException.php index 8744f32c..e8d48e83 100644 --- a/library/Exceptions/ScalarValException.php +++ b/library/Exceptions/ScalarValException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; /** diff --git a/library/Exceptions/SfException.php b/library/Exceptions/SfException.php index 76fa3856..97d51689 100644 --- a/library/Exceptions/SfException.php +++ b/library/Exceptions/SfException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class SfException extends ValidationException diff --git a/library/Exceptions/SizeException.php b/library/Exceptions/SizeException.php index 5074bbde..9b796356 100644 --- a/library/Exceptions/SizeException.php +++ b/library/Exceptions/SizeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; /** diff --git a/library/Exceptions/SlugException.php b/library/Exceptions/SlugException.php index c2604359..b4c2f051 100644 --- a/library/Exceptions/SlugException.php +++ b/library/Exceptions/SlugException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class SlugException extends ValidationException diff --git a/library/Exceptions/SortedException.php b/library/Exceptions/SortedException.php index eb090f5a..cd515121 100644 --- a/library/Exceptions/SortedException.php +++ b/library/Exceptions/SortedException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class SortedException extends ValidationException diff --git a/library/Exceptions/SpaceException.php b/library/Exceptions/SpaceException.php index f2474228..e9b9601f 100644 --- a/library/Exceptions/SpaceException.php +++ b/library/Exceptions/SpaceException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class SpaceException extends AlphaException diff --git a/library/Exceptions/StartsWithException.php b/library/Exceptions/StartsWithException.php index b0fb95e8..29d4daae 100644 --- a/library/Exceptions/StartsWithException.php +++ b/library/Exceptions/StartsWithException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class StartsWithException extends ValidationException diff --git a/library/Exceptions/StringTypeException.php b/library/Exceptions/StringTypeException.php index 8b2840bc..e9294c35 100644 --- a/library/Exceptions/StringTypeException.php +++ b/library/Exceptions/StringTypeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class StringTypeException extends ValidationException diff --git a/library/Exceptions/StringValException.php b/library/Exceptions/StringValException.php index 1f194b6c..a5de295d 100644 --- a/library/Exceptions/StringValException.php +++ b/library/Exceptions/StringValException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class StringValException extends ValidationException diff --git a/library/Exceptions/SubdivisionCode/AdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AdSubdivisionCodeException.php index e1186b73..fa405683 100644 --- a/library/Exceptions/SubdivisionCode/AdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AeSubdivisionCodeException.php index 2cfd928f..122b0890 100644 --- a/library/Exceptions/SubdivisionCode/AeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AfSubdivisionCodeException.php index c01b375e..8bd7c1f6 100644 --- a/library/Exceptions/SubdivisionCode/AfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AgSubdivisionCodeException.php index 2d84419c..60cc0fe9 100644 --- a/library/Exceptions/SubdivisionCode/AgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AiSubdivisionCodeException.php index 1855f171..a69f1604 100644 --- a/library/Exceptions/SubdivisionCode/AiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AlSubdivisionCodeException.php index 0361e51e..157ccc22 100644 --- a/library/Exceptions/SubdivisionCode/AlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AmSubdivisionCodeException.php index 9c9afc0b..cd46c01f 100644 --- a/library/Exceptions/SubdivisionCode/AmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AnSubdivisionCodeException.php index f3bc25aa..b1161284 100644 --- a/library/Exceptions/SubdivisionCode/AnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AoSubdivisionCodeException.php index 6e54ae1e..6fae4001 100644 --- a/library/Exceptions/SubdivisionCode/AoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AqSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AqSubdivisionCodeException.php index 8fc38343..047ec659 100644 --- a/library/Exceptions/SubdivisionCode/AqSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AqSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ArSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ArSubdivisionCodeException.php index 52a7a1fd..7e375c28 100644 --- a/library/Exceptions/SubdivisionCode/ArSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ArSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AsSubdivisionCodeException.php index 9eb3c1af..5be39f47 100644 --- a/library/Exceptions/SubdivisionCode/AsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AtSubdivisionCodeException.php index c6b5c726..101278a1 100644 --- a/library/Exceptions/SubdivisionCode/AtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AuSubdivisionCodeException.php index b982179b..4fc53727 100644 --- a/library/Exceptions/SubdivisionCode/AuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AwSubdivisionCodeException.php index 2cc31b81..1dc26318 100644 --- a/library/Exceptions/SubdivisionCode/AwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AxSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AxSubdivisionCodeException.php index 2ac81d2b..6b3bd04b 100644 --- a/library/Exceptions/SubdivisionCode/AxSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AxSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/AzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/AzSubdivisionCodeException.php index 22e29d2f..8074a32d 100644 --- a/library/Exceptions/SubdivisionCode/AzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/AzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BaSubdivisionCodeException.php index fdd7fe87..2fe6e2d5 100644 --- a/library/Exceptions/SubdivisionCode/BaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BbSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BbSubdivisionCodeException.php index 8eb8ba36..7ba9141a 100644 --- a/library/Exceptions/SubdivisionCode/BbSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BbSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BdSubdivisionCodeException.php index 8df36c2f..f1f54c89 100644 --- a/library/Exceptions/SubdivisionCode/BdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BeSubdivisionCodeException.php index 83073aff..1b0760c4 100644 --- a/library/Exceptions/SubdivisionCode/BeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BfSubdivisionCodeException.php index 09cf11ca..d3580c45 100644 --- a/library/Exceptions/SubdivisionCode/BfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BgSubdivisionCodeException.php index 48123759..ca885c4a 100644 --- a/library/Exceptions/SubdivisionCode/BgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BhSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BhSubdivisionCodeException.php index 67a7fd39..02baea0b 100644 --- a/library/Exceptions/SubdivisionCode/BhSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BhSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BiSubdivisionCodeException.php index 946a26dc..795e6efa 100644 --- a/library/Exceptions/SubdivisionCode/BiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BjSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BjSubdivisionCodeException.php index a4893a7e..f053d8ba 100644 --- a/library/Exceptions/SubdivisionCode/BjSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BjSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BlSubdivisionCodeException.php index 8c246f5a..d72c976b 100644 --- a/library/Exceptions/SubdivisionCode/BlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BmSubdivisionCodeException.php index 9d114bd3..ec6e8e8d 100644 --- a/library/Exceptions/SubdivisionCode/BmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BnSubdivisionCodeException.php index ff5b171b..8f9bc353 100644 --- a/library/Exceptions/SubdivisionCode/BnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BoSubdivisionCodeException.php index 1e9afcfa..1106e046 100644 --- a/library/Exceptions/SubdivisionCode/BoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BqSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BqSubdivisionCodeException.php index 27d5b80f..217f7174 100644 --- a/library/Exceptions/SubdivisionCode/BqSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BqSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BrSubdivisionCodeException.php index dc78b3e1..12066d1e 100644 --- a/library/Exceptions/SubdivisionCode/BrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BsSubdivisionCodeException.php index 1d508a09..1aaa351f 100644 --- a/library/Exceptions/SubdivisionCode/BsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BtSubdivisionCodeException.php index 06826b16..4d96c551 100644 --- a/library/Exceptions/SubdivisionCode/BtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BvSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BvSubdivisionCodeException.php index 9cdb9546..6df7cda6 100644 --- a/library/Exceptions/SubdivisionCode/BvSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BvSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BwSubdivisionCodeException.php index 4aaaa22a..9e7987e5 100644 --- a/library/Exceptions/SubdivisionCode/BwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BySubdivisionCodeException.php index 1537996b..d9604ac0 100644 --- a/library/Exceptions/SubdivisionCode/BySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/BzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/BzSubdivisionCodeException.php index 360e1d94..f8fffe2b 100644 --- a/library/Exceptions/SubdivisionCode/BzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/BzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CaSubdivisionCodeException.php index d9673a5a..49416930 100644 --- a/library/Exceptions/SubdivisionCode/CaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CcSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CcSubdivisionCodeException.php index 000db2d7..71a1b449 100644 --- a/library/Exceptions/SubdivisionCode/CcSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CcSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CdSubdivisionCodeException.php index 67a0613b..31c59c5d 100644 --- a/library/Exceptions/SubdivisionCode/CdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CfSubdivisionCodeException.php index 67172ef3..875a4000 100644 --- a/library/Exceptions/SubdivisionCode/CfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CgSubdivisionCodeException.php index 6984d462..9e313001 100644 --- a/library/Exceptions/SubdivisionCode/CgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ChSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ChSubdivisionCodeException.php index f6aedf69..efbf191e 100644 --- a/library/Exceptions/SubdivisionCode/ChSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ChSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CiSubdivisionCodeException.php index 4299f83e..3d6938e7 100644 --- a/library/Exceptions/SubdivisionCode/CiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CkSubdivisionCodeException.php index 7325d83d..170464a1 100644 --- a/library/Exceptions/SubdivisionCode/CkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ClSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ClSubdivisionCodeException.php index ccbd691d..fc78325a 100644 --- a/library/Exceptions/SubdivisionCode/ClSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ClSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CmSubdivisionCodeException.php index e0f5d5a4..c317abed 100644 --- a/library/Exceptions/SubdivisionCode/CmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CnSubdivisionCodeException.php index c1c92748..8442c7e3 100644 --- a/library/Exceptions/SubdivisionCode/CnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CoSubdivisionCodeException.php index 7f99b3a7..de996307 100644 --- a/library/Exceptions/SubdivisionCode/CoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CrSubdivisionCodeException.php index e5abddec..37208d15 100644 --- a/library/Exceptions/SubdivisionCode/CrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CsSubdivisionCodeException.php index 10fe81ce..3db28edc 100644 --- a/library/Exceptions/SubdivisionCode/CsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CuSubdivisionCodeException.php index 618c905e..87176db2 100644 --- a/library/Exceptions/SubdivisionCode/CuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CvSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CvSubdivisionCodeException.php index 99141bd8..a05f6b5b 100644 --- a/library/Exceptions/SubdivisionCode/CvSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CvSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CwSubdivisionCodeException.php index 8c28435a..18ddb1d6 100644 --- a/library/Exceptions/SubdivisionCode/CwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CxSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CxSubdivisionCodeException.php index a2a95b31..fe98e96e 100644 --- a/library/Exceptions/SubdivisionCode/CxSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CxSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CySubdivisionCodeException.php index a1b1da96..113f2afb 100644 --- a/library/Exceptions/SubdivisionCode/CySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/CzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/CzSubdivisionCodeException.php index b6f84405..a01d19c6 100644 --- a/library/Exceptions/SubdivisionCode/CzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/CzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/DeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/DeSubdivisionCodeException.php index 4f07751c..963dee0f 100644 --- a/library/Exceptions/SubdivisionCode/DeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/DeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/DjSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/DjSubdivisionCodeException.php index a41df22c..0358d509 100644 --- a/library/Exceptions/SubdivisionCode/DjSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/DjSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/DkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/DkSubdivisionCodeException.php index cef6f3ca..b011da47 100644 --- a/library/Exceptions/SubdivisionCode/DkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/DkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/DmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/DmSubdivisionCodeException.php index eef71571..0440a5fa 100644 --- a/library/Exceptions/SubdivisionCode/DmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/DmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/DoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/DoSubdivisionCodeException.php index 93562299..bb5bd5dc 100644 --- a/library/Exceptions/SubdivisionCode/DoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/DoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/DzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/DzSubdivisionCodeException.php index 1d4d0075..ecf4ee76 100644 --- a/library/Exceptions/SubdivisionCode/DzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/DzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/EcSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/EcSubdivisionCodeException.php index 4815a16e..275ec2a9 100644 --- a/library/Exceptions/SubdivisionCode/EcSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/EcSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/EeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/EeSubdivisionCodeException.php index 8309a594..1bd56da6 100644 --- a/library/Exceptions/SubdivisionCode/EeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/EeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/EgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/EgSubdivisionCodeException.php index 3c55a7ca..7e7fa8bf 100644 --- a/library/Exceptions/SubdivisionCode/EgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/EgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/EhSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/EhSubdivisionCodeException.php index 533c4440..3754aecd 100644 --- a/library/Exceptions/SubdivisionCode/EhSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/EhSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ErSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ErSubdivisionCodeException.php index b162128b..d6f18ce7 100644 --- a/library/Exceptions/SubdivisionCode/ErSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ErSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/EsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/EsSubdivisionCodeException.php index 7a476e39..6881e3a6 100644 --- a/library/Exceptions/SubdivisionCode/EsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/EsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/EtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/EtSubdivisionCodeException.php index 83be03cb..9c2204bb 100644 --- a/library/Exceptions/SubdivisionCode/EtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/EtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/FiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/FiSubdivisionCodeException.php index c6908084..61366769 100644 --- a/library/Exceptions/SubdivisionCode/FiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/FiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/FjSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/FjSubdivisionCodeException.php index 3f0419e7..4fc64a2c 100644 --- a/library/Exceptions/SubdivisionCode/FjSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/FjSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/FkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/FkSubdivisionCodeException.php index 77e40f09..99baae14 100644 --- a/library/Exceptions/SubdivisionCode/FkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/FkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/FmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/FmSubdivisionCodeException.php index ffa1083c..7cdd8c4b 100644 --- a/library/Exceptions/SubdivisionCode/FmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/FmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/FoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/FoSubdivisionCodeException.php index 911d30d2..0a324f68 100644 --- a/library/Exceptions/SubdivisionCode/FoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/FoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/FrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/FrSubdivisionCodeException.php index c489dfa1..ab3ad391 100644 --- a/library/Exceptions/SubdivisionCode/FrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/FrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GaSubdivisionCodeException.php index 610731db..455f9983 100644 --- a/library/Exceptions/SubdivisionCode/GaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GbSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GbSubdivisionCodeException.php index 1c5afea1..2a6b7abb 100644 --- a/library/Exceptions/SubdivisionCode/GbSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GbSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GdSubdivisionCodeException.php index 5a20caaa..34874e60 100644 --- a/library/Exceptions/SubdivisionCode/GdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GeSubdivisionCodeException.php index 93735e5d..86d55e1e 100644 --- a/library/Exceptions/SubdivisionCode/GeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GfSubdivisionCodeException.php index 18fe33bd..989b8a48 100644 --- a/library/Exceptions/SubdivisionCode/GfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GgSubdivisionCodeException.php index 7d679a50..e16de71e 100644 --- a/library/Exceptions/SubdivisionCode/GgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GhSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GhSubdivisionCodeException.php index 35b0eb5c..53d18591 100644 --- a/library/Exceptions/SubdivisionCode/GhSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GhSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GiSubdivisionCodeException.php index 8118b89c..e4064c83 100644 --- a/library/Exceptions/SubdivisionCode/GiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GlSubdivisionCodeException.php index a2782f08..526c70b0 100644 --- a/library/Exceptions/SubdivisionCode/GlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GmSubdivisionCodeException.php index c7027934..83d3a4e4 100644 --- a/library/Exceptions/SubdivisionCode/GmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GnSubdivisionCodeException.php index ba3a75fd..253eedf1 100644 --- a/library/Exceptions/SubdivisionCode/GnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GpSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GpSubdivisionCodeException.php index f1a23c15..13a97345 100644 --- a/library/Exceptions/SubdivisionCode/GpSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GpSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GqSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GqSubdivisionCodeException.php index c499922f..207806f7 100644 --- a/library/Exceptions/SubdivisionCode/GqSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GqSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GrSubdivisionCodeException.php index 8bac708c..f4327b50 100644 --- a/library/Exceptions/SubdivisionCode/GrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GsSubdivisionCodeException.php index 3841cec8..d489aa3f 100644 --- a/library/Exceptions/SubdivisionCode/GsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GtSubdivisionCodeException.php index 932e1885..4996b014 100644 --- a/library/Exceptions/SubdivisionCode/GtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GuSubdivisionCodeException.php index a10200cb..f184e6ad 100644 --- a/library/Exceptions/SubdivisionCode/GuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GwSubdivisionCodeException.php index 1263c99a..5b74afa3 100644 --- a/library/Exceptions/SubdivisionCode/GwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/GySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/GySubdivisionCodeException.php index 0a9109c9..72187f0d 100644 --- a/library/Exceptions/SubdivisionCode/GySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/GySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/HkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/HkSubdivisionCodeException.php index b75e3a8c..a0e59022 100644 --- a/library/Exceptions/SubdivisionCode/HkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/HkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/HmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/HmSubdivisionCodeException.php index b587407a..bf65d337 100644 --- a/library/Exceptions/SubdivisionCode/HmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/HmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/HnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/HnSubdivisionCodeException.php index 24a0a088..85d78033 100644 --- a/library/Exceptions/SubdivisionCode/HnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/HnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/HrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/HrSubdivisionCodeException.php index df2070c8..8c64d60b 100644 --- a/library/Exceptions/SubdivisionCode/HrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/HrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/HtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/HtSubdivisionCodeException.php index e627b2b0..8e2f53c1 100644 --- a/library/Exceptions/SubdivisionCode/HtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/HtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/HuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/HuSubdivisionCodeException.php index 8dc112b9..ec1a82e4 100644 --- a/library/Exceptions/SubdivisionCode/HuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/HuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/IdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/IdSubdivisionCodeException.php index dc354588..418bd396 100644 --- a/library/Exceptions/SubdivisionCode/IdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/IdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/IeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/IeSubdivisionCodeException.php index 2ca8407f..5d908c39 100644 --- a/library/Exceptions/SubdivisionCode/IeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/IeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/IlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/IlSubdivisionCodeException.php index bf40b447..2da4ccd1 100644 --- a/library/Exceptions/SubdivisionCode/IlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/IlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ImSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ImSubdivisionCodeException.php index f992adc0..80eb1813 100644 --- a/library/Exceptions/SubdivisionCode/ImSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ImSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/InSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/InSubdivisionCodeException.php index 635950d1..72d62116 100644 --- a/library/Exceptions/SubdivisionCode/InSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/InSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/IoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/IoSubdivisionCodeException.php index 6c5f34e3..793807c8 100644 --- a/library/Exceptions/SubdivisionCode/IoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/IoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/IqSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/IqSubdivisionCodeException.php index f683729e..95a86f6c 100644 --- a/library/Exceptions/SubdivisionCode/IqSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/IqSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/IrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/IrSubdivisionCodeException.php index a25a6c13..f43f8f56 100644 --- a/library/Exceptions/SubdivisionCode/IrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/IrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/IsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/IsSubdivisionCodeException.php index 16649899..00c3566e 100644 --- a/library/Exceptions/SubdivisionCode/IsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/IsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ItSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ItSubdivisionCodeException.php index 09d010bf..64400a54 100644 --- a/library/Exceptions/SubdivisionCode/ItSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ItSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/JeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/JeSubdivisionCodeException.php index 92a549f9..95a07ce7 100644 --- a/library/Exceptions/SubdivisionCode/JeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/JeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/JmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/JmSubdivisionCodeException.php index fe2812ee..95ed1a98 100644 --- a/library/Exceptions/SubdivisionCode/JmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/JmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/JoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/JoSubdivisionCodeException.php index eeb995c9..5b572661 100644 --- a/library/Exceptions/SubdivisionCode/JoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/JoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/JpSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/JpSubdivisionCodeException.php index 6d6b3bec..240532d3 100644 --- a/library/Exceptions/SubdivisionCode/JpSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/JpSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KeSubdivisionCodeException.php index 367c3df3..0b40aea5 100644 --- a/library/Exceptions/SubdivisionCode/KeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KgSubdivisionCodeException.php index af06b336..b58727eb 100644 --- a/library/Exceptions/SubdivisionCode/KgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KhSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KhSubdivisionCodeException.php index 566fa01f..9ea03c5a 100644 --- a/library/Exceptions/SubdivisionCode/KhSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KhSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KiSubdivisionCodeException.php index c2c73fac..57aeadac 100644 --- a/library/Exceptions/SubdivisionCode/KiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KmSubdivisionCodeException.php index 4adfe228..572e5b28 100644 --- a/library/Exceptions/SubdivisionCode/KmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KnSubdivisionCodeException.php index 8e14fbe4..8fc799e5 100644 --- a/library/Exceptions/SubdivisionCode/KnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KpSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KpSubdivisionCodeException.php index 19016e8b..2f53538b 100644 --- a/library/Exceptions/SubdivisionCode/KpSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KpSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KrSubdivisionCodeException.php index 2bf28c56..6063a7f5 100644 --- a/library/Exceptions/SubdivisionCode/KrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KwSubdivisionCodeException.php index 3fcad03f..6e6dfd9f 100644 --- a/library/Exceptions/SubdivisionCode/KwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KySubdivisionCodeException.php index 5c232151..7d5afd88 100644 --- a/library/Exceptions/SubdivisionCode/KySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/KzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/KzSubdivisionCodeException.php index a2c28634..3cbd7359 100644 --- a/library/Exceptions/SubdivisionCode/KzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/KzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LaSubdivisionCodeException.php index 4ed937e0..41ef6cd7 100644 --- a/library/Exceptions/SubdivisionCode/LaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LbSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LbSubdivisionCodeException.php index 803fc26b..a35f3d86 100644 --- a/library/Exceptions/SubdivisionCode/LbSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LbSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LcSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LcSubdivisionCodeException.php index c9087630..f8ff15c8 100644 --- a/library/Exceptions/SubdivisionCode/LcSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LcSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LiSubdivisionCodeException.php index be3da21a..8ef51858 100644 --- a/library/Exceptions/SubdivisionCode/LiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LkSubdivisionCodeException.php index 587a98e1..d1627310 100644 --- a/library/Exceptions/SubdivisionCode/LkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LrSubdivisionCodeException.php index 0e571cac..a29893f4 100644 --- a/library/Exceptions/SubdivisionCode/LrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LsSubdivisionCodeException.php index b7b2c4f4..55bcd369 100644 --- a/library/Exceptions/SubdivisionCode/LsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LtSubdivisionCodeException.php index aa62d6f7..63629054 100644 --- a/library/Exceptions/SubdivisionCode/LtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LuSubdivisionCodeException.php index 5aafbe35..6eef25a1 100644 --- a/library/Exceptions/SubdivisionCode/LuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LvSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LvSubdivisionCodeException.php index c3658054..fe02e1b5 100644 --- a/library/Exceptions/SubdivisionCode/LvSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LvSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/LySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/LySubdivisionCodeException.php index 93661c33..086abdba 100644 --- a/library/Exceptions/SubdivisionCode/LySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/LySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MaSubdivisionCodeException.php index 1b27fe26..b42bdd5c 100644 --- a/library/Exceptions/SubdivisionCode/MaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/McSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/McSubdivisionCodeException.php index 26535da2..c80d4037 100644 --- a/library/Exceptions/SubdivisionCode/McSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/McSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MdSubdivisionCodeException.php index 47efbe3f..3141a248 100644 --- a/library/Exceptions/SubdivisionCode/MdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MeSubdivisionCodeException.php index 69e382fb..d276de7f 100644 --- a/library/Exceptions/SubdivisionCode/MeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MfSubdivisionCodeException.php index 81bec5fb..244ca59d 100644 --- a/library/Exceptions/SubdivisionCode/MfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MgSubdivisionCodeException.php index 92038f46..d712fbda 100644 --- a/library/Exceptions/SubdivisionCode/MgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MhSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MhSubdivisionCodeException.php index c3a6048b..967498df 100644 --- a/library/Exceptions/SubdivisionCode/MhSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MhSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MkSubdivisionCodeException.php index 6aecab8a..dad85295 100644 --- a/library/Exceptions/SubdivisionCode/MkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MlSubdivisionCodeException.php index 7df2606b..b35283ac 100644 --- a/library/Exceptions/SubdivisionCode/MlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MmSubdivisionCodeException.php index 4fbb9b8f..6a058e5f 100644 --- a/library/Exceptions/SubdivisionCode/MmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MnSubdivisionCodeException.php index 19a59d93..df9b46e3 100644 --- a/library/Exceptions/SubdivisionCode/MnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MoSubdivisionCodeException.php index d4fddd52..d86f17ae 100644 --- a/library/Exceptions/SubdivisionCode/MoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MpSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MpSubdivisionCodeException.php index 1b6c11e4..ac65b605 100644 --- a/library/Exceptions/SubdivisionCode/MpSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MpSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MqSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MqSubdivisionCodeException.php index 94c5d9a9..4b28daab 100644 --- a/library/Exceptions/SubdivisionCode/MqSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MqSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MrSubdivisionCodeException.php index fc683dd9..9a2e9389 100644 --- a/library/Exceptions/SubdivisionCode/MrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MsSubdivisionCodeException.php index 298d52a3..84fc3676 100644 --- a/library/Exceptions/SubdivisionCode/MsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MtSubdivisionCodeException.php index 1c9cbfef..8422e372 100644 --- a/library/Exceptions/SubdivisionCode/MtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MuSubdivisionCodeException.php index ad424d47..f254d492 100644 --- a/library/Exceptions/SubdivisionCode/MuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MvSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MvSubdivisionCodeException.php index 647dc7a6..83fe165d 100644 --- a/library/Exceptions/SubdivisionCode/MvSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MvSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MwSubdivisionCodeException.php index c845f1a5..a2380084 100644 --- a/library/Exceptions/SubdivisionCode/MwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MxSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MxSubdivisionCodeException.php index ada122d5..d6b1bfc8 100644 --- a/library/Exceptions/SubdivisionCode/MxSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MxSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MySubdivisionCodeException.php index 82200b58..69e1fe57 100644 --- a/library/Exceptions/SubdivisionCode/MySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/MzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/MzSubdivisionCodeException.php index 0ddfa1ac..bd9e4295 100644 --- a/library/Exceptions/SubdivisionCode/MzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/MzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NaSubdivisionCodeException.php index 917bd808..0aa5a3f1 100644 --- a/library/Exceptions/SubdivisionCode/NaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NcSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NcSubdivisionCodeException.php index c1420768..2d71cb01 100644 --- a/library/Exceptions/SubdivisionCode/NcSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NcSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NeSubdivisionCodeException.php index d2aa93f6..e8ba8c74 100644 --- a/library/Exceptions/SubdivisionCode/NeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NfSubdivisionCodeException.php index c54a5347..a77ea683 100644 --- a/library/Exceptions/SubdivisionCode/NfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NgSubdivisionCodeException.php index 2fb4bac3..fcb46647 100644 --- a/library/Exceptions/SubdivisionCode/NgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NiSubdivisionCodeException.php index 1a890021..fa9c8ae8 100644 --- a/library/Exceptions/SubdivisionCode/NiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NlSubdivisionCodeException.php index 658080a8..6800b790 100644 --- a/library/Exceptions/SubdivisionCode/NlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NoSubdivisionCodeException.php index 348d5ff7..c35ff4f6 100644 --- a/library/Exceptions/SubdivisionCode/NoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NpSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NpSubdivisionCodeException.php index 87df7a45..acbe9228 100644 --- a/library/Exceptions/SubdivisionCode/NpSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NpSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NrSubdivisionCodeException.php index e7beea16..20398d0d 100644 --- a/library/Exceptions/SubdivisionCode/NrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NuSubdivisionCodeException.php index f3dfe1ca..bc6041af 100644 --- a/library/Exceptions/SubdivisionCode/NuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/NzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/NzSubdivisionCodeException.php index d2efc66f..fdf90ab8 100644 --- a/library/Exceptions/SubdivisionCode/NzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/NzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/OmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/OmSubdivisionCodeException.php index 95582588..70828bc5 100644 --- a/library/Exceptions/SubdivisionCode/OmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/OmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PaSubdivisionCodeException.php index fc7e9568..f57db09e 100644 --- a/library/Exceptions/SubdivisionCode/PaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PeSubdivisionCodeException.php index bf878bfb..7da9dfce 100644 --- a/library/Exceptions/SubdivisionCode/PeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PfSubdivisionCodeException.php index b2cf036c..aee94010 100644 --- a/library/Exceptions/SubdivisionCode/PfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PgSubdivisionCodeException.php index 76881a35..50c1986e 100644 --- a/library/Exceptions/SubdivisionCode/PgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PhSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PhSubdivisionCodeException.php index 2b9c6e8f..c4e51bb2 100644 --- a/library/Exceptions/SubdivisionCode/PhSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PhSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PkSubdivisionCodeException.php index 2c90a49b..935031e3 100644 --- a/library/Exceptions/SubdivisionCode/PkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PlSubdivisionCodeException.php index 32e20334..3a054702 100644 --- a/library/Exceptions/SubdivisionCode/PlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PmSubdivisionCodeException.php index f0d2f1a0..2dd14934 100644 --- a/library/Exceptions/SubdivisionCode/PmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PnSubdivisionCodeException.php index 6f015f72..a3112193 100644 --- a/library/Exceptions/SubdivisionCode/PnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PrSubdivisionCodeException.php index 453cb5b6..b43ae834 100644 --- a/library/Exceptions/SubdivisionCode/PrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PsSubdivisionCodeException.php index 49504cea..12353a90 100644 --- a/library/Exceptions/SubdivisionCode/PsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PtSubdivisionCodeException.php index e1e84cb9..f8cca9f5 100644 --- a/library/Exceptions/SubdivisionCode/PtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PwSubdivisionCodeException.php index 060542d1..ef7eff42 100644 --- a/library/Exceptions/SubdivisionCode/PwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/PySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/PySubdivisionCodeException.php index 3309c1c5..541336e3 100644 --- a/library/Exceptions/SubdivisionCode/PySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/PySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/QaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/QaSubdivisionCodeException.php index 3d99d18d..c7de8c1c 100644 --- a/library/Exceptions/SubdivisionCode/QaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/QaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ReSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ReSubdivisionCodeException.php index ffaa2888..22053ee0 100644 --- a/library/Exceptions/SubdivisionCode/ReSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ReSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/RoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/RoSubdivisionCodeException.php index 27a808db..40fa2765 100644 --- a/library/Exceptions/SubdivisionCode/RoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/RoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/RsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/RsSubdivisionCodeException.php index 1d6e2edd..e4c5b19b 100644 --- a/library/Exceptions/SubdivisionCode/RsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/RsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/RuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/RuSubdivisionCodeException.php index 98012603..f6bd8828 100644 --- a/library/Exceptions/SubdivisionCode/RuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/RuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/RwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/RwSubdivisionCodeException.php index 927efa24..0eba3c4b 100644 --- a/library/Exceptions/SubdivisionCode/RwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/RwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SaSubdivisionCodeException.php index 26135275..89fdb90f 100644 --- a/library/Exceptions/SubdivisionCode/SaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SbSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SbSubdivisionCodeException.php index 89f01f09..e2cdcda9 100644 --- a/library/Exceptions/SubdivisionCode/SbSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SbSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ScSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ScSubdivisionCodeException.php index c616e7a0..329faccd 100644 --- a/library/Exceptions/SubdivisionCode/ScSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ScSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SdSubdivisionCodeException.php index 74a78f69..d40f1c5c 100644 --- a/library/Exceptions/SubdivisionCode/SdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SeSubdivisionCodeException.php index cc247f5d..0493a23d 100644 --- a/library/Exceptions/SubdivisionCode/SeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SgSubdivisionCodeException.php index b73b5cd0..9776a43e 100644 --- a/library/Exceptions/SubdivisionCode/SgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ShSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ShSubdivisionCodeException.php index 84a031b9..98804ba3 100644 --- a/library/Exceptions/SubdivisionCode/ShSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ShSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SiSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SiSubdivisionCodeException.php index 9369b234..5695dd32 100644 --- a/library/Exceptions/SubdivisionCode/SiSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SiSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SjSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SjSubdivisionCodeException.php index b782c8fb..ff4af904 100644 --- a/library/Exceptions/SubdivisionCode/SjSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SjSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SkSubdivisionCodeException.php index aa7f1bdb..f17209ed 100644 --- a/library/Exceptions/SubdivisionCode/SkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SlSubdivisionCodeException.php index 2279d3a0..b6a17e86 100644 --- a/library/Exceptions/SubdivisionCode/SlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SmSubdivisionCodeException.php index ac781665..467160ab 100644 --- a/library/Exceptions/SubdivisionCode/SmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SnSubdivisionCodeException.php index 99f6d9f6..fa8fd0b5 100644 --- a/library/Exceptions/SubdivisionCode/SnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SoSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SoSubdivisionCodeException.php index 0c9f955c..715759ec 100644 --- a/library/Exceptions/SubdivisionCode/SoSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SoSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SrSubdivisionCodeException.php index e3de12fc..a1566fdf 100644 --- a/library/Exceptions/SubdivisionCode/SrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SsSubdivisionCodeException.php index ca6d34dc..dc31f220 100644 --- a/library/Exceptions/SubdivisionCode/SsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/StSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/StSubdivisionCodeException.php index 2e8c30b0..0d8ccfed 100644 --- a/library/Exceptions/SubdivisionCode/StSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/StSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SvSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SvSubdivisionCodeException.php index c38aa515..7ffe301c 100644 --- a/library/Exceptions/SubdivisionCode/SvSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SvSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SxSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SxSubdivisionCodeException.php index 02c14ed5..3b96bbc6 100644 --- a/library/Exceptions/SubdivisionCode/SxSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SxSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SySubdivisionCodeException.php index 3e0bd22d..c3805d36 100644 --- a/library/Exceptions/SubdivisionCode/SySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/SzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/SzSubdivisionCodeException.php index 805af1fb..dcf77473 100644 --- a/library/Exceptions/SubdivisionCode/SzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/SzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TcSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TcSubdivisionCodeException.php index 1fec56df..edd9fb55 100644 --- a/library/Exceptions/SubdivisionCode/TcSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TcSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TdSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TdSubdivisionCodeException.php index a3851dfc..77e8b7ba 100644 --- a/library/Exceptions/SubdivisionCode/TdSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TdSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TfSubdivisionCodeException.php index 03c4c940..e82bff13 100644 --- a/library/Exceptions/SubdivisionCode/TfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TgSubdivisionCodeException.php index 52d1b9b3..27658e0d 100644 --- a/library/Exceptions/SubdivisionCode/TgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ThSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ThSubdivisionCodeException.php index 5569bd7d..609a5ef3 100644 --- a/library/Exceptions/SubdivisionCode/ThSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ThSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TjSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TjSubdivisionCodeException.php index 6e2a2828..04e3869c 100644 --- a/library/Exceptions/SubdivisionCode/TjSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TjSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TkSubdivisionCodeException.php index 92e04cdf..eb1e95cd 100644 --- a/library/Exceptions/SubdivisionCode/TkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TlSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TlSubdivisionCodeException.php index 42900e75..a9cdabfd 100644 --- a/library/Exceptions/SubdivisionCode/TlSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TlSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TmSubdivisionCodeException.php index 7103929a..1e3c0bbb 100644 --- a/library/Exceptions/SubdivisionCode/TmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TnSubdivisionCodeException.php index f6104f34..515c398d 100644 --- a/library/Exceptions/SubdivisionCode/TnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ToSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ToSubdivisionCodeException.php index b9e21725..164ee8e5 100644 --- a/library/Exceptions/SubdivisionCode/ToSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ToSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TrSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TrSubdivisionCodeException.php index df1475c7..455513d4 100644 --- a/library/Exceptions/SubdivisionCode/TrSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TrSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TtSubdivisionCodeException.php index 369eede3..ebb8e518 100644 --- a/library/Exceptions/SubdivisionCode/TtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TvSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TvSubdivisionCodeException.php index a9cdccf7..8df624e0 100644 --- a/library/Exceptions/SubdivisionCode/TvSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TvSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TwSubdivisionCodeException.php index d0bca773..391c95dc 100644 --- a/library/Exceptions/SubdivisionCode/TwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/TzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/TzSubdivisionCodeException.php index 503ce5fb..0b31b777 100644 --- a/library/Exceptions/SubdivisionCode/TzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/TzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/UaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/UaSubdivisionCodeException.php index 2bfb562b..187fab48 100644 --- a/library/Exceptions/SubdivisionCode/UaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/UaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/UgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/UgSubdivisionCodeException.php index 11cfe253..65b90877 100644 --- a/library/Exceptions/SubdivisionCode/UgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/UgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/UmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/UmSubdivisionCodeException.php index d9a044b6..b85a0999 100644 --- a/library/Exceptions/SubdivisionCode/UmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/UmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/UsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/UsSubdivisionCodeException.php index 4bde83e5..99e2185d 100644 --- a/library/Exceptions/SubdivisionCode/UsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/UsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/UySubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/UySubdivisionCodeException.php index 77f4b6a2..2053a76d 100644 --- a/library/Exceptions/SubdivisionCode/UySubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/UySubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/UzSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/UzSubdivisionCodeException.php index 40fa852d..0c8b4025 100644 --- a/library/Exceptions/SubdivisionCode/UzSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/UzSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/VaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/VaSubdivisionCodeException.php index 6c3e5f85..6c0af6c3 100644 --- a/library/Exceptions/SubdivisionCode/VaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/VaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/VcSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/VcSubdivisionCodeException.php index e31582a7..0fd93303 100644 --- a/library/Exceptions/SubdivisionCode/VcSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/VcSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/VeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/VeSubdivisionCodeException.php index d907712a..3aa9528a 100644 --- a/library/Exceptions/SubdivisionCode/VeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/VeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/VgSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/VgSubdivisionCodeException.php index ef5b9c7d..6fd49488 100644 --- a/library/Exceptions/SubdivisionCode/VgSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/VgSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ViSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ViSubdivisionCodeException.php index f6e9464e..48b60a06 100644 --- a/library/Exceptions/SubdivisionCode/ViSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ViSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/VnSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/VnSubdivisionCodeException.php index 3562311e..1b1bb6c1 100644 --- a/library/Exceptions/SubdivisionCode/VnSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/VnSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/VuSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/VuSubdivisionCodeException.php index bb7e6382..47514d2a 100644 --- a/library/Exceptions/SubdivisionCode/VuSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/VuSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/WfSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/WfSubdivisionCodeException.php index 27ae0498..c49648b9 100644 --- a/library/Exceptions/SubdivisionCode/WfSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/WfSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/WsSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/WsSubdivisionCodeException.php index a6baa11a..fda3ca89 100644 --- a/library/Exceptions/SubdivisionCode/WsSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/WsSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/XkSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/XkSubdivisionCodeException.php index 4e99d595..be08e8cf 100644 --- a/library/Exceptions/SubdivisionCode/XkSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/XkSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/YeSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/YeSubdivisionCodeException.php index bcc53447..54837c89 100644 --- a/library/Exceptions/SubdivisionCode/YeSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/YeSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/YtSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/YtSubdivisionCodeException.php index c97cc01b..8e36e45e 100644 --- a/library/Exceptions/SubdivisionCode/YtSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/YtSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ZaSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ZaSubdivisionCodeException.php index 5ac6b32e..c5e4e497 100644 --- a/library/Exceptions/SubdivisionCode/ZaSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ZaSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ZmSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ZmSubdivisionCodeException.php index 56a16e3e..864055a8 100644 --- a/library/Exceptions/SubdivisionCode/ZmSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ZmSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCode/ZwSubdivisionCodeException.php b/library/Exceptions/SubdivisionCode/ZwSubdivisionCodeException.php index d8ce6c94..63855b8d 100644 --- a/library/Exceptions/SubdivisionCode/ZwSubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCode/ZwSubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions\SubdivisionCode; use Respect\Validation\Exceptions\SubdivisionCodeException; diff --git a/library/Exceptions/SubdivisionCodeException.php b/library/Exceptions/SubdivisionCodeException.php index e78a9b81..fe9ae085 100644 --- a/library/Exceptions/SubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCodeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class SubdivisionCodeException extends ValidationException diff --git a/library/Exceptions/SymbolicLinkException.php b/library/Exceptions/SymbolicLinkException.php index 6b92db13..d15a88e6 100644 --- a/library/Exceptions/SymbolicLinkException.php +++ b/library/Exceptions/SymbolicLinkException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class SymbolicLinkException extends ValidationException diff --git a/library/Exceptions/TldException.php b/library/Exceptions/TldException.php index 6d525cd6..3d52f87b 100644 --- a/library/Exceptions/TldException.php +++ b/library/Exceptions/TldException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class TldException extends ValidationException diff --git a/library/Exceptions/TrueValException.php b/library/Exceptions/TrueValException.php index c4bd88f1..d247dcd9 100644 --- a/library/Exceptions/TrueValException.php +++ b/library/Exceptions/TrueValException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class TrueValException extends ValidationException diff --git a/library/Exceptions/TypeException.php b/library/Exceptions/TypeException.php index 2023faf3..cf422411 100644 --- a/library/Exceptions/TypeException.php +++ b/library/Exceptions/TypeException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class TypeException extends ValidationException diff --git a/library/Exceptions/UniqueException.php b/library/Exceptions/UniqueException.php index 87fc5c8c..291c8cca 100644 --- a/library/Exceptions/UniqueException.php +++ b/library/Exceptions/UniqueException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class UniqueException extends ValidationException diff --git a/library/Exceptions/UploadedException.php b/library/Exceptions/UploadedException.php index 37b1483c..687b4d5c 100644 --- a/library/Exceptions/UploadedException.php +++ b/library/Exceptions/UploadedException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class UploadedException extends ValidationException diff --git a/library/Exceptions/UppercaseException.php b/library/Exceptions/UppercaseException.php index 67d3753a..b1bcddda 100644 --- a/library/Exceptions/UppercaseException.php +++ b/library/Exceptions/UppercaseException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class UppercaseException extends ValidationException diff --git a/library/Exceptions/UrlException.php b/library/Exceptions/UrlException.php index b6dca86c..871c01f6 100644 --- a/library/Exceptions/UrlException.php +++ b/library/Exceptions/UrlException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class UrlException extends ValidationException diff --git a/library/Exceptions/UuidException.php b/library/Exceptions/UuidException.php index 76df04a8..f9911b02 100644 --- a/library/Exceptions/UuidException.php +++ b/library/Exceptions/UuidException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class UuidException extends ValidationException diff --git a/library/Exceptions/ValidationException.php b/library/Exceptions/ValidationException.php index e6744084..7ecc7653 100644 --- a/library/Exceptions/ValidationException.php +++ b/library/Exceptions/ValidationException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; use DateTime; @@ -315,7 +317,7 @@ class ValidationException extends InvalidArgumentException implements ExceptionI return $this; } - private function buildMessage() + private function buildMessage(): void { $this->message = $this->getMainMessage(); } @@ -329,7 +331,7 @@ class ValidationException extends InvalidArgumentException implements ExceptionI public function guessId() { - if (!empty($this->id) && $this->id != 'validation') { + if (!empty($this->id) && 'validation' != $this->id) { return $this->id; } diff --git a/library/Exceptions/VatinException.php b/library/Exceptions/VatinException.php index 56a916a2..0b907993 100644 --- a/library/Exceptions/VatinException.php +++ b/library/Exceptions/VatinException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; final class VatinException extends ValidationException diff --git a/library/Exceptions/VersionException.php b/library/Exceptions/VersionException.php index ae1f4a3f..deba6b98 100644 --- a/library/Exceptions/VersionException.php +++ b/library/Exceptions/VersionException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class VersionException extends ValidationException diff --git a/library/Exceptions/VideoUrlException.php b/library/Exceptions/VideoUrlException.php index 3486bc96..c2bef43b 100644 --- a/library/Exceptions/VideoUrlException.php +++ b/library/Exceptions/VideoUrlException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class VideoUrlException extends ValidationException diff --git a/library/Exceptions/VowelException.php b/library/Exceptions/VowelException.php index 5e8428f9..54256127 100644 --- a/library/Exceptions/VowelException.php +++ b/library/Exceptions/VowelException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class VowelException extends AlphaException diff --git a/library/Exceptions/WhenException.php b/library/Exceptions/WhenException.php index 68137c72..6e987d0a 100644 --- a/library/Exceptions/WhenException.php +++ b/library/Exceptions/WhenException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class WhenException extends ValidationException diff --git a/library/Exceptions/WritableException.php b/library/Exceptions/WritableException.php index 3e90531b..d26b6478 100644 --- a/library/Exceptions/WritableException.php +++ b/library/Exceptions/WritableException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class WritableException extends ValidationException diff --git a/library/Exceptions/XdigitException.php b/library/Exceptions/XdigitException.php index d240f9ee..33c92190 100644 --- a/library/Exceptions/XdigitException.php +++ b/library/Exceptions/XdigitException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class XdigitException extends AlphaException diff --git a/library/Exceptions/YesException.php b/library/Exceptions/YesException.php index 1dc6c1fd..03356f88 100644 --- a/library/Exceptions/YesException.php +++ b/library/Exceptions/YesException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class YesException extends ValidationException diff --git a/library/Exceptions/ZendException.php b/library/Exceptions/ZendException.php index 3fcffcac..6d422b8c 100644 --- a/library/Exceptions/ZendException.php +++ b/library/Exceptions/ZendException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; class ZendException extends NestedValidationException diff --git a/library/Factory.php b/library/Factory.php index 354acb73..e73b85b9 100644 --- a/library/Factory.php +++ b/library/Factory.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation; use ReflectionClass; @@ -31,12 +33,12 @@ class Factory return $rulePrefix.$namespaceSeparator; } - public function appendRulePrefix($rulePrefix) + public function appendRulePrefix($rulePrefix): void { array_push($this->rulePrefixes, $this->filterRulePrefix($rulePrefix)); } - public function prependRulePrefix($rulePrefix) + public function prependRulePrefix($rulePrefix): void { array_unshift($this->rulePrefixes, $this->filterRulePrefix($rulePrefix)); } diff --git a/library/Rules/AbstractComposite.php b/library/Rules/AbstractComposite.php index ada77523..85c46605 100644 --- a/library/Rules/AbstractComposite.php +++ b/library/Rules/AbstractComposite.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; @@ -50,7 +52,7 @@ abstract class AbstractComposite extends AbstractRule return $this; } - public function removeRules() + public function removeRules(): void { $this->rules = []; } @@ -98,7 +100,7 @@ abstract class AbstractComposite extends AbstractRule return false; } - protected function appendRule(Validatable $validator) + protected function appendRule(Validatable $validator): void { if (!$validator->getName() && $this->getName()) { $validator->setName($this->getName()); diff --git a/library/Rules/AbstractCtypeRule.php b/library/Rules/AbstractCtypeRule.php index 9ef3fd5a..0cc745f7 100644 --- a/library/Rules/AbstractCtypeRule.php +++ b/library/Rules/AbstractCtypeRule.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; abstract class AbstractCtypeRule extends AbstractFilterRule diff --git a/library/Rules/AbstractFilterRule.php b/library/Rules/AbstractFilterRule.php index 3a5c21d4..9c9c6ff5 100644 --- a/library/Rules/AbstractFilterRule.php +++ b/library/Rules/AbstractFilterRule.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -46,6 +48,6 @@ abstract class AbstractFilterRule extends AbstractRule $cleanInput = $this->filter($stringInput); - return $cleanInput === '' || $this->validateClean($cleanInput); + return '' === $cleanInput || $this->validateClean($cleanInput); } } diff --git a/library/Rules/AbstractInterval.php b/library/Rules/AbstractInterval.php index c6c7e07c..48cc814b 100644 --- a/library/Rules/AbstractInterval.php +++ b/library/Rules/AbstractInterval.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTimeImmutable; @@ -31,7 +33,7 @@ abstract class AbstractInterval extends AbstractRule return $value; } - if (mb_strlen($value) == 1) { + if (1 == mb_strlen($value)) { return $value; } diff --git a/library/Rules/AbstractRegexRule.php b/library/Rules/AbstractRegexRule.php index 31e4e4c8..b44422ce 100644 --- a/library/Rules/AbstractRegexRule.php +++ b/library/Rules/AbstractRegexRule.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; abstract class AbstractRegexRule extends AbstractFilterRule diff --git a/library/Rules/AbstractRelated.php b/library/Rules/AbstractRelated.php index 4cebb77f..d335fb9c 100644 --- a/library/Rules/AbstractRelated.php +++ b/library/Rules/AbstractRelated.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; diff --git a/library/Rules/AbstractRule.php b/library/Rules/AbstractRule.php index 5e8b3463..b8dbcb3e 100644 --- a/library/Rules/AbstractRule.php +++ b/library/Rules/AbstractRule.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; diff --git a/library/Rules/AbstractSearcher.php b/library/Rules/AbstractSearcher.php index 4fa4a017..f1892198 100644 --- a/library/Rules/AbstractSearcher.php +++ b/library/Rules/AbstractSearcher.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; abstract class AbstractSearcher extends AbstractRule @@ -22,11 +24,13 @@ abstract class AbstractSearcher extends AbstractRule return in_array($input, $this->haystack); } - if ($input === null || $input === '') { + if (null === $input || '' === $input) { return $input == $this->haystack; } - return false !== mb_stripos($this->haystack, $input, 0, mb_detect_encoding($input)); + $inputString = (string) $input; + + return false !== mb_stripos($this->haystack, $inputString, 0, mb_detect_encoding($inputString)); } protected function validateIdentical($input) @@ -35,11 +39,13 @@ abstract class AbstractSearcher extends AbstractRule return in_array($input, $this->haystack, true); } - if ($input === null || $input === '') { + if (null === $input || '' === $input) { return $input === $this->haystack; } - return false !== mb_strpos($this->haystack, $input, 0, mb_detect_encoding($input)); + $inputString = (string) $input; + + return false !== mb_strpos($this->haystack, $inputString, 0, mb_detect_encoding($inputString)); } public function validate($input) diff --git a/library/Rules/AbstractWrapper.php b/library/Rules/AbstractWrapper.php index 1ca0110b..35cf5ea5 100644 --- a/library/Rules/AbstractWrapper.php +++ b/library/Rules/AbstractWrapper.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/Age.php b/library/Rules/Age.php index 4d286886..bbfb2793 100644 --- a/library/Rules/Age.php +++ b/library/Rules/Age.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTime as DateTimeMutable; @@ -40,7 +42,7 @@ class Age extends AllOf return new DateTimeMutable($interval); } - private function setMaxAge($maxAge) + private function setMaxAge($maxAge): void { $this->maxAge = $maxAge; @@ -56,7 +58,7 @@ class Age extends AllOf $this->addRule($minRule); } - private function setMinAge($minAge) + private function setMinAge($minAge): void { $this->minAge = $minAge; diff --git a/library/Rules/AllOf.php b/library/Rules/AllOf.php index 30d5656c..e255d72d 100644 --- a/library/Rules/AllOf.php +++ b/library/Rules/AllOf.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class AllOf extends AbstractComposite diff --git a/library/Rules/Alnum.php b/library/Rules/Alnum.php index 22a8e589..cc6bfd79 100644 --- a/library/Rules/Alnum.php +++ b/library/Rules/Alnum.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Alnum extends AbstractCtypeRule diff --git a/library/Rules/Alpha.php b/library/Rules/Alpha.php index 105ae721..daa113fb 100644 --- a/library/Rules/Alpha.php +++ b/library/Rules/Alpha.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Alpha extends AbstractCtypeRule diff --git a/library/Rules/AlwaysInvalid.php b/library/Rules/AlwaysInvalid.php index 6e6ad885..4ed645b9 100644 --- a/library/Rules/AlwaysInvalid.php +++ b/library/Rules/AlwaysInvalid.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class AlwaysInvalid extends AbstractRule diff --git a/library/Rules/AlwaysValid.php b/library/Rules/AlwaysValid.php index bf33806b..fa9889c9 100644 --- a/library/Rules/AlwaysValid.php +++ b/library/Rules/AlwaysValid.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class AlwaysValid extends AbstractRule diff --git a/library/Rules/AnyOf.php b/library/Rules/AnyOf.php index a20ca422..927a8674 100644 --- a/library/Rules/AnyOf.php +++ b/library/Rules/AnyOf.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; diff --git a/library/Rules/ArrayType.php b/library/Rules/ArrayType.php index 6afbd1ba..92ecf443 100644 --- a/library/Rules/ArrayType.php +++ b/library/Rules/ArrayType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class ArrayType extends AbstractRule diff --git a/library/Rules/ArrayVal.php b/library/Rules/ArrayVal.php index 142fedf8..56ff5bf1 100644 --- a/library/Rules/ArrayVal.php +++ b/library/Rules/ArrayVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use ArrayAccess; diff --git a/library/Rules/Attribute.php b/library/Rules/Attribute.php index b066461b..2d0be054 100644 --- a/library/Rules/Attribute.php +++ b/library/Rules/Attribute.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use ReflectionProperty; diff --git a/library/Rules/Base.php b/library/Rules/Base.php index 21f79757..d67824ab 100644 --- a/library/Rules/Base.php +++ b/library/Rules/Base.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\BaseException; diff --git a/library/Rules/Base64.php b/library/Rules/Base64.php index ec7cf893..72791123 100644 --- a/library/Rules/Base64.php +++ b/library/Rules/Base64.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Base64 extends AbstractRule @@ -23,6 +25,6 @@ class Base64 extends AbstractRule return false; } - return strlen($input) % 4 === 0; + return 0 === mb_strlen($input) % 4; } } diff --git a/library/Rules/Between.php b/library/Rules/Between.php index 0d92adb1..d833af97 100644 --- a/library/Rules/Between.php +++ b/library/Rules/Between.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/BoolType.php b/library/Rules/BoolType.php index 3005bd51..3aa803ca 100644 --- a/library/Rules/BoolType.php +++ b/library/Rules/BoolType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class BoolType extends AbstractRule diff --git a/library/Rules/BoolVal.php b/library/Rules/BoolVal.php index 234b88ac..f47379bb 100644 --- a/library/Rules/BoolVal.php +++ b/library/Rules/BoolVal.php @@ -1,4 +1,5 @@ containsValue = $containsValue; + $this->containsValue = (string) $containsValue; $this->identical = $identical; } @@ -37,7 +39,9 @@ class Contains extends AbstractRule return in_array($this->containsValue, $input); } - return false !== mb_stripos($input, $this->containsValue, 0, mb_detect_encoding($input)); + $inputString = (string) $input; + + return false !== mb_stripos($inputString, $this->containsValue, 0, mb_detect_encoding($inputString)); } protected function validateIdentical($input) @@ -46,6 +50,8 @@ class Contains extends AbstractRule return in_array($this->containsValue, $input, true); } - return false !== mb_strpos($input, $this->containsValue, 0, mb_detect_encoding($input)); + $inputString = (string) $input; + + return false !== mb_strpos($inputString, $this->containsValue, 0, mb_detect_encoding($inputString)); } } diff --git a/library/Rules/Countable.php b/library/Rules/Countable.php index a6514c54..219c2f9a 100644 --- a/library/Rules/Countable.php +++ b/library/Rules/Countable.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Countable extends AbstractRule diff --git a/library/Rules/CountryCode.php b/library/Rules/CountryCode.php index a4edd986..6d8a5b74 100644 --- a/library/Rules/CountryCode.php +++ b/library/Rules/CountryCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -23,7 +25,7 @@ class CountryCode extends AbstractRule const NUMERIC = 'numeric'; /** - * @link http://download.geonames.org/export/dump/countryInfo.txt + * @see http://download.geonames.org/export/dump/countryInfo.txt * * @var array */ @@ -280,7 +282,6 @@ class CountryCode extends AbstractRule ['ZA', 'ZAF', '710'], // South Africa ['ZM', 'ZMB', '894'], // Zambia ['ZW', 'ZWE', '716'], // Zimbabwe - ]; public $set; diff --git a/library/Rules/Cpf.php b/library/Rules/Cpf.php index ad3d2f19..0a31a3e4 100644 --- a/library/Rules/Cpf.php +++ b/library/Rules/Cpf.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Cpf extends AbstractRule @@ -18,7 +20,7 @@ class Cpf extends AbstractRule // Code ported from jsfromhell.com $c = preg_replace('/\D/', '', $input); - if (mb_strlen($c) != 11 || preg_match("/^{$c[0]}{11}$/", $c)) { + if (11 != mb_strlen($c) || preg_match("/^{$c[0]}{11}$/", $c)) { return false; } diff --git a/library/Rules/CreditCard.php b/library/Rules/CreditCard.php index deb64a1d..6cd28bfc 100644 --- a/library/Rules/CreditCard.php +++ b/library/Rules/CreditCard.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/CurrencyCode.php b/library/Rules/CurrencyCode.php index d92239e8..2948fd7c 100644 --- a/library/Rules/CurrencyCode.php +++ b/library/Rules/CurrencyCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -17,7 +19,7 @@ namespace Respect\Validation\Rules; class CurrencyCode extends AbstractRule { /** - * @link http://www.currency-iso.org/en/home/tables/table-a1.html + * @see http://www.currency-iso.org/en/home/tables/table-a1.html * * @var array */ diff --git a/library/Rules/DateTime.php b/library/Rules/DateTime.php index 8509e85c..20098fac 100644 --- a/library/Rules/DateTime.php +++ b/library/Rules/DateTime.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTimeInterface; @@ -49,6 +51,6 @@ class DateTime extends AbstractRule $info = date_parse_from_format($this->format, $inputString); - return $info['error_count'] === 0 && $info['warning_count'] === 0; + return 0 === $info['error_count'] && 0 === $info['warning_count']; } } diff --git a/library/Rules/Digit.php b/library/Rules/Digit.php index 4d21f8e0..0021291c 100644 --- a/library/Rules/Digit.php +++ b/library/Rules/Digit.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Digit extends AbstractCtypeRule diff --git a/library/Rules/Directory.php b/library/Rules/Directory.php index e190c803..a4559dae 100644 --- a/library/Rules/Directory.php +++ b/library/Rules/Directory.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Directory extends AbstractRule diff --git a/library/Rules/Domain.php b/library/Rules/Domain.php index c4603c9c..23bffd10 100644 --- a/library/Rules/Domain.php +++ b/library/Rules/Domain.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; @@ -31,7 +33,7 @@ class Domain extends AbstractComposite new AnyOf( new Not(new Contains('--')), new Callback(function ($str) { - return substr_count($str, '--') == 1; + return 1 == mb_substr_count($str, '--'); }) ), new Not(new EndsWith('-')) @@ -40,7 +42,7 @@ class Domain extends AbstractComposite public function tldCheck($do = true) { - if ($do === true) { + if (true === $do) { $this->tld = new Tld(); } else { $this->tld = new AllOf( @@ -63,7 +65,7 @@ class Domain extends AbstractComposite } } - if (count($parts = explode('.', $input)) < 2 + if (count($parts = explode('.', (string) $input)) < 2 || !$this->tld->validate(array_pop($parts))) { return false; } @@ -84,7 +86,7 @@ class Domain extends AbstractComposite $this->collectAssertException($e, $chk, $input); } - if (count($parts = explode('.', $input)) >= 2) { + if (count($parts = explode('.', (string) $input)) >= 2) { $this->collectAssertException($e, $this->tld, array_pop($parts)); } @@ -99,7 +101,7 @@ class Domain extends AbstractComposite return true; } - protected function collectAssertException(&$exceptions, $validator, $input) + protected function collectAssertException(&$exceptions, $validator, $input): void { try { $validator->assert($input); diff --git a/library/Rules/Each.php b/library/Rules/Each.php index dc24b31f..bfb15c46 100644 --- a/library/Rules/Each.php +++ b/library/Rules/Each.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; diff --git a/library/Rules/Email.php b/library/Rules/Email.php index 0c0e8700..761434ca 100644 --- a/library/Rules/Email.php +++ b/library/Rules/Email.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Egulias\EmailValidator\EmailValidator; diff --git a/library/Rules/EndsWith.php b/library/Rules/EndsWith.php index bae67562..7a1acba2 100644 --- a/library/Rules/EndsWith.php +++ b/library/Rules/EndsWith.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class EndsWith extends AbstractRule diff --git a/library/Rules/Equals.php b/library/Rules/Equals.php index 9676a9f7..84b7081d 100644 --- a/library/Rules/Equals.php +++ b/library/Rules/Equals.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Equals extends AbstractRule diff --git a/library/Rules/Even.php b/library/Rules/Even.php index 6ea51dad..a9e0265a 100644 --- a/library/Rules/Even.php +++ b/library/Rules/Even.php @@ -9,12 +9,14 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Even extends AbstractRule { public function validate($input) { - return (int) $input % 2 === 0; + return 0 === (int) $input % 2; } } diff --git a/library/Rules/Executable.php b/library/Rules/Executable.php index 29f1af16..5bd36699 100644 --- a/library/Rules/Executable.php +++ b/library/Rules/Executable.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Executable extends AbstractRule diff --git a/library/Rules/Exists.php b/library/Rules/Exists.php index 54b4103a..3e6790e4 100644 --- a/library/Rules/Exists.php +++ b/library/Rules/Exists.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Exists extends AbstractRule diff --git a/library/Rules/Extension.php b/library/Rules/Extension.php index 6d416f97..e316c9cc 100644 --- a/library/Rules/Extension.php +++ b/library/Rules/Extension.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use SplFileInfo; diff --git a/library/Rules/Factor.php b/library/Rules/Factor.php index 1641e053..1b8b2d07 100644 --- a/library/Rules/Factor.php +++ b/library/Rules/Factor.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -35,12 +37,12 @@ class Factor extends AbstractRule { // Every integer is a factor of zero, and zero is the only integer that // has zero for a factor. - if ($this->dividend === 0) { + if (0 === $this->dividend) { return true; } // Factors must be integers that are not zero. - if (!is_numeric($input) || (int) $input != $input || $input == 0) { + if (!is_numeric($input) || (int) $input != $input || 0 == $input) { return false; } diff --git a/library/Rules/FalseVal.php b/library/Rules/FalseVal.php index 684e14b2..af589adb 100644 --- a/library/Rules/FalseVal.php +++ b/library/Rules/FalseVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class FalseVal extends AbstractRule diff --git a/library/Rules/Fibonacci.php b/library/Rules/Fibonacci.php index af13b203..ac1969d4 100644 --- a/library/Rules/Fibonacci.php +++ b/library/Rules/Fibonacci.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/library/Rules/File.php b/library/Rules/File.php index 4ef5dac4..ee44394a 100644 --- a/library/Rules/File.php +++ b/library/Rules/File.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class File extends AbstractRule diff --git a/library/Rules/FilterVar.php b/library/Rules/FilterVar.php index 7122afb1..17a9496e 100644 --- a/library/Rules/FilterVar.php +++ b/library/Rules/FilterVar.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/Finite.php b/library/Rules/Finite.php index ed311088..291308d8 100644 --- a/library/Rules/Finite.php +++ b/library/Rules/Finite.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -21,6 +23,6 @@ class Finite extends AbstractRule */ public function validate($input) { - return is_numeric($input) && is_finite($input); + return is_numeric($input) && is_finite((float) $input); } } diff --git a/library/Rules/FloatType.php b/library/Rules/FloatType.php index 69c20146..ac2b5f6f 100644 --- a/library/Rules/FloatType.php +++ b/library/Rules/FloatType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class FloatType extends AbstractRule diff --git a/library/Rules/FloatVal.php b/library/Rules/FloatVal.php index 25b08ce7..bb4bb25b 100644 --- a/library/Rules/FloatVal.php +++ b/library/Rules/FloatVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class FloatVal extends AbstractRule diff --git a/library/Rules/Graph.php b/library/Rules/Graph.php index 19759808..8b58b2b1 100644 --- a/library/Rules/Graph.php +++ b/library/Rules/Graph.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Graph extends AbstractCtypeRule diff --git a/library/Rules/HexRgbColor.php b/library/Rules/HexRgbColor.php index 658181d2..fe640ea3 100644 --- a/library/Rules/HexRgbColor.php +++ b/library/Rules/HexRgbColor.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class HexRgbColor extends Xdigit @@ -24,7 +26,7 @@ class HexRgbColor extends Xdigit } $length = mb_strlen($input); - if ($length != 3 && $length != 6) { + if (3 != $length && 6 != $length) { return false; } diff --git a/library/Rules/Identical.php b/library/Rules/Identical.php index 32efaba0..72486ab9 100644 --- a/library/Rules/Identical.php +++ b/library/Rules/Identical.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Identical extends AbstractRule diff --git a/library/Rules/IdentityCard.php b/library/Rules/IdentityCard.php index 2ebabda7..2b36bbb6 100644 --- a/library/Rules/IdentityCard.php +++ b/library/Rules/IdentityCard.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/Image.php b/library/Rules/Image.php index 36ce7327..507c11d2 100644 --- a/library/Rules/Image.php +++ b/library/Rules/Image.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use finfo; diff --git a/library/Rules/Imei.php b/library/Rules/Imei.php index 02fba495..893ccf5e 100644 --- a/library/Rules/Imei.php +++ b/library/Rules/Imei.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Imei extends AbstractRule @@ -29,7 +31,7 @@ class Imei extends AbstractRule } $numbers = preg_replace('/\D/', '', $input); - if (mb_strlen($numbers) != self::IMEI_SIZE) { + if (self::IMEI_SIZE != mb_strlen($numbers)) { return false; } diff --git a/library/Rules/In.php b/library/Rules/In.php index 5bb7c9ec..2c7f6cf4 100644 --- a/library/Rules/In.php +++ b/library/Rules/In.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class In extends AbstractSearcher diff --git a/library/Rules/Infinite.php b/library/Rules/Infinite.php index 51ee5b0e..c20fa944 100644 --- a/library/Rules/Infinite.php +++ b/library/Rules/Infinite.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -21,6 +23,6 @@ class Infinite extends AbstractRule */ public function validate($input) { - return is_numeric($input) && is_infinite($input); + return is_numeric($input) && is_infinite((float) $input); } } diff --git a/library/Rules/Instance.php b/library/Rules/Instance.php index 3eacc712..ab10bdee 100644 --- a/library/Rules/Instance.php +++ b/library/Rules/Instance.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Instance extends AbstractRule diff --git a/library/Rules/IntType.php b/library/Rules/IntType.php index 3c8c42d8..41759f39 100644 --- a/library/Rules/IntType.php +++ b/library/Rules/IntType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class IntType extends AbstractRule diff --git a/library/Rules/IntVal.php b/library/Rules/IntVal.php index 9da26c1b..ec94c6ec 100644 --- a/library/Rules/IntVal.php +++ b/library/Rules/IntVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class IntVal extends AbstractRule diff --git a/library/Rules/Ip.php b/library/Rules/Ip.php index e43c41f8..384147df 100644 --- a/library/Rules/Ip.php +++ b/library/Rules/Ip.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -32,18 +34,18 @@ class Ip extends AbstractRule protected function parseRange($input) { - if ($input === null || $input == '*' || $input == '*.*.*.*' - || $input == '0.0.0.0-255.255.255.255') { + if (null === $input || '*' == $input || '*.*.*.*' == $input + || '0.0.0.0-255.255.255.255' == $input) { return; } $range = ['min' => null, 'max' => null, 'mask' => null]; - if (mb_strpos($input, '-') !== false) { + if (false !== mb_strpos($input, '-')) { list($range['min'], $range['max']) = explode('-', $input); - } elseif (mb_strpos($input, '*') !== false) { + } elseif (false !== mb_strpos($input, '*')) { $this->parseRangeUsingWildcards($input, $range); - } elseif (mb_strpos($input, '/') !== false) { + } elseif (false !== mb_strpos($input, '/')) { $this->parseRangeUsingCidr($input, $range); } else { throw new ComponentException('Invalid network range'); @@ -60,14 +62,14 @@ class Ip extends AbstractRule return $range; } - protected function fillAddress(&$input, $char = '*') + protected function fillAddress(&$input, $char = '*'): void { while (mb_substr_count($input, '.') < 3) { $input .= '.'.$char; } } - protected function parseRangeUsingWildcards($input, &$range) + protected function parseRangeUsingWildcards($input, &$range): void { $this->fillAddress($input); @@ -75,13 +77,13 @@ class Ip extends AbstractRule $range['max'] = str_replace('*', '255', $input); } - protected function parseRangeUsingCidr($input, &$range) + protected function parseRangeUsingCidr($input, &$range): void { $input = explode('/', $input); $this->fillAddress($input[0], '0'); $range['min'] = $input[0]; - $isAddressMask = mb_strpos($input[1], '.') !== false; + $isAddressMask = false !== mb_strpos($input[1], '.'); if ($isAddressMask && $this->verifyAddress($input[1])) { $range['mask'] = sprintf('%032b', ip2long($input[1])); @@ -93,7 +95,7 @@ class Ip extends AbstractRule throw new ComponentException('Invalid network mask'); } - $range['mask'] = sprintf('%032b', ip2long(long2ip(~(pow(2, (32 - $input[1])) - 1)))); + $range['mask'] = sprintf('%032b', ip2long(long2ip(~(2 ** (32 - $input[1]) - 1)))); } public function validate($input) @@ -114,7 +116,7 @@ class Ip extends AbstractRule protected function verifyNetwork($input) { - if ($this->networkRange === null) { + if (null === $this->networkRange) { return true; } diff --git a/library/Rules/IterableType.php b/library/Rules/IterableType.php index d6a7f4db..2e50f046 100644 --- a/library/Rules/IterableType.php +++ b/library/Rules/IterableType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class IterableType extends AbstractRule diff --git a/library/Rules/Json.php b/library/Rules/Json.php index b31fb1b9..5cf4b393 100644 --- a/library/Rules/Json.php +++ b/library/Rules/Json.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Json extends AbstractRule @@ -21,6 +23,6 @@ class Json extends AbstractRule json_decode($input); - return json_last_error() === JSON_ERROR_NONE; + return JSON_ERROR_NONE === json_last_error(); } } diff --git a/library/Rules/Key.php b/library/Rules/Key.php index 91e3633e..c20fcbf3 100644 --- a/library/Rules/Key.php +++ b/library/Rules/Key.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/KeyNested.php b/library/Rules/KeyNested.php index c2c07a47..5129909f 100644 --- a/library/Rules/KeyNested.php +++ b/library/Rules/KeyNested.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use ArrayAccess; @@ -29,7 +31,7 @@ class KeyNested extends AbstractRelated private function getReferencePieces() { - return explode('.', rtrim($this->reference, '.')); + return explode('.', rtrim((string) $this->reference, '.')); } private function getValueFromArray($array, $key) diff --git a/library/Rules/KeySet.php b/library/Rules/KeySet.php index a3fc1a26..4932ae79 100644 --- a/library/Rules/KeySet.php +++ b/library/Rules/KeySet.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -30,7 +32,7 @@ class KeySet extends AllOf private function filterAllOf(AllOf $rule) { $rules = $rule->getRules(); - if (count($rules) != 1) { + if (1 != count($rules)) { throw new ComponentException('AllOf rule must have only one Key rule'); } @@ -99,13 +101,13 @@ class KeySet extends AllOf unset($input[$keyRule->reference]); } - return count($input) == 0; + return 0 == count($input); } /** * @throws KeySetException */ - private function checkKeys($input) + private function checkKeys($input): void { if (!$this->hasValidStructure($input)) { $params = ['keys' => $this->getKeys()]; diff --git a/library/Rules/KeyValue.php b/library/Rules/KeyValue.php index a1509183..51c4445d 100644 --- a/library/Rules/KeyValue.php +++ b/library/Rules/KeyValue.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/LanguageCode.php b/library/Rules/LanguageCode.php index 5220bf69..19c7acf1 100644 --- a/library/Rules/LanguageCode.php +++ b/library/Rules/LanguageCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -22,7 +24,7 @@ class LanguageCode extends AbstractRule const ALPHA3 = 'alpha-3'; /** - * @link http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt + * @see http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt * * @var array */ diff --git a/library/Rules/LeapDate.php b/library/Rules/LeapDate.php index eaf0452c..ff95c31a 100644 --- a/library/Rules/LeapDate.php +++ b/library/Rules/LeapDate.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTimeImmutable; @@ -34,6 +36,6 @@ class LeapDate extends AbstractRule } // Dates that aren't leap will aways be rounded - return $date->format('m-d') == '02-29'; + return '02-29' == $date->format('m-d'); } } diff --git a/library/Rules/LeapYear.php b/library/Rules/LeapYear.php index 7bb40356..d0a91461 100644 --- a/library/Rules/LeapYear.php +++ b/library/Rules/LeapYear.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTimeInterface; @@ -20,7 +22,7 @@ class LeapYear extends AbstractRule if (is_numeric($year)) { $year = (int) $year; } elseif (is_string($year)) { - $year = (int) date('Y', strtotime($year)); + $year = (int) date('Y', (int) strtotime($year)); } elseif ($year instanceof DateTimeInterface) { $year = (int) $year->format('Y'); } else { @@ -29,6 +31,6 @@ class LeapYear extends AbstractRule $date = strtotime(sprintf('%d-02-29', $year)); - return (bool) date('L', $date); + return (bool) date('L', (int) $date); } } diff --git a/library/Rules/Length.php b/library/Rules/Length.php index 340f71c1..2283f4c5 100644 --- a/library/Rules/Length.php +++ b/library/Rules/Length.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/Locale/PlIdentityCard.php b/library/Rules/Locale/PlIdentityCard.php index 83d5a0d1..ed17bbd1 100644 --- a/library/Rules/Locale/PlIdentityCard.php +++ b/library/Rules/Locale/PlIdentityCard.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\Locale; use Respect\Validation\Rules\AbstractRule; @@ -16,7 +18,7 @@ use Respect\Validation\Rules\AbstractRule; /** * Validator for Polish identity card. * - * @link https://en.wikipedia.org/wiki/Polish_identity_card + * @see https://en.wikipedia.org/wiki/Polish_identity_card */ class PlIdentityCard extends AbstractRule { diff --git a/library/Rules/Locale/PlVatin.php b/library/Rules/Locale/PlVatin.php index 526d766d..78696f25 100644 --- a/library/Rules/Locale/PlVatin.php +++ b/library/Rules/Locale/PlVatin.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\Locale; use Respect\Validation\Rules\AbstractRule; @@ -16,7 +18,7 @@ use Respect\Validation\Rules\AbstractRule; /** * Validator for Polish VAT identification number (NIP). * - * @link https://en.wikipedia.org/wiki/VAT_identification_number + * @see https://en.wikipedia.org/wiki/VAT_identification_number */ final class PlVatin extends AbstractRule { diff --git a/library/Rules/Lowercase.php b/library/Rules/Lowercase.php index 3c676d43..ad110d77 100644 --- a/library/Rules/Lowercase.php +++ b/library/Rules/Lowercase.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Lowercase extends AbstractRule diff --git a/library/Rules/Luhn.php b/library/Rules/Luhn.php index bd7d4c93..2ac9dc40 100644 --- a/library/Rules/Luhn.php +++ b/library/Rules/Luhn.php @@ -9,10 +9,12 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** - * @link https://en.wikipedia.org/wiki/Luhn_algorithm + * @see https://en.wikipedia.org/wiki/Luhn_algorithm */ class Luhn extends AbstractRule { @@ -31,10 +33,10 @@ class Luhn extends AbstractRule private function isValid($input): bool { $sum = 0; - $numDigits = strlen($input); + $numDigits = mb_strlen($input); $parity = $numDigits % 2; for ($i = 0; $i < $numDigits; ++$i) { - $digit = substr($input, $i, 1); + $digit = mb_substr($input, $i, 1); if ($parity == ($i % 2)) { $digit <<= 1; if (9 < $digit) { diff --git a/library/Rules/MacAddress.php b/library/Rules/MacAddress.php index 012fdc5a..c6a10094 100644 --- a/library/Rules/MacAddress.php +++ b/library/Rules/MacAddress.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class MacAddress extends AbstractRule diff --git a/library/Rules/Max.php b/library/Rules/Max.php index 2bad5800..628ef9a8 100644 --- a/library/Rules/Max.php +++ b/library/Rules/Max.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Max extends AbstractInterval diff --git a/library/Rules/Mimetype.php b/library/Rules/Mimetype.php index b8cf1f40..20bcd53c 100644 --- a/library/Rules/Mimetype.php +++ b/library/Rules/Mimetype.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use finfo; diff --git a/library/Rules/Min.php b/library/Rules/Min.php index 994e813b..81cf11ab 100644 --- a/library/Rules/Min.php +++ b/library/Rules/Min.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Min extends AbstractInterval diff --git a/library/Rules/MinimumAge.php b/library/Rules/MinimumAge.php index f7ff71fa..cca3891c 100644 --- a/library/Rules/MinimumAge.php +++ b/library/Rules/MinimumAge.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTimeImmutable; @@ -42,7 +44,7 @@ class MinimumAge extends AbstractRule return false; } - $age = ((date('Ymd') - date('Ymd', strtotime($input))) / 10000); + $age = ((date('Ymd') - date('Ymd', (int) strtotime($input))) / 10000); return $age >= $this->age; } diff --git a/library/Rules/Multiple.php b/library/Rules/Multiple.php index dfa23965..9bee9934 100644 --- a/library/Rules/Multiple.php +++ b/library/Rules/Multiple.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Multiple extends AbstractRule @@ -22,10 +24,10 @@ class Multiple extends AbstractRule public function validate($input) { - if ($this->multipleOf == 0) { - return $input == 0; + if (0 == $this->multipleOf) { + return 0 == $input; } - return $input % $this->multipleOf == 0; + return 0 == $input % $this->multipleOf; } } diff --git a/library/Rules/Negative.php b/library/Rules/Negative.php index 433f5741..884d343b 100644 --- a/library/Rules/Negative.php +++ b/library/Rules/Negative.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Negative extends AbstractRule diff --git a/library/Rules/NfeAccessKey.php b/library/Rules/NfeAccessKey.php index 48a13fe4..b586dcdd 100644 --- a/library/Rules/NfeAccessKey.php +++ b/library/Rules/NfeAccessKey.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -28,24 +30,24 @@ class NfeAccessKey extends AbstractRule */ public function validate($aK) { - if (mb_strlen($aK) !== 44) { + if (44 !== mb_strlen($aK)) { return false; } $w = []; for ($i = 0, $z = 5, $m = 43; $i <= $m; ++$i) { - $z = ($i < $m) ? ($z - 1) == 1 ? 9 : ($z - 1) : 0; + $z = ($i < $m) ? 1 == ($z - 1) ? 9 : ($z - 1) : 0; $w[] = $z; } for ($i = 0, $s = 0, $k = 44; $i < $k; ++$i) { - $s += $aK{ $i } - * $w[ $i ]; + $s += $aK[$i] + * $w[$i]; } $s -= (11 * floor($s / 11)); - $v = ($s == 0 || $s == 1) ? 0 : (11 - $s); + $v = (0 == $s || 1 == $s) ? 0 : (11 - $s); - return $v == $aK{ 43 }; + return $v == $aK[43]; } } diff --git a/library/Rules/Nif.php b/library/Rules/Nif.php index 007876e5..b06d2c7a 100644 --- a/library/Rules/Nif.php +++ b/library/Rules/Nif.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -60,11 +62,11 @@ final class Nif extends AbstractRule */ private function validateNie($prefix, $number, $control) { - if ($prefix === 'Y') { + if ('Y' === $prefix) { return $this->validateDni('1'.$number, $control); } - if ($prefix === 'Z') { + if ('Z' === $prefix) { return $this->validateDni('2'.$number, $control); } @@ -75,23 +77,23 @@ final class Nif extends AbstractRule * @param int $number * @param string $control */ - private function validateCif($number, $control) + private function validateCif(string $number, $control) { $code = 0; $position = 1; foreach (str_split($number) as $digit) { $increaser = $digit; - if ($position % 2 !== 0) { - $increaser = array_sum(str_split($digit * 2)); + if (0 !== $position % 2) { + $increaser = array_sum(str_split((string) ($digit * 2))); } $code += $increaser; ++$position; } - $digits = str_split($code); + $digits = str_split((string) $code); $lastDigit = (int) array_pop($digits); - $key = $lastDigit === 0 ? 0 : (10 - $lastDigit); + $key = 0 === $lastDigit ? 0 : (10 - $lastDigit); if (is_numeric($control)) { return (int) $key === (int) $control; diff --git a/library/Rules/No.php b/library/Rules/No.php index 88c99a07..51820ec6 100644 --- a/library/Rules/No.php +++ b/library/Rules/No.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class No extends Regex diff --git a/library/Rules/NoWhitespace.php b/library/Rules/NoWhitespace.php index bdf9e44e..91795894 100644 --- a/library/Rules/NoWhitespace.php +++ b/library/Rules/NoWhitespace.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class NoWhitespace extends AbstractRule @@ -23,6 +25,6 @@ class NoWhitespace extends AbstractRule return false; } - return !preg_match('#\s#', $input); + return !preg_match('#\s#', (string) $input); } } diff --git a/library/Rules/NoneOf.php b/library/Rules/NoneOf.php index 06faac96..97bc4ff1 100644 --- a/library/Rules/NoneOf.php +++ b/library/Rules/NoneOf.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class NoneOf extends AbstractComposite diff --git a/library/Rules/Not.php b/library/Rules/Not.php index 42d0966f..eaf59c7a 100644 --- a/library/Rules/Not.php +++ b/library/Rules/Not.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; diff --git a/library/Rules/NotBlank.php b/library/Rules/NotBlank.php index 54602628..54ab06fa 100644 --- a/library/Rules/NotBlank.php +++ b/library/Rules/NotBlank.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use stdClass; @@ -18,7 +20,7 @@ class NotBlank extends AbstractRule public function validate($input) { if (is_numeric($input)) { - return $input != 0; + return 0 != $input; } if (is_string($input)) { diff --git a/library/Rules/NotEmpty.php b/library/Rules/NotEmpty.php index fe7a93a9..02eeb13a 100644 --- a/library/Rules/NotEmpty.php +++ b/library/Rules/NotEmpty.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class NotEmpty extends AbstractRule diff --git a/library/Rules/NotOptional.php b/library/Rules/NotOptional.php index 6296707d..431238c9 100644 --- a/library/Rules/NotOptional.php +++ b/library/Rules/NotOptional.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class NotOptional extends AbstractRule diff --git a/library/Rules/NullType.php b/library/Rules/NullType.php index c323cd40..5d796c1b 100644 --- a/library/Rules/NullType.php +++ b/library/Rules/NullType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class NullType extends NotEmpty diff --git a/library/Rules/Number.php b/library/Rules/Number.php index e7b3e842..367de932 100644 --- a/library/Rules/Number.php +++ b/library/Rules/Number.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Number extends AbstractRule @@ -19,6 +21,6 @@ class Number extends AbstractRule return false; } - return !is_nan($input); + return !is_nan((float) $input); } } diff --git a/library/Rules/NumericVal.php b/library/Rules/NumericVal.php index ad2684b8..80c5a04c 100644 --- a/library/Rules/NumericVal.php +++ b/library/Rules/NumericVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class NumericVal extends AbstractRule diff --git a/library/Rules/ObjectType.php b/library/Rules/ObjectType.php index 8105f04a..cae3913b 100644 --- a/library/Rules/ObjectType.php +++ b/library/Rules/ObjectType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class ObjectType extends AbstractRule diff --git a/library/Rules/Odd.php b/library/Rules/Odd.php index de26870a..74131a68 100644 --- a/library/Rules/Odd.php +++ b/library/Rules/Odd.php @@ -9,12 +9,14 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Odd extends AbstractRule { public function validate($input) { - return (int) $input % 2 !== 0; + return 0 !== (int) $input % 2; } } diff --git a/library/Rules/OneOf.php b/library/Rules/OneOf.php index b93ef650..06d06bd8 100644 --- a/library/Rules/OneOf.php +++ b/library/Rules/OneOf.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ValidationException; @@ -43,7 +45,7 @@ class OneOf extends AbstractComposite ++$rulesPassedCount; } - return $rulesPassedCount === 1; + return 1 === $rulesPassedCount; } public function check($input) @@ -60,7 +62,7 @@ class OneOf extends AbstractComposite } } - if ($rulesPassedCount === 1) { + if (1 === $rulesPassedCount) { return true; } diff --git a/library/Rules/Optional.php b/library/Rules/Optional.php index 1fd5592f..253e4961 100644 --- a/library/Rules/Optional.php +++ b/library/Rules/Optional.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Validatable; diff --git a/library/Rules/PerfectSquare.php b/library/Rules/PerfectSquare.php index cf216c0c..f3ab70dc 100644 --- a/library/Rules/PerfectSquare.php +++ b/library/Rules/PerfectSquare.php @@ -9,12 +9,14 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class PerfectSquare extends AbstractRule { public function validate($input) { - return is_numeric($input) && floor(sqrt($input)) == sqrt($input); + return is_numeric($input) && floor(sqrt((float) $input)) == sqrt((float) $input); } } diff --git a/library/Rules/Pesel.php b/library/Rules/Pesel.php index d8cda0fe..ff76f1c7 100644 --- a/library/Rules/Pesel.php +++ b/library/Rules/Pesel.php @@ -9,13 +9,15 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Pesel extends AbstractRule { public function validate($input) { - if (!preg_match('/^\d{11}$/', $input)) { + if (!preg_match('/^\d{11}$/', (string) $input)) { return false; } diff --git a/library/Rules/Phone.php b/library/Rules/Phone.php index 658970f6..dcbdf7c6 100644 --- a/library/Rules/Phone.php +++ b/library/Rules/Phone.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Phone extends AbstractRegexRule diff --git a/library/Rules/PhpLabel.php b/library/Rules/PhpLabel.php index 298af8e2..8f1f482f 100644 --- a/library/Rules/PhpLabel.php +++ b/library/Rules/PhpLabel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class PhpLabel extends AbstractRule diff --git a/library/Rules/Pis.php b/library/Rules/Pis.php index 7f70e96b..84361052 100644 --- a/library/Rules/Pis.php +++ b/library/Rules/Pis.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -29,7 +31,7 @@ class Pis extends AbstractRule } $digits = preg_replace('/\D/', '', $input); - if (mb_strlen($digits) != 11 || preg_match("/^{$digits[0]}{11}$/", $digits)) { + if (11 != mb_strlen($digits) || preg_match("/^{$digits[0]}{11}$/", $digits)) { return false; } diff --git a/library/Rules/Positive.php b/library/Rules/Positive.php index c192af9e..80b61a5b 100644 --- a/library/Rules/Positive.php +++ b/library/Rules/Positive.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Positive extends AbstractRule diff --git a/library/Rules/PostalCode.php b/library/Rules/PostalCode.php index 03f1dc1c..2311b335 100644 --- a/library/Rules/PostalCode.php +++ b/library/Rules/PostalCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -18,7 +20,7 @@ class PostalCode extends Regex const DEFAULT_PATTERN = '/^$/'; /** - * @link http://download.geonames.org/export/dump/countryInfo.txt + * @see http://download.geonames.org/export/dump/countryInfo.txt */ public $postalCodes = [ 'AD' => "/^(?:AD)*(\d{3})$/", diff --git a/library/Rules/PrimeNumber.php b/library/Rules/PrimeNumber.php index d5c7e8e7..8848350c 100644 --- a/library/Rules/PrimeNumber.php +++ b/library/Rules/PrimeNumber.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class PrimeNumber extends AbstractRule @@ -19,12 +21,12 @@ class PrimeNumber extends AbstractRule return false; } - if ($input != 2 && ($input % 2) == 0) { + if (2 != $input && 0 == ($input % 2)) { return false; } - for ($i = 3; $i <= ceil(sqrt($input)); $i += 2) { - if (($input % $i) == 0) { + for ($i = 3; $i <= ceil(sqrt((float) $input)); $i += 2) { + if (0 == ($input % $i)) { return false; } } diff --git a/library/Rules/Prnt.php b/library/Rules/Prnt.php index 333f791c..2d8ef19d 100644 --- a/library/Rules/Prnt.php +++ b/library/Rules/Prnt.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Prnt extends AbstractCtypeRule diff --git a/library/Rules/Punct.php b/library/Rules/Punct.php index 4e0649c4..cca01de1 100644 --- a/library/Rules/Punct.php +++ b/library/Rules/Punct.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Punct extends AbstractCtypeRule diff --git a/library/Rules/Readable.php b/library/Rules/Readable.php index 4f04dfcf..f2bdc448 100644 --- a/library/Rules/Readable.php +++ b/library/Rules/Readable.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Readable extends AbstractRule diff --git a/library/Rules/Regex.php b/library/Rules/Regex.php index 1752dea3..c7fc5b5d 100644 --- a/library/Rules/Regex.php +++ b/library/Rules/Regex.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Regex extends AbstractRule @@ -26,6 +28,6 @@ class Regex extends AbstractRule return false; } - return (bool) preg_match($this->regex, $input); + return (bool) preg_match($this->regex, (string) $input); } } diff --git a/library/Rules/ResourceType.php b/library/Rules/ResourceType.php index e0c2d1e4..f5f4a355 100644 --- a/library/Rules/ResourceType.php +++ b/library/Rules/ResourceType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/library/Rules/Roman.php b/library/Rules/Roman.php index cd43415d..a9b97456 100644 --- a/library/Rules/Roman.php +++ b/library/Rules/Roman.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Roman extends Regex diff --git a/library/Rules/ScalarVal.php b/library/Rules/ScalarVal.php index 59ed7e12..a50cea1c 100644 --- a/library/Rules/ScalarVal.php +++ b/library/Rules/ScalarVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/library/Rules/Sf.php b/library/Rules/Sf.php index b186d678..0dc0db4a 100644 --- a/library/Rules/Sf.php +++ b/library/Rules/Sf.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use ReflectionClass; @@ -56,7 +58,7 @@ class Sf extends AbstractRule public function assert($input) { $violations = $this->returnViolationsForConstraint($input, $this->constraint); - if (count($violations) == 0) { + if (0 == count($violations)) { return true; } diff --git a/library/Rules/Size.php b/library/Rules/Size.php index 04eb1845..ea1c9a90 100644 --- a/library/Rules/Size.php +++ b/library/Rules/Size.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -65,10 +67,10 @@ class Size extends AbstractRule $value = $size; $units = ['b', 'kb', 'mb', 'gb', 'tb', 'pb', 'eb', 'zb', 'yb']; foreach ($units as $exponent => $unit) { - if (!preg_match("/^(\d+(.\d+)?){$unit}$/i", $size, $matches)) { + if (!preg_match("/^(\d+(.\d+)?){$unit}$/i", (string) $size, $matches)) { continue; } - $value = $matches[1] * pow(1024, $exponent); + $value = $matches[1] * 1024 ** $exponent; break; } diff --git a/library/Rules/Slug.php b/library/Rules/Slug.php index a5400665..b55041ee 100644 --- a/library/Rules/Slug.php +++ b/library/Rules/Slug.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Slug extends AbstractRule diff --git a/library/Rules/Sorted.php b/library/Rules/Sorted.php index 83a99018..cce75d4a 100644 --- a/library/Rules/Sorted.php +++ b/library/Rules/Sorted.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Sorted extends AbstractRule @@ -18,7 +20,7 @@ class Sorted extends AbstractRule public function __construct(callable $fn = null, bool $ascending = true) { - $this->fn = $fn ?? function ($x) { return $x;}; + $this->fn = $fn ?? function ($x) { return $x; }; $this->ascending = $ascending; } diff --git a/library/Rules/Space.php b/library/Rules/Space.php index 47d34d29..bacafaa6 100644 --- a/library/Rules/Space.php +++ b/library/Rules/Space.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Space extends AbstractCtypeRule diff --git a/library/Rules/StartsWith.php b/library/Rules/StartsWith.php index 96e7d7be..503f94f5 100644 --- a/library/Rules/StartsWith.php +++ b/library/Rules/StartsWith.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class StartsWith extends AbstractRule diff --git a/library/Rules/StringType.php b/library/Rules/StringType.php index 420e0a04..5dd5c8cd 100644 --- a/library/Rules/StringType.php +++ b/library/Rules/StringType.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class StringType extends AbstractRule diff --git a/library/Rules/StringVal.php b/library/Rules/StringVal.php index d64602fc..f2d7662d 100644 --- a/library/Rules/StringVal.php +++ b/library/Rules/StringVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class StringVal extends AbstractRule diff --git a/library/Rules/SubdivisionCode.php b/library/Rules/SubdivisionCode.php index 0e9cf2bb..23a9512d 100644 --- a/library/Rules/SubdivisionCode.php +++ b/library/Rules/SubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -16,8 +18,8 @@ use Respect\Validation\Exceptions\ComponentException; /** * Validates country subdivision codes according to ISO 3166-2. * - * @link http://en.wikipedia.org/wiki/ISO_3166-2 - * @link http://www.geonames.org/countries/ + * @see http://en.wikipedia.org/wiki/ISO_3166-2 + * @see http://www.geonames.org/countries/ */ class SubdivisionCode extends AbstractWrapper { diff --git a/library/Rules/SubdivisionCode/AdSubdivisionCode.php b/library/Rules/SubdivisionCode/AdSubdivisionCode.php index 1b836dad..05fae5d7 100644 --- a/library/Rules/SubdivisionCode/AdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AD * - * @link http://www.geonames.org/AD/administrative-division-andorra.html + * @see http://www.geonames.org/AD/administrative-division-andorra.html */ class AdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AeSubdivisionCode.php b/library/Rules/SubdivisionCode/AeSubdivisionCode.php index 3a42ea17..a2d724e3 100644 --- a/library/Rules/SubdivisionCode/AeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AE * - * @link http://www.geonames.org/AE/administrative-division-united-arab-emirates.html + * @see http://www.geonames.org/AE/administrative-division-united-arab-emirates.html */ class AeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AfSubdivisionCode.php b/library/Rules/SubdivisionCode/AfSubdivisionCode.php index 61e7a9eb..57b87a4c 100644 --- a/library/Rules/SubdivisionCode/AfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AF * - * @link http://www.geonames.org/AF/administrative-division-afghanistan.html + * @see http://www.geonames.org/AF/administrative-division-afghanistan.html */ class AfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AgSubdivisionCode.php b/library/Rules/SubdivisionCode/AgSubdivisionCode.php index 73d379d9..c167a79c 100644 --- a/library/Rules/SubdivisionCode/AgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AG * - * @link http://www.geonames.org/AG/administrative-division-antigua-and-barbuda.html + * @see http://www.geonames.org/AG/administrative-division-antigua-and-barbuda.html */ class AgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AiSubdivisionCode.php b/library/Rules/SubdivisionCode/AiSubdivisionCode.php index e2b23128..701c74e8 100644 --- a/library/Rules/SubdivisionCode/AiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AI * - * @link http://www.geonames.org/AI/administrative-division-anguilla.html + * @see http://www.geonames.org/AI/administrative-division-anguilla.html */ class AiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AlSubdivisionCode.php b/library/Rules/SubdivisionCode/AlSubdivisionCode.php index 97ac19fe..21f46945 100644 --- a/library/Rules/SubdivisionCode/AlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AL * - * @link http://www.geonames.org/AL/administrative-division-albania.html + * @see http://www.geonames.org/AL/administrative-division-albania.html */ class AlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AmSubdivisionCode.php b/library/Rules/SubdivisionCode/AmSubdivisionCode.php index c8132c35..e24ee8f7 100644 --- a/library/Rules/SubdivisionCode/AmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AM * - * @link http://www.geonames.org/AM/administrative-division-armenia.html + * @see http://www.geonames.org/AM/administrative-division-armenia.html */ class AmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AnSubdivisionCode.php b/library/Rules/SubdivisionCode/AnSubdivisionCode.php index cc755ec4..654cd83b 100644 --- a/library/Rules/SubdivisionCode/AnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AN * - * @link http://www.geonames.org/AN/administrative-division-netherlands-antilles.html + * @see http://www.geonames.org/AN/administrative-division-netherlands-antilles.html */ class AnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AoSubdivisionCode.php b/library/Rules/SubdivisionCode/AoSubdivisionCode.php index 5d589303..327775bf 100644 --- a/library/Rules/SubdivisionCode/AoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AO * - * @link http://www.geonames.org/AO/administrative-division-angola.html + * @see http://www.geonames.org/AO/administrative-division-angola.html */ class AoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AqSubdivisionCode.php b/library/Rules/SubdivisionCode/AqSubdivisionCode.php index 2fe6a6db..18adc83b 100644 --- a/library/Rules/SubdivisionCode/AqSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AqSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AQ * - * @link http://www.geonames.org/AQ/administrative-division-antarctica.html + * @see http://www.geonames.org/AQ/administrative-division-antarctica.html */ class AqSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ArSubdivisionCode.php b/library/Rules/SubdivisionCode/ArSubdivisionCode.php index 204ce8af..8fbd4fd6 100644 --- a/library/Rules/SubdivisionCode/ArSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ArSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AR * - * @link http://www.geonames.org/AR/administrative-division-argentina.html + * @see http://www.geonames.org/AR/administrative-division-argentina.html */ class ArSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AsSubdivisionCode.php b/library/Rules/SubdivisionCode/AsSubdivisionCode.php index a8dd9c85..81683f1e 100644 --- a/library/Rules/SubdivisionCode/AsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AS * - * @link http://www.geonames.org/AS/administrative-division-american-samoa.html + * @see http://www.geonames.org/AS/administrative-division-american-samoa.html */ class AsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AtSubdivisionCode.php b/library/Rules/SubdivisionCode/AtSubdivisionCode.php index 77e64b27..a3d88c0e 100644 --- a/library/Rules/SubdivisionCode/AtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AT * - * @link http://www.geonames.org/AT/administrative-division-austria.html + * @see http://www.geonames.org/AT/administrative-division-austria.html */ class AtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AuSubdivisionCode.php b/library/Rules/SubdivisionCode/AuSubdivisionCode.php index db52e371..94da6b5b 100644 --- a/library/Rules/SubdivisionCode/AuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AU * - * @link http://www.geonames.org/AU/administrative-division-australia.html + * @see http://www.geonames.org/AU/administrative-division-australia.html */ class AuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AwSubdivisionCode.php b/library/Rules/SubdivisionCode/AwSubdivisionCode.php index 575424de..3bded132 100644 --- a/library/Rules/SubdivisionCode/AwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AW * - * @link http://www.geonames.org/AW/administrative-division-aruba.html + * @see http://www.geonames.org/AW/administrative-division-aruba.html */ class AwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AxSubdivisionCode.php b/library/Rules/SubdivisionCode/AxSubdivisionCode.php index 0041a6c2..473b6c6e 100644 --- a/library/Rules/SubdivisionCode/AxSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AxSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AX * - * @link http://www.geonames.org/AX/administrative-division-aland.html + * @see http://www.geonames.org/AX/administrative-division-aland.html */ class AxSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/AzSubdivisionCode.php b/library/Rules/SubdivisionCode/AzSubdivisionCode.php index 94d08f0d..717577ca 100644 --- a/library/Rules/SubdivisionCode/AzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/AzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: AZ * - * @link http://www.geonames.org/AZ/administrative-division-azerbaijan.html + * @see http://www.geonames.org/AZ/administrative-division-azerbaijan.html */ class AzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BaSubdivisionCode.php b/library/Rules/SubdivisionCode/BaSubdivisionCode.php index 558164ec..26e862a9 100644 --- a/library/Rules/SubdivisionCode/BaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BA * - * @link http://www.geonames.org/BA/administrative-division-bosnia-and-herzegovina.html + * @see http://www.geonames.org/BA/administrative-division-bosnia-and-herzegovina.html */ class BaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BbSubdivisionCode.php b/library/Rules/SubdivisionCode/BbSubdivisionCode.php index 2ab08369..777d273c 100644 --- a/library/Rules/SubdivisionCode/BbSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BbSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BB * - * @link http://www.geonames.org/BB/administrative-division-barbados.html + * @see http://www.geonames.org/BB/administrative-division-barbados.html */ class BbSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BdSubdivisionCode.php b/library/Rules/SubdivisionCode/BdSubdivisionCode.php index 750753e4..e2fd7df7 100644 --- a/library/Rules/SubdivisionCode/BdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BD * - * @link http://www.geonames.org/BD/administrative-division-bangladesh.html + * @see http://www.geonames.org/BD/administrative-division-bangladesh.html */ class BdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BeSubdivisionCode.php b/library/Rules/SubdivisionCode/BeSubdivisionCode.php index 44d0c7ef..2f54e4ca 100644 --- a/library/Rules/SubdivisionCode/BeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BE * - * @link http://www.geonames.org/BE/administrative-division-belgium.html + * @see http://www.geonames.org/BE/administrative-division-belgium.html */ class BeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BfSubdivisionCode.php b/library/Rules/SubdivisionCode/BfSubdivisionCode.php index a0a99e8a..0bde38ab 100644 --- a/library/Rules/SubdivisionCode/BfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BF * - * @link http://www.geonames.org/BF/administrative-division-burkina-faso.html + * @see http://www.geonames.org/BF/administrative-division-burkina-faso.html */ class BfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BgSubdivisionCode.php b/library/Rules/SubdivisionCode/BgSubdivisionCode.php index c484a23d..9eca398b 100644 --- a/library/Rules/SubdivisionCode/BgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BG * - * @link http://www.geonames.org/BG/administrative-division-bulgaria.html + * @see http://www.geonames.org/BG/administrative-division-bulgaria.html */ class BgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BhSubdivisionCode.php b/library/Rules/SubdivisionCode/BhSubdivisionCode.php index 20246a81..5e39650e 100644 --- a/library/Rules/SubdivisionCode/BhSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BhSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BH * - * @link http://www.geonames.org/BH/administrative-division-bahrain.html + * @see http://www.geonames.org/BH/administrative-division-bahrain.html */ class BhSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BiSubdivisionCode.php b/library/Rules/SubdivisionCode/BiSubdivisionCode.php index 3282ac2a..c1f0ac6d 100644 --- a/library/Rules/SubdivisionCode/BiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BI * - * @link http://www.geonames.org/BI/administrative-division-burundi.html + * @see http://www.geonames.org/BI/administrative-division-burundi.html */ class BiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BjSubdivisionCode.php b/library/Rules/SubdivisionCode/BjSubdivisionCode.php index 8a7f4432..1008f6ed 100644 --- a/library/Rules/SubdivisionCode/BjSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BjSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BJ * - * @link http://www.geonames.org/BJ/administrative-division-benin.html + * @see http://www.geonames.org/BJ/administrative-division-benin.html */ class BjSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BlSubdivisionCode.php b/library/Rules/SubdivisionCode/BlSubdivisionCode.php index 17e777d9..fd064682 100644 --- a/library/Rules/SubdivisionCode/BlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BL * - * @link http://www.geonames.org/BL/administrative-division-saint-barthelemy.html + * @see http://www.geonames.org/BL/administrative-division-saint-barthelemy.html */ class BlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BmSubdivisionCode.php b/library/Rules/SubdivisionCode/BmSubdivisionCode.php index 137ff33b..2960c620 100644 --- a/library/Rules/SubdivisionCode/BmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BM * - * @link http://www.geonames.org/BM/administrative-division-bermuda.html + * @see http://www.geonames.org/BM/administrative-division-bermuda.html */ class BmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BnSubdivisionCode.php b/library/Rules/SubdivisionCode/BnSubdivisionCode.php index 776c92ba..ff3ffdd9 100644 --- a/library/Rules/SubdivisionCode/BnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BN * - * @link http://www.geonames.org/BN/administrative-division-brunei.html + * @see http://www.geonames.org/BN/administrative-division-brunei.html */ class BnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BoSubdivisionCode.php b/library/Rules/SubdivisionCode/BoSubdivisionCode.php index ec6764a6..7942e506 100644 --- a/library/Rules/SubdivisionCode/BoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BO * - * @link http://www.geonames.org/BO/administrative-division-bolivia.html + * @see http://www.geonames.org/BO/administrative-division-bolivia.html */ class BoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BqSubdivisionCode.php b/library/Rules/SubdivisionCode/BqSubdivisionCode.php index 96aa5295..3b4d5fdb 100644 --- a/library/Rules/SubdivisionCode/BqSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BqSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BQ * - * @link http://www.geonames.org/BQ/administrative-division-bonaire.html + * @see http://www.geonames.org/BQ/administrative-division-bonaire.html */ class BqSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BrSubdivisionCode.php b/library/Rules/SubdivisionCode/BrSubdivisionCode.php index 6cab6a5c..6ae7146f 100644 --- a/library/Rules/SubdivisionCode/BrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BR * - * @link http://www.geonames.org/BR/administrative-division-brazil.html + * @see http://www.geonames.org/BR/administrative-division-brazil.html */ class BrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BsSubdivisionCode.php b/library/Rules/SubdivisionCode/BsSubdivisionCode.php index d8551d34..26aeb946 100644 --- a/library/Rules/SubdivisionCode/BsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BS * - * @link http://www.geonames.org/BS/administrative-division-bahamas.html + * @see http://www.geonames.org/BS/administrative-division-bahamas.html */ class BsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BtSubdivisionCode.php b/library/Rules/SubdivisionCode/BtSubdivisionCode.php index b32a3f6d..9077a81d 100644 --- a/library/Rules/SubdivisionCode/BtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BT * - * @link http://www.geonames.org/BT/administrative-division-bhutan.html + * @see http://www.geonames.org/BT/administrative-division-bhutan.html */ class BtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BvSubdivisionCode.php b/library/Rules/SubdivisionCode/BvSubdivisionCode.php index 9ef3f1cd..d9e7b0b0 100644 --- a/library/Rules/SubdivisionCode/BvSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BvSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BV * - * @link http://www.geonames.org/BV/administrative-division-bouvet-island.html + * @see http://www.geonames.org/BV/administrative-division-bouvet-island.html */ class BvSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BwSubdivisionCode.php b/library/Rules/SubdivisionCode/BwSubdivisionCode.php index 7dffd731..006300bc 100644 --- a/library/Rules/SubdivisionCode/BwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BW * - * @link http://www.geonames.org/BW/administrative-division-botswana.html + * @see http://www.geonames.org/BW/administrative-division-botswana.html */ class BwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BySubdivisionCode.php b/library/Rules/SubdivisionCode/BySubdivisionCode.php index 042e5372..aad89db3 100644 --- a/library/Rules/SubdivisionCode/BySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BY * - * @link http://www.geonames.org/BY/administrative-division-belarus.html + * @see http://www.geonames.org/BY/administrative-division-belarus.html */ class BySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/BzSubdivisionCode.php b/library/Rules/SubdivisionCode/BzSubdivisionCode.php index 0b982806..9f74c3b4 100644 --- a/library/Rules/SubdivisionCode/BzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/BzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: BZ * - * @link http://www.geonames.org/BZ/administrative-division-belize.html + * @see http://www.geonames.org/BZ/administrative-division-belize.html */ class BzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CaSubdivisionCode.php b/library/Rules/SubdivisionCode/CaSubdivisionCode.php index c6129355..b98b1fcf 100644 --- a/library/Rules/SubdivisionCode/CaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CA * - * @link http://www.geonames.org/CA/administrative-division-canada.html + * @see http://www.geonames.org/CA/administrative-division-canada.html */ class CaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CcSubdivisionCode.php b/library/Rules/SubdivisionCode/CcSubdivisionCode.php index aa6bdcfa..37410783 100644 --- a/library/Rules/SubdivisionCode/CcSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CcSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CC * - * @link http://www.geonames.org/CC/administrative-division-cocos-islands.html + * @see http://www.geonames.org/CC/administrative-division-cocos-islands.html */ class CcSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CdSubdivisionCode.php b/library/Rules/SubdivisionCode/CdSubdivisionCode.php index 5dd9dd8a..dc6a6060 100644 --- a/library/Rules/SubdivisionCode/CdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CD * - * @link http://www.geonames.org/CD/administrative-division-democratic-republic-of-the-congo.html + * @see http://www.geonames.org/CD/administrative-division-democratic-republic-of-the-congo.html */ class CdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CfSubdivisionCode.php b/library/Rules/SubdivisionCode/CfSubdivisionCode.php index caf54eab..6b29c48f 100644 --- a/library/Rules/SubdivisionCode/CfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CF * - * @link http://www.geonames.org/CF/administrative-division-central-african-republic.html + * @see http://www.geonames.org/CF/administrative-division-central-african-republic.html */ class CfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CgSubdivisionCode.php b/library/Rules/SubdivisionCode/CgSubdivisionCode.php index f2793aa5..25288ef4 100644 --- a/library/Rules/SubdivisionCode/CgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CG * - * @link http://www.geonames.org/CG/administrative-division-republic-of-the-congo.html + * @see http://www.geonames.org/CG/administrative-division-republic-of-the-congo.html */ class CgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ChSubdivisionCode.php b/library/Rules/SubdivisionCode/ChSubdivisionCode.php index dac06496..173806e5 100644 --- a/library/Rules/SubdivisionCode/ChSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ChSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CH * - * @link http://www.geonames.org/CH/administrative-division-switzerland.html + * @see http://www.geonames.org/CH/administrative-division-switzerland.html */ class ChSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CiSubdivisionCode.php b/library/Rules/SubdivisionCode/CiSubdivisionCode.php index 5f4db301..50a0badd 100644 --- a/library/Rules/SubdivisionCode/CiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CI * - * @link http://www.geonames.org/CI/administrative-division-ivory-coast.html + * @see http://www.geonames.org/CI/administrative-division-ivory-coast.html */ class CiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CkSubdivisionCode.php b/library/Rules/SubdivisionCode/CkSubdivisionCode.php index aa0d1bfc..ca6d0f37 100644 --- a/library/Rules/SubdivisionCode/CkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CK * - * @link http://www.geonames.org/CK/administrative-division-cook-islands.html + * @see http://www.geonames.org/CK/administrative-division-cook-islands.html */ class CkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ClSubdivisionCode.php b/library/Rules/SubdivisionCode/ClSubdivisionCode.php index b8c85b10..4a0a7615 100644 --- a/library/Rules/SubdivisionCode/ClSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ClSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CL * - * @link http://www.geonames.org/CL/administrative-division-chile.html + * @see http://www.geonames.org/CL/administrative-division-chile.html */ class ClSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CmSubdivisionCode.php b/library/Rules/SubdivisionCode/CmSubdivisionCode.php index b20169a2..9dd513e2 100644 --- a/library/Rules/SubdivisionCode/CmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CM * - * @link http://www.geonames.org/CM/administrative-division-cameroon.html + * @see http://www.geonames.org/CM/administrative-division-cameroon.html */ class CmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CnSubdivisionCode.php b/library/Rules/SubdivisionCode/CnSubdivisionCode.php index 723c4e8c..5c16c474 100644 --- a/library/Rules/SubdivisionCode/CnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CN * - * @link http://www.geonames.org/CN/administrative-division-china.html + * @see http://www.geonames.org/CN/administrative-division-china.html */ class CnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CoSubdivisionCode.php b/library/Rules/SubdivisionCode/CoSubdivisionCode.php index 3577ee4f..fcc7de2e 100644 --- a/library/Rules/SubdivisionCode/CoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CO * - * @link http://www.geonames.org/CO/administrative-division-colombia.html + * @see http://www.geonames.org/CO/administrative-division-colombia.html */ class CoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CrSubdivisionCode.php b/library/Rules/SubdivisionCode/CrSubdivisionCode.php index 0fad16d5..af31215b 100644 --- a/library/Rules/SubdivisionCode/CrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CR * - * @link http://www.geonames.org/CR/administrative-division-costa-rica.html + * @see http://www.geonames.org/CR/administrative-division-costa-rica.html */ class CrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CsSubdivisionCode.php b/library/Rules/SubdivisionCode/CsSubdivisionCode.php index 24d7eaa5..a7579bc1 100644 --- a/library/Rules/SubdivisionCode/CsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CS * - * @link http://www.geonames.org/CS/administrative-division-serbia-and-montenegro.html + * @see http://www.geonames.org/CS/administrative-division-serbia-and-montenegro.html */ class CsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CuSubdivisionCode.php b/library/Rules/SubdivisionCode/CuSubdivisionCode.php index 84ac1a27..ba19a219 100644 --- a/library/Rules/SubdivisionCode/CuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CU * - * @link http://www.geonames.org/CU/administrative-division-cuba.html + * @see http://www.geonames.org/CU/administrative-division-cuba.html */ class CuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CvSubdivisionCode.php b/library/Rules/SubdivisionCode/CvSubdivisionCode.php index e071f03c..a04cd474 100644 --- a/library/Rules/SubdivisionCode/CvSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CvSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CV * - * @link http://www.geonames.org/CV/administrative-division-cape-verde.html + * @see http://www.geonames.org/CV/administrative-division-cape-verde.html */ class CvSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CwSubdivisionCode.php b/library/Rules/SubdivisionCode/CwSubdivisionCode.php index 883a0832..e274e478 100644 --- a/library/Rules/SubdivisionCode/CwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CW * - * @link http://www.geonames.org/CW/administrative-division-curacao.html + * @see http://www.geonames.org/CW/administrative-division-curacao.html */ class CwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CxSubdivisionCode.php b/library/Rules/SubdivisionCode/CxSubdivisionCode.php index d1536e29..58ae6ff2 100644 --- a/library/Rules/SubdivisionCode/CxSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CxSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CX * - * @link http://www.geonames.org/CX/administrative-division-christmas-island.html + * @see http://www.geonames.org/CX/administrative-division-christmas-island.html */ class CxSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CySubdivisionCode.php b/library/Rules/SubdivisionCode/CySubdivisionCode.php index 679a8fac..e1c4112e 100644 --- a/library/Rules/SubdivisionCode/CySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CY * - * @link http://www.geonames.org/CY/administrative-division-cyprus.html + * @see http://www.geonames.org/CY/administrative-division-cyprus.html */ class CySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/CzSubdivisionCode.php b/library/Rules/SubdivisionCode/CzSubdivisionCode.php index b7d9abcb..8ce8050e 100644 --- a/library/Rules/SubdivisionCode/CzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/CzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: CZ * - * @link http://www.geonames.org/CZ/administrative-division-czech-republic.html + * @see http://www.geonames.org/CZ/administrative-division-czech-republic.html */ class CzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/DeSubdivisionCode.php b/library/Rules/SubdivisionCode/DeSubdivisionCode.php index f800ad9e..33e40ccd 100644 --- a/library/Rules/SubdivisionCode/DeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/DeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: DE * - * @link http://www.geonames.org/DE/administrative-division-germany.html + * @see http://www.geonames.org/DE/administrative-division-germany.html */ class DeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/DjSubdivisionCode.php b/library/Rules/SubdivisionCode/DjSubdivisionCode.php index 6d489fd7..ce44e985 100644 --- a/library/Rules/SubdivisionCode/DjSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/DjSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: DJ * - * @link http://www.geonames.org/DJ/administrative-division-djibouti.html + * @see http://www.geonames.org/DJ/administrative-division-djibouti.html */ class DjSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/DkSubdivisionCode.php b/library/Rules/SubdivisionCode/DkSubdivisionCode.php index 0a1fd377..dbfbc392 100644 --- a/library/Rules/SubdivisionCode/DkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/DkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: DK * - * @link http://www.geonames.org/DK/administrative-division-denmark.html + * @see http://www.geonames.org/DK/administrative-division-denmark.html */ class DkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/DmSubdivisionCode.php b/library/Rules/SubdivisionCode/DmSubdivisionCode.php index df4ca22b..e8787f14 100644 --- a/library/Rules/SubdivisionCode/DmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/DmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: DM * - * @link http://www.geonames.org/DM/administrative-division-dominica.html + * @see http://www.geonames.org/DM/administrative-division-dominica.html */ class DmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/DoSubdivisionCode.php b/library/Rules/SubdivisionCode/DoSubdivisionCode.php index a33c4b8c..2695f44d 100644 --- a/library/Rules/SubdivisionCode/DoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/DoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: DO * - * @link http://www.geonames.org/DO/administrative-division-dominican-republic.html + * @see http://www.geonames.org/DO/administrative-division-dominican-republic.html */ class DoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/DzSubdivisionCode.php b/library/Rules/SubdivisionCode/DzSubdivisionCode.php index 2d5d9f88..494f780d 100644 --- a/library/Rules/SubdivisionCode/DzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/DzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: DZ * - * @link http://www.geonames.org/DZ/administrative-division-algeria.html + * @see http://www.geonames.org/DZ/administrative-division-algeria.html */ class DzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/EcSubdivisionCode.php b/library/Rules/SubdivisionCode/EcSubdivisionCode.php index b38a65cc..8172f4a9 100644 --- a/library/Rules/SubdivisionCode/EcSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/EcSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: EC * - * @link http://www.geonames.org/EC/administrative-division-ecuador.html + * @see http://www.geonames.org/EC/administrative-division-ecuador.html */ class EcSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/EeSubdivisionCode.php b/library/Rules/SubdivisionCode/EeSubdivisionCode.php index 1e4177db..3af50def 100644 --- a/library/Rules/SubdivisionCode/EeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/EeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: EE * - * @link http://www.geonames.org/EE/administrative-division-estonia.html + * @see http://www.geonames.org/EE/administrative-division-estonia.html */ class EeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/EgSubdivisionCode.php b/library/Rules/SubdivisionCode/EgSubdivisionCode.php index d3be3478..cc6d04b1 100644 --- a/library/Rules/SubdivisionCode/EgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/EgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: EG * - * @link http://www.geonames.org/EG/administrative-division-egypt.html + * @see http://www.geonames.org/EG/administrative-division-egypt.html */ class EgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/EhSubdivisionCode.php b/library/Rules/SubdivisionCode/EhSubdivisionCode.php index fb0f7cd7..607848be 100644 --- a/library/Rules/SubdivisionCode/EhSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/EhSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: EH * - * @link http://www.geonames.org/EH/administrative-division-western-sahara.html + * @see http://www.geonames.org/EH/administrative-division-western-sahara.html */ class EhSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ErSubdivisionCode.php b/library/Rules/SubdivisionCode/ErSubdivisionCode.php index 20a5b952..25922ef6 100644 --- a/library/Rules/SubdivisionCode/ErSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ErSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ER * - * @link http://www.geonames.org/ER/administrative-division-eritrea.html + * @see http://www.geonames.org/ER/administrative-division-eritrea.html */ class ErSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/EsSubdivisionCode.php b/library/Rules/SubdivisionCode/EsSubdivisionCode.php index b6ec7d6d..32ac9ee7 100644 --- a/library/Rules/SubdivisionCode/EsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/EsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ES * - * @link http://www.geonames.org/ES/administrative-division-spain.html + * @see http://www.geonames.org/ES/administrative-division-spain.html */ class EsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/EtSubdivisionCode.php b/library/Rules/SubdivisionCode/EtSubdivisionCode.php index e8679677..31addb07 100644 --- a/library/Rules/SubdivisionCode/EtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/EtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ET * - * @link http://www.geonames.org/ET/administrative-division-ethiopia.html + * @see http://www.geonames.org/ET/administrative-division-ethiopia.html */ class EtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/FiSubdivisionCode.php b/library/Rules/SubdivisionCode/FiSubdivisionCode.php index f4834d46..91b7176a 100644 --- a/library/Rules/SubdivisionCode/FiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/FiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: FI * - * @link http://www.geonames.org/FI/administrative-division-finland.html + * @see http://www.geonames.org/FI/administrative-division-finland.html */ class FiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/FjSubdivisionCode.php b/library/Rules/SubdivisionCode/FjSubdivisionCode.php index 81e4daea..230fcae0 100644 --- a/library/Rules/SubdivisionCode/FjSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/FjSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: FJ * - * @link http://www.geonames.org/FJ/administrative-division-fiji.html + * @see http://www.geonames.org/FJ/administrative-division-fiji.html */ class FjSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/FkSubdivisionCode.php b/library/Rules/SubdivisionCode/FkSubdivisionCode.php index 4cd525d4..7e466ce7 100644 --- a/library/Rules/SubdivisionCode/FkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/FkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: FK * - * @link http://www.geonames.org/FK/administrative-division-falkland-islands.html + * @see http://www.geonames.org/FK/administrative-division-falkland-islands.html */ class FkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/FmSubdivisionCode.php b/library/Rules/SubdivisionCode/FmSubdivisionCode.php index 6bb26367..e25b70c7 100644 --- a/library/Rules/SubdivisionCode/FmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/FmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: FM * - * @link http://www.geonames.org/FM/administrative-division-micronesia.html + * @see http://www.geonames.org/FM/administrative-division-micronesia.html */ class FmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/FoSubdivisionCode.php b/library/Rules/SubdivisionCode/FoSubdivisionCode.php index 8fe6df18..dbf08343 100644 --- a/library/Rules/SubdivisionCode/FoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/FoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: FO * - * @link http://www.geonames.org/FO/administrative-division-faroe-islands.html + * @see http://www.geonames.org/FO/administrative-division-faroe-islands.html */ class FoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/FrSubdivisionCode.php b/library/Rules/SubdivisionCode/FrSubdivisionCode.php index bd71e55a..2d28a7ac 100644 --- a/library/Rules/SubdivisionCode/FrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/FrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: FR * - * @link http://www.geonames.org/FR/administrative-division-france.html + * @see http://www.geonames.org/FR/administrative-division-france.html */ class FrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GaSubdivisionCode.php b/library/Rules/SubdivisionCode/GaSubdivisionCode.php index 9eddfc47..e513170d 100644 --- a/library/Rules/SubdivisionCode/GaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GA * - * @link http://www.geonames.org/GA/administrative-division-gabon.html + * @see http://www.geonames.org/GA/administrative-division-gabon.html */ class GaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GbSubdivisionCode.php b/library/Rules/SubdivisionCode/GbSubdivisionCode.php index 4d5ffacc..db29518b 100644 --- a/library/Rules/SubdivisionCode/GbSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GbSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GB * - * @link http://www.geonames.org/GB/administrative-division-united-kingdom.html + * @see http://www.geonames.org/GB/administrative-division-united-kingdom.html */ class GbSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GdSubdivisionCode.php b/library/Rules/SubdivisionCode/GdSubdivisionCode.php index e8272a81..3c798088 100644 --- a/library/Rules/SubdivisionCode/GdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GD * - * @link http://www.geonames.org/GD/administrative-division-grenada.html + * @see http://www.geonames.org/GD/administrative-division-grenada.html */ class GdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GeSubdivisionCode.php b/library/Rules/SubdivisionCode/GeSubdivisionCode.php index 6ab737fc..90c4b00c 100644 --- a/library/Rules/SubdivisionCode/GeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GE * - * @link http://www.geonames.org/GE/administrative-division-georgia.html + * @see http://www.geonames.org/GE/administrative-division-georgia.html */ class GeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GfSubdivisionCode.php b/library/Rules/SubdivisionCode/GfSubdivisionCode.php index 4e0ea666..c5445a50 100644 --- a/library/Rules/SubdivisionCode/GfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GF * - * @link http://www.geonames.org/GF/administrative-division-french-guiana.html + * @see http://www.geonames.org/GF/administrative-division-french-guiana.html */ class GfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GgSubdivisionCode.php b/library/Rules/SubdivisionCode/GgSubdivisionCode.php index 5d9e8d5c..190e9b91 100644 --- a/library/Rules/SubdivisionCode/GgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GG * - * @link http://www.geonames.org/GG/administrative-division-guernsey.html + * @see http://www.geonames.org/GG/administrative-division-guernsey.html */ class GgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GhSubdivisionCode.php b/library/Rules/SubdivisionCode/GhSubdivisionCode.php index d6a06d88..6655260c 100644 --- a/library/Rules/SubdivisionCode/GhSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GhSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GH * - * @link http://www.geonames.org/GH/administrative-division-ghana.html + * @see http://www.geonames.org/GH/administrative-division-ghana.html */ class GhSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GiSubdivisionCode.php b/library/Rules/SubdivisionCode/GiSubdivisionCode.php index 5d7d877c..8f56edc2 100644 --- a/library/Rules/SubdivisionCode/GiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GI * - * @link http://www.geonames.org/GI/administrative-division-gibraltar.html + * @see http://www.geonames.org/GI/administrative-division-gibraltar.html */ class GiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GlSubdivisionCode.php b/library/Rules/SubdivisionCode/GlSubdivisionCode.php index 71f96585..17d71f21 100644 --- a/library/Rules/SubdivisionCode/GlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GL * - * @link http://www.geonames.org/GL/administrative-division-greenland.html + * @see http://www.geonames.org/GL/administrative-division-greenland.html */ class GlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GmSubdivisionCode.php b/library/Rules/SubdivisionCode/GmSubdivisionCode.php index 318959e9..f26e0eef 100644 --- a/library/Rules/SubdivisionCode/GmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GM * - * @link http://www.geonames.org/GM/administrative-division-gambia.html + * @see http://www.geonames.org/GM/administrative-division-gambia.html */ class GmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GnSubdivisionCode.php b/library/Rules/SubdivisionCode/GnSubdivisionCode.php index f223c14c..9198c0af 100644 --- a/library/Rules/SubdivisionCode/GnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GN * - * @link http://www.geonames.org/GN/administrative-division-guinea.html + * @see http://www.geonames.org/GN/administrative-division-guinea.html */ class GnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GpSubdivisionCode.php b/library/Rules/SubdivisionCode/GpSubdivisionCode.php index 16c15e00..67defacc 100644 --- a/library/Rules/SubdivisionCode/GpSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GpSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GP * - * @link http://www.geonames.org/GP/administrative-division-guadeloupe.html + * @see http://www.geonames.org/GP/administrative-division-guadeloupe.html */ class GpSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GqSubdivisionCode.php b/library/Rules/SubdivisionCode/GqSubdivisionCode.php index 191f8411..409314f4 100644 --- a/library/Rules/SubdivisionCode/GqSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GqSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GQ * - * @link http://www.geonames.org/GQ/administrative-division-equatorial-guinea.html + * @see http://www.geonames.org/GQ/administrative-division-equatorial-guinea.html */ class GqSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GrSubdivisionCode.php b/library/Rules/SubdivisionCode/GrSubdivisionCode.php index 8ddb1c29..d61c8eac 100644 --- a/library/Rules/SubdivisionCode/GrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GR * - * @link http://www.geonames.org/GR/administrative-division-greece.html + * @see http://www.geonames.org/GR/administrative-division-greece.html */ class GrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GsSubdivisionCode.php b/library/Rules/SubdivisionCode/GsSubdivisionCode.php index d2f4c68f..314fd0ad 100644 --- a/library/Rules/SubdivisionCode/GsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GS * - * @link http://www.geonames.org/GS/administrative-division-south-georgia-and-the-south-sandwich-islands.html + * @see http://www.geonames.org/GS/administrative-division-south-georgia-and-the-south-sandwich-islands.html */ class GsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GtSubdivisionCode.php b/library/Rules/SubdivisionCode/GtSubdivisionCode.php index 1507027a..3edcd650 100644 --- a/library/Rules/SubdivisionCode/GtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GT * - * @link http://www.geonames.org/GT/administrative-division-guatemala.html + * @see http://www.geonames.org/GT/administrative-division-guatemala.html */ class GtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GuSubdivisionCode.php b/library/Rules/SubdivisionCode/GuSubdivisionCode.php index ecf777e1..e06db47d 100644 --- a/library/Rules/SubdivisionCode/GuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GU * - * @link http://www.geonames.org/GU/administrative-division-guam.html + * @see http://www.geonames.org/GU/administrative-division-guam.html */ class GuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GwSubdivisionCode.php b/library/Rules/SubdivisionCode/GwSubdivisionCode.php index 52832466..225e84e5 100644 --- a/library/Rules/SubdivisionCode/GwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GW * - * @link http://www.geonames.org/GW/administrative-division-guinea-bissau.html + * @see http://www.geonames.org/GW/administrative-division-guinea-bissau.html */ class GwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/GySubdivisionCode.php b/library/Rules/SubdivisionCode/GySubdivisionCode.php index 2ce6929f..c38774f2 100644 --- a/library/Rules/SubdivisionCode/GySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/GySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: GY * - * @link http://www.geonames.org/GY/administrative-division-guyana.html + * @see http://www.geonames.org/GY/administrative-division-guyana.html */ class GySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/HkSubdivisionCode.php b/library/Rules/SubdivisionCode/HkSubdivisionCode.php index 41830d4c..58ebc990 100644 --- a/library/Rules/SubdivisionCode/HkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/HkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: HK * - * @link http://www.geonames.org/HK/administrative-division-hong-kong.html + * @see http://www.geonames.org/HK/administrative-division-hong-kong.html */ class HkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/HmSubdivisionCode.php b/library/Rules/SubdivisionCode/HmSubdivisionCode.php index d29c7e16..63b4401f 100644 --- a/library/Rules/SubdivisionCode/HmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/HmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: HM * - * @link http://www.geonames.org/HM/administrative-division-heard-island-and-mcdonald-islands.html + * @see http://www.geonames.org/HM/administrative-division-heard-island-and-mcdonald-islands.html */ class HmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/HnSubdivisionCode.php b/library/Rules/SubdivisionCode/HnSubdivisionCode.php index d714a493..b3303e3a 100644 --- a/library/Rules/SubdivisionCode/HnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/HnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: HN * - * @link http://www.geonames.org/HN/administrative-division-honduras.html + * @see http://www.geonames.org/HN/administrative-division-honduras.html */ class HnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/HrSubdivisionCode.php b/library/Rules/SubdivisionCode/HrSubdivisionCode.php index 884768ac..4177a5ff 100644 --- a/library/Rules/SubdivisionCode/HrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/HrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: HR * - * @link http://www.geonames.org/HR/administrative-division-croatia.html + * @see http://www.geonames.org/HR/administrative-division-croatia.html */ class HrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/HtSubdivisionCode.php b/library/Rules/SubdivisionCode/HtSubdivisionCode.php index 8ab7fe73..7202a76e 100644 --- a/library/Rules/SubdivisionCode/HtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/HtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: HT * - * @link http://www.geonames.org/HT/administrative-division-haiti.html + * @see http://www.geonames.org/HT/administrative-division-haiti.html */ class HtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/HuSubdivisionCode.php b/library/Rules/SubdivisionCode/HuSubdivisionCode.php index d050f8a7..e891446c 100644 --- a/library/Rules/SubdivisionCode/HuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/HuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: HU * - * @link http://www.geonames.org/HU/administrative-division-hungary.html + * @see http://www.geonames.org/HU/administrative-division-hungary.html */ class HuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/IdSubdivisionCode.php b/library/Rules/SubdivisionCode/IdSubdivisionCode.php index fb4abeea..f860a338 100644 --- a/library/Rules/SubdivisionCode/IdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/IdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ID * - * @link http://www.geonames.org/ID/administrative-division-indonesia.html + * @see http://www.geonames.org/ID/administrative-division-indonesia.html */ class IdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/IeSubdivisionCode.php b/library/Rules/SubdivisionCode/IeSubdivisionCode.php index 948936ea..8d710f69 100644 --- a/library/Rules/SubdivisionCode/IeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/IeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IE * - * @link http://www.geonames.org/IE/administrative-division-ireland.html + * @see http://www.geonames.org/IE/administrative-division-ireland.html */ class IeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/IlSubdivisionCode.php b/library/Rules/SubdivisionCode/IlSubdivisionCode.php index 4728f948..965424d0 100644 --- a/library/Rules/SubdivisionCode/IlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/IlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IL * - * @link http://www.geonames.org/IL/administrative-division-israel.html + * @see http://www.geonames.org/IL/administrative-division-israel.html */ class IlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ImSubdivisionCode.php b/library/Rules/SubdivisionCode/ImSubdivisionCode.php index 1530f887..b717bb69 100644 --- a/library/Rules/SubdivisionCode/ImSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ImSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IM * - * @link http://www.geonames.org/IM/administrative-division-isle-of-man.html + * @see http://www.geonames.org/IM/administrative-division-isle-of-man.html */ class ImSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/InSubdivisionCode.php b/library/Rules/SubdivisionCode/InSubdivisionCode.php index c7d6b129..6fd8d482 100644 --- a/library/Rules/SubdivisionCode/InSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/InSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IN * - * @link http://www.geonames.org/IN/administrative-division-india.html + * @see http://www.geonames.org/IN/administrative-division-india.html */ class InSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/IoSubdivisionCode.php b/library/Rules/SubdivisionCode/IoSubdivisionCode.php index 2530c4dd..441e0a5a 100644 --- a/library/Rules/SubdivisionCode/IoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/IoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IO * - * @link http://www.geonames.org/IO/administrative-division-british-indian-ocean-territory.html + * @see http://www.geonames.org/IO/administrative-division-british-indian-ocean-territory.html */ class IoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/IqSubdivisionCode.php b/library/Rules/SubdivisionCode/IqSubdivisionCode.php index fb09bf61..ebc1fdd6 100644 --- a/library/Rules/SubdivisionCode/IqSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/IqSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IQ * - * @link http://www.geonames.org/IQ/administrative-division-iraq.html + * @see http://www.geonames.org/IQ/administrative-division-iraq.html */ class IqSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/IrSubdivisionCode.php b/library/Rules/SubdivisionCode/IrSubdivisionCode.php index ded2a41a..6b3ab80f 100644 --- a/library/Rules/SubdivisionCode/IrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/IrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IR * - * @link http://www.geonames.org/IR/administrative-division-iran.html + * @see http://www.geonames.org/IR/administrative-division-iran.html */ class IrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/IsSubdivisionCode.php b/library/Rules/SubdivisionCode/IsSubdivisionCode.php index 7c736c0b..20644452 100644 --- a/library/Rules/SubdivisionCode/IsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/IsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IS * - * @link http://www.geonames.org/IS/administrative-division-iceland.html + * @see http://www.geonames.org/IS/administrative-division-iceland.html */ class IsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ItSubdivisionCode.php b/library/Rules/SubdivisionCode/ItSubdivisionCode.php index fa624a5f..22a1ab43 100644 --- a/library/Rules/SubdivisionCode/ItSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ItSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: IT * - * @link http://www.geonames.org/IT/administrative-division-italy.html + * @see http://www.geonames.org/IT/administrative-division-italy.html */ class ItSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/JeSubdivisionCode.php b/library/Rules/SubdivisionCode/JeSubdivisionCode.php index a18d79cf..faf8d1ad 100644 --- a/library/Rules/SubdivisionCode/JeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/JeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: JE * - * @link http://www.geonames.org/JE/administrative-division-jersey.html + * @see http://www.geonames.org/JE/administrative-division-jersey.html */ class JeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/JmSubdivisionCode.php b/library/Rules/SubdivisionCode/JmSubdivisionCode.php index 806e54ab..8b72184f 100644 --- a/library/Rules/SubdivisionCode/JmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/JmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: JM * - * @link http://www.geonames.org/JM/administrative-division-jamaica.html + * @see http://www.geonames.org/JM/administrative-division-jamaica.html */ class JmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/JoSubdivisionCode.php b/library/Rules/SubdivisionCode/JoSubdivisionCode.php index 76147cfb..e5818c46 100644 --- a/library/Rules/SubdivisionCode/JoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/JoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: JO * - * @link http://www.geonames.org/JO/administrative-division-jordan.html + * @see http://www.geonames.org/JO/administrative-division-jordan.html */ class JoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/JpSubdivisionCode.php b/library/Rules/SubdivisionCode/JpSubdivisionCode.php index 75c65629..fa374ebb 100644 --- a/library/Rules/SubdivisionCode/JpSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/JpSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: JP * - * @link http://www.geonames.org/JP/administrative-division-japan.html + * @see http://www.geonames.org/JP/administrative-division-japan.html */ class JpSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KeSubdivisionCode.php b/library/Rules/SubdivisionCode/KeSubdivisionCode.php index 2f602ca9..c7562b62 100644 --- a/library/Rules/SubdivisionCode/KeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KE * - * @link http://www.geonames.org/KE/administrative-division-kenya.html + * @see http://www.geonames.org/KE/administrative-division-kenya.html */ class KeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KgSubdivisionCode.php b/library/Rules/SubdivisionCode/KgSubdivisionCode.php index aaf78704..a1f3f74a 100644 --- a/library/Rules/SubdivisionCode/KgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KG * - * @link http://www.geonames.org/KG/administrative-division-kyrgyzstan.html + * @see http://www.geonames.org/KG/administrative-division-kyrgyzstan.html */ class KgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KhSubdivisionCode.php b/library/Rules/SubdivisionCode/KhSubdivisionCode.php index ff7beabf..412a5a2e 100644 --- a/library/Rules/SubdivisionCode/KhSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KhSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KH * - * @link http://www.geonames.org/KH/administrative-division-cambodia.html + * @see http://www.geonames.org/KH/administrative-division-cambodia.html */ class KhSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KiSubdivisionCode.php b/library/Rules/SubdivisionCode/KiSubdivisionCode.php index 85fe0dd5..34356e88 100644 --- a/library/Rules/SubdivisionCode/KiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KI * - * @link http://www.geonames.org/KI/administrative-division-kiribati.html + * @see http://www.geonames.org/KI/administrative-division-kiribati.html */ class KiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KmSubdivisionCode.php b/library/Rules/SubdivisionCode/KmSubdivisionCode.php index f3303aff..a7bd8d2c 100644 --- a/library/Rules/SubdivisionCode/KmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KM * - * @link http://www.geonames.org/KM/administrative-division-comoros.html + * @see http://www.geonames.org/KM/administrative-division-comoros.html */ class KmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KnSubdivisionCode.php b/library/Rules/SubdivisionCode/KnSubdivisionCode.php index 7722f0d3..9fe3e47a 100644 --- a/library/Rules/SubdivisionCode/KnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KN * - * @link http://www.geonames.org/KN/administrative-division-saint-kitts-and-nevis.html + * @see http://www.geonames.org/KN/administrative-division-saint-kitts-and-nevis.html */ class KnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KpSubdivisionCode.php b/library/Rules/SubdivisionCode/KpSubdivisionCode.php index 0338b902..4d5cdd78 100644 --- a/library/Rules/SubdivisionCode/KpSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KpSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KP * - * @link http://www.geonames.org/KP/administrative-division-north-korea.html + * @see http://www.geonames.org/KP/administrative-division-north-korea.html */ class KpSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KrSubdivisionCode.php b/library/Rules/SubdivisionCode/KrSubdivisionCode.php index 6bea3cd2..607f3eeb 100644 --- a/library/Rules/SubdivisionCode/KrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KR * - * @link http://www.geonames.org/KR/administrative-division-south-korea.html + * @see http://www.geonames.org/KR/administrative-division-south-korea.html */ class KrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KwSubdivisionCode.php b/library/Rules/SubdivisionCode/KwSubdivisionCode.php index cd68bb91..f2fe06b8 100644 --- a/library/Rules/SubdivisionCode/KwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KW * - * @link http://www.geonames.org/KW/administrative-division-kuwait.html + * @see http://www.geonames.org/KW/administrative-division-kuwait.html */ class KwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KySubdivisionCode.php b/library/Rules/SubdivisionCode/KySubdivisionCode.php index 05042848..cc149251 100644 --- a/library/Rules/SubdivisionCode/KySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KY * - * @link http://www.geonames.org/KY/administrative-division-cayman-islands.html + * @see http://www.geonames.org/KY/administrative-division-cayman-islands.html */ class KySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/KzSubdivisionCode.php b/library/Rules/SubdivisionCode/KzSubdivisionCode.php index 6f1daacc..e983f968 100644 --- a/library/Rules/SubdivisionCode/KzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/KzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: KZ * - * @link http://www.geonames.org/KZ/administrative-division-kazakhstan.html + * @see http://www.geonames.org/KZ/administrative-division-kazakhstan.html */ class KzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LaSubdivisionCode.php b/library/Rules/SubdivisionCode/LaSubdivisionCode.php index 5b7427a3..b5aa4211 100644 --- a/library/Rules/SubdivisionCode/LaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LA * - * @link http://www.geonames.org/LA/administrative-division-laos.html + * @see http://www.geonames.org/LA/administrative-division-laos.html */ class LaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LbSubdivisionCode.php b/library/Rules/SubdivisionCode/LbSubdivisionCode.php index 59cc3c4b..989509c0 100644 --- a/library/Rules/SubdivisionCode/LbSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LbSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LB * - * @link http://www.geonames.org/LB/administrative-division-lebanon.html + * @see http://www.geonames.org/LB/administrative-division-lebanon.html */ class LbSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LcSubdivisionCode.php b/library/Rules/SubdivisionCode/LcSubdivisionCode.php index 75c6a270..159085f0 100644 --- a/library/Rules/SubdivisionCode/LcSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LcSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LC * - * @link http://www.geonames.org/LC/administrative-division-saint-lucia.html + * @see http://www.geonames.org/LC/administrative-division-saint-lucia.html */ class LcSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LiSubdivisionCode.php b/library/Rules/SubdivisionCode/LiSubdivisionCode.php index b8109914..7eb23d7f 100644 --- a/library/Rules/SubdivisionCode/LiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LI * - * @link http://www.geonames.org/LI/administrative-division-liechtenstein.html + * @see http://www.geonames.org/LI/administrative-division-liechtenstein.html */ class LiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LkSubdivisionCode.php b/library/Rules/SubdivisionCode/LkSubdivisionCode.php index 1ee0a616..ca869ed6 100644 --- a/library/Rules/SubdivisionCode/LkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LK * - * @link http://www.geonames.org/LK/administrative-division-sri-lanka.html + * @see http://www.geonames.org/LK/administrative-division-sri-lanka.html */ class LkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LrSubdivisionCode.php b/library/Rules/SubdivisionCode/LrSubdivisionCode.php index 73052ad3..38319a65 100644 --- a/library/Rules/SubdivisionCode/LrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LR * - * @link http://www.geonames.org/LR/administrative-division-liberia.html + * @see http://www.geonames.org/LR/administrative-division-liberia.html */ class LrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LsSubdivisionCode.php b/library/Rules/SubdivisionCode/LsSubdivisionCode.php index 23f5a2af..ef5eb243 100644 --- a/library/Rules/SubdivisionCode/LsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LS * - * @link http://www.geonames.org/LS/administrative-division-lesotho.html + * @see http://www.geonames.org/LS/administrative-division-lesotho.html */ class LsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LtSubdivisionCode.php b/library/Rules/SubdivisionCode/LtSubdivisionCode.php index effd3807..9ba20225 100644 --- a/library/Rules/SubdivisionCode/LtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LT * - * @link http://www.geonames.org/LT/administrative-division-lithuania.html + * @see http://www.geonames.org/LT/administrative-division-lithuania.html */ class LtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LuSubdivisionCode.php b/library/Rules/SubdivisionCode/LuSubdivisionCode.php index ecf56a25..fbae22a8 100644 --- a/library/Rules/SubdivisionCode/LuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LU * - * @link http://www.geonames.org/LU/administrative-division-luxembourg.html + * @see http://www.geonames.org/LU/administrative-division-luxembourg.html */ class LuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LvSubdivisionCode.php b/library/Rules/SubdivisionCode/LvSubdivisionCode.php index 16b413c0..0e9c4eaa 100644 --- a/library/Rules/SubdivisionCode/LvSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LvSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LV * - * @link http://www.geonames.org/LV/administrative-division-latvia.html + * @see http://www.geonames.org/LV/administrative-division-latvia.html */ class LvSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/LySubdivisionCode.php b/library/Rules/SubdivisionCode/LySubdivisionCode.php index ab5951dd..4f0debd5 100644 --- a/library/Rules/SubdivisionCode/LySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/LySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: LY * - * @link http://www.geonames.org/LY/administrative-division-libya.html + * @see http://www.geonames.org/LY/administrative-division-libya.html */ class LySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MaSubdivisionCode.php b/library/Rules/SubdivisionCode/MaSubdivisionCode.php index bae957f5..f854532f 100644 --- a/library/Rules/SubdivisionCode/MaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MA * - * @link http://www.geonames.org/MA/administrative-division-morocco.html + * @see http://www.geonames.org/MA/administrative-division-morocco.html */ class MaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/McSubdivisionCode.php b/library/Rules/SubdivisionCode/McSubdivisionCode.php index 98ae794a..a41c8c5c 100644 --- a/library/Rules/SubdivisionCode/McSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/McSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MC * - * @link http://www.geonames.org/MC/administrative-division-monaco.html + * @see http://www.geonames.org/MC/administrative-division-monaco.html */ class McSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MdSubdivisionCode.php b/library/Rules/SubdivisionCode/MdSubdivisionCode.php index 8bb28f1b..b869f156 100644 --- a/library/Rules/SubdivisionCode/MdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MD * - * @link http://www.geonames.org/MD/administrative-division-moldova.html + * @see http://www.geonames.org/MD/administrative-division-moldova.html */ class MdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MeSubdivisionCode.php b/library/Rules/SubdivisionCode/MeSubdivisionCode.php index f9eb5afd..8451df26 100644 --- a/library/Rules/SubdivisionCode/MeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ME * - * @link http://www.geonames.org/ME/administrative-division-montenegro.html + * @see http://www.geonames.org/ME/administrative-division-montenegro.html */ class MeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MfSubdivisionCode.php b/library/Rules/SubdivisionCode/MfSubdivisionCode.php index af014edf..c3bf2056 100644 --- a/library/Rules/SubdivisionCode/MfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MF * - * @link http://www.geonames.org/MF/administrative-division-saint-martin.html + * @see http://www.geonames.org/MF/administrative-division-saint-martin.html */ class MfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MgSubdivisionCode.php b/library/Rules/SubdivisionCode/MgSubdivisionCode.php index 323ef623..c5c6b0f7 100644 --- a/library/Rules/SubdivisionCode/MgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MG * - * @link http://www.geonames.org/MG/administrative-division-madagascar.html + * @see http://www.geonames.org/MG/administrative-division-madagascar.html */ class MgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MhSubdivisionCode.php b/library/Rules/SubdivisionCode/MhSubdivisionCode.php index 7dfe27b5..c6db2733 100644 --- a/library/Rules/SubdivisionCode/MhSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MhSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MH * - * @link http://www.geonames.org/MH/administrative-division-marshall-islands.html + * @see http://www.geonames.org/MH/administrative-division-marshall-islands.html */ class MhSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MkSubdivisionCode.php b/library/Rules/SubdivisionCode/MkSubdivisionCode.php index b5274579..078b3a41 100644 --- a/library/Rules/SubdivisionCode/MkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MK * - * @link http://www.geonames.org/MK/administrative-division-macedonia.html + * @see http://www.geonames.org/MK/administrative-division-macedonia.html */ class MkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MlSubdivisionCode.php b/library/Rules/SubdivisionCode/MlSubdivisionCode.php index 598ec4f5..54389d70 100644 --- a/library/Rules/SubdivisionCode/MlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ML * - * @link http://www.geonames.org/ML/administrative-division-mali.html + * @see http://www.geonames.org/ML/administrative-division-mali.html */ class MlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MmSubdivisionCode.php b/library/Rules/SubdivisionCode/MmSubdivisionCode.php index 0d728aa5..079a46df 100644 --- a/library/Rules/SubdivisionCode/MmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MM * - * @link http://www.geonames.org/MM/administrative-division-myanmar.html + * @see http://www.geonames.org/MM/administrative-division-myanmar.html */ class MmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MnSubdivisionCode.php b/library/Rules/SubdivisionCode/MnSubdivisionCode.php index c0cf304b..552ad3a6 100644 --- a/library/Rules/SubdivisionCode/MnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MN * - * @link http://www.geonames.org/MN/administrative-division-mongolia.html + * @see http://www.geonames.org/MN/administrative-division-mongolia.html */ class MnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MoSubdivisionCode.php b/library/Rules/SubdivisionCode/MoSubdivisionCode.php index 898be4e9..1bac5785 100644 --- a/library/Rules/SubdivisionCode/MoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MO * - * @link http://www.geonames.org/MO/administrative-division-macao.html + * @see http://www.geonames.org/MO/administrative-division-macao.html */ class MoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MpSubdivisionCode.php b/library/Rules/SubdivisionCode/MpSubdivisionCode.php index a25ea148..9406c194 100644 --- a/library/Rules/SubdivisionCode/MpSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MpSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MP * - * @link http://www.geonames.org/MP/administrative-division-northern-mariana-islands.html + * @see http://www.geonames.org/MP/administrative-division-northern-mariana-islands.html */ class MpSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MqSubdivisionCode.php b/library/Rules/SubdivisionCode/MqSubdivisionCode.php index 6ae5f098..cdeca06a 100644 --- a/library/Rules/SubdivisionCode/MqSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MqSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MQ * - * @link http://www.geonames.org/MQ/administrative-division-martinique.html + * @see http://www.geonames.org/MQ/administrative-division-martinique.html */ class MqSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MrSubdivisionCode.php b/library/Rules/SubdivisionCode/MrSubdivisionCode.php index 43c1ff3b..1bdf0b20 100644 --- a/library/Rules/SubdivisionCode/MrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MR * - * @link http://www.geonames.org/MR/administrative-division-mauritania.html + * @see http://www.geonames.org/MR/administrative-division-mauritania.html */ class MrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MsSubdivisionCode.php b/library/Rules/SubdivisionCode/MsSubdivisionCode.php index ec34111b..a425c84f 100644 --- a/library/Rules/SubdivisionCode/MsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MS * - * @link http://www.geonames.org/MS/administrative-division-montserrat.html + * @see http://www.geonames.org/MS/administrative-division-montserrat.html */ class MsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MtSubdivisionCode.php b/library/Rules/SubdivisionCode/MtSubdivisionCode.php index 75037b84..876dc6c6 100644 --- a/library/Rules/SubdivisionCode/MtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MT * - * @link http://www.geonames.org/MT/administrative-division-malta.html + * @see http://www.geonames.org/MT/administrative-division-malta.html */ class MtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MuSubdivisionCode.php b/library/Rules/SubdivisionCode/MuSubdivisionCode.php index 1aec7191..14621521 100644 --- a/library/Rules/SubdivisionCode/MuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MU * - * @link http://www.geonames.org/MU/administrative-division-mauritius.html + * @see http://www.geonames.org/MU/administrative-division-mauritius.html */ class MuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MvSubdivisionCode.php b/library/Rules/SubdivisionCode/MvSubdivisionCode.php index 5d2dc959..10f70bd3 100644 --- a/library/Rules/SubdivisionCode/MvSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MvSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MV * - * @link http://www.geonames.org/MV/administrative-division-maldives.html + * @see http://www.geonames.org/MV/administrative-division-maldives.html */ class MvSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MwSubdivisionCode.php b/library/Rules/SubdivisionCode/MwSubdivisionCode.php index 6c521b24..43673eff 100644 --- a/library/Rules/SubdivisionCode/MwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MW * - * @link http://www.geonames.org/MW/administrative-division-malawi.html + * @see http://www.geonames.org/MW/administrative-division-malawi.html */ class MwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MxSubdivisionCode.php b/library/Rules/SubdivisionCode/MxSubdivisionCode.php index 00ba2dd1..a3e4f4ab 100644 --- a/library/Rules/SubdivisionCode/MxSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MxSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MX * - * @link http://www.geonames.org/MX/administrative-division-mexico.html + * @see http://www.geonames.org/MX/administrative-division-mexico.html */ class MxSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MySubdivisionCode.php b/library/Rules/SubdivisionCode/MySubdivisionCode.php index e37d1d74..e0e2cae7 100644 --- a/library/Rules/SubdivisionCode/MySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MY * - * @link http://www.geonames.org/MY/administrative-division-malaysia.html + * @see http://www.geonames.org/MY/administrative-division-malaysia.html */ class MySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/MzSubdivisionCode.php b/library/Rules/SubdivisionCode/MzSubdivisionCode.php index dfbbcefb..9e0c468a 100644 --- a/library/Rules/SubdivisionCode/MzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/MzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: MZ * - * @link http://www.geonames.org/MZ/administrative-division-mozambique.html + * @see http://www.geonames.org/MZ/administrative-division-mozambique.html */ class MzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NaSubdivisionCode.php b/library/Rules/SubdivisionCode/NaSubdivisionCode.php index 2109fb3a..e65dfb6f 100644 --- a/library/Rules/SubdivisionCode/NaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NA * - * @link http://www.geonames.org/NA/administrative-division-namibia.html + * @see http://www.geonames.org/NA/administrative-division-namibia.html */ class NaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NcSubdivisionCode.php b/library/Rules/SubdivisionCode/NcSubdivisionCode.php index c52b9b7e..61eabcc5 100644 --- a/library/Rules/SubdivisionCode/NcSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NcSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NC * - * @link http://www.geonames.org/NC/administrative-division-new-caledonia.html + * @see http://www.geonames.org/NC/administrative-division-new-caledonia.html */ class NcSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NeSubdivisionCode.php b/library/Rules/SubdivisionCode/NeSubdivisionCode.php index 2186b02d..c0326d85 100644 --- a/library/Rules/SubdivisionCode/NeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NE * - * @link http://www.geonames.org/NE/administrative-division-niger.html + * @see http://www.geonames.org/NE/administrative-division-niger.html */ class NeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NfSubdivisionCode.php b/library/Rules/SubdivisionCode/NfSubdivisionCode.php index 67275e50..5b9f53c5 100644 --- a/library/Rules/SubdivisionCode/NfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NF * - * @link http://www.geonames.org/NF/administrative-division-norfolk-island.html + * @see http://www.geonames.org/NF/administrative-division-norfolk-island.html */ class NfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NgSubdivisionCode.php b/library/Rules/SubdivisionCode/NgSubdivisionCode.php index dac3b9f7..d8529846 100644 --- a/library/Rules/SubdivisionCode/NgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NG * - * @link http://www.geonames.org/NG/administrative-division-nigeria.html + * @see http://www.geonames.org/NG/administrative-division-nigeria.html */ class NgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NiSubdivisionCode.php b/library/Rules/SubdivisionCode/NiSubdivisionCode.php index 040c9b6b..35d8276a 100644 --- a/library/Rules/SubdivisionCode/NiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NI * - * @link http://www.geonames.org/NI/administrative-division-nicaragua.html + * @see http://www.geonames.org/NI/administrative-division-nicaragua.html */ class NiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NlSubdivisionCode.php b/library/Rules/SubdivisionCode/NlSubdivisionCode.php index 0979bab7..920e37c5 100644 --- a/library/Rules/SubdivisionCode/NlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NL * - * @link http://www.geonames.org/NL/administrative-division-netherlands.html + * @see http://www.geonames.org/NL/administrative-division-netherlands.html */ class NlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NoSubdivisionCode.php b/library/Rules/SubdivisionCode/NoSubdivisionCode.php index 1fb6bcc1..052f185c 100644 --- a/library/Rules/SubdivisionCode/NoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NO * - * @link http://www.geonames.org/NO/administrative-division-norway.html + * @see http://www.geonames.org/NO/administrative-division-norway.html */ class NoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NpSubdivisionCode.php b/library/Rules/SubdivisionCode/NpSubdivisionCode.php index a0519e75..c0fd8cdd 100644 --- a/library/Rules/SubdivisionCode/NpSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NpSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NP * - * @link http://www.geonames.org/NP/administrative-division-nepal.html + * @see http://www.geonames.org/NP/administrative-division-nepal.html */ class NpSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NrSubdivisionCode.php b/library/Rules/SubdivisionCode/NrSubdivisionCode.php index 652058a0..4da706f5 100644 --- a/library/Rules/SubdivisionCode/NrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NR * - * @link http://www.geonames.org/NR/administrative-division-nauru.html + * @see http://www.geonames.org/NR/administrative-division-nauru.html */ class NrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NuSubdivisionCode.php b/library/Rules/SubdivisionCode/NuSubdivisionCode.php index e9572150..49496898 100644 --- a/library/Rules/SubdivisionCode/NuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NU * - * @link http://www.geonames.org/NU/administrative-division-niue.html + * @see http://www.geonames.org/NU/administrative-division-niue.html */ class NuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/NzSubdivisionCode.php b/library/Rules/SubdivisionCode/NzSubdivisionCode.php index e2207e14..becedd6f 100644 --- a/library/Rules/SubdivisionCode/NzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/NzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: NZ * - * @link http://www.geonames.org/NZ/administrative-division-new-zealand.html + * @see http://www.geonames.org/NZ/administrative-division-new-zealand.html */ class NzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/OmSubdivisionCode.php b/library/Rules/SubdivisionCode/OmSubdivisionCode.php index cc670230..4e59c065 100644 --- a/library/Rules/SubdivisionCode/OmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/OmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: OM * - * @link http://www.geonames.org/OM/administrative-division-oman.html + * @see http://www.geonames.org/OM/administrative-division-oman.html */ class OmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PaSubdivisionCode.php b/library/Rules/SubdivisionCode/PaSubdivisionCode.php index c6f975fb..599d9c01 100644 --- a/library/Rules/SubdivisionCode/PaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PA * - * @link http://www.geonames.org/PA/administrative-division-panama.html + * @see http://www.geonames.org/PA/administrative-division-panama.html */ class PaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PeSubdivisionCode.php b/library/Rules/SubdivisionCode/PeSubdivisionCode.php index 6618584a..f5f1adfa 100644 --- a/library/Rules/SubdivisionCode/PeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PE * - * @link http://www.geonames.org/PE/administrative-division-peru.html + * @see http://www.geonames.org/PE/administrative-division-peru.html */ class PeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PfSubdivisionCode.php b/library/Rules/SubdivisionCode/PfSubdivisionCode.php index 6f8ed8f9..6e494dd4 100644 --- a/library/Rules/SubdivisionCode/PfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PF * - * @link http://www.geonames.org/PF/administrative-division-french-polynesia.html + * @see http://www.geonames.org/PF/administrative-division-french-polynesia.html */ class PfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PgSubdivisionCode.php b/library/Rules/SubdivisionCode/PgSubdivisionCode.php index 8263f40a..46658780 100644 --- a/library/Rules/SubdivisionCode/PgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PG * - * @link http://www.geonames.org/PG/administrative-division-papua-new-guinea.html + * @see http://www.geonames.org/PG/administrative-division-papua-new-guinea.html */ class PgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PhSubdivisionCode.php b/library/Rules/SubdivisionCode/PhSubdivisionCode.php index ec257233..5ed3eaf9 100644 --- a/library/Rules/SubdivisionCode/PhSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PhSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PH * - * @link http://www.geonames.org/PH/administrative-division-philippines.html + * @see http://www.geonames.org/PH/administrative-division-philippines.html */ class PhSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PkSubdivisionCode.php b/library/Rules/SubdivisionCode/PkSubdivisionCode.php index 19293abf..733f53e5 100644 --- a/library/Rules/SubdivisionCode/PkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PK * - * @link http://www.geonames.org/PK/administrative-division-pakistan.html + * @see http://www.geonames.org/PK/administrative-division-pakistan.html */ class PkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PlSubdivisionCode.php b/library/Rules/SubdivisionCode/PlSubdivisionCode.php index b2b0b1b6..603a8187 100644 --- a/library/Rules/SubdivisionCode/PlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PL * - * @link http://www.geonames.org/PL/administrative-division-poland.html + * @see http://www.geonames.org/PL/administrative-division-poland.html */ class PlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PmSubdivisionCode.php b/library/Rules/SubdivisionCode/PmSubdivisionCode.php index d5f3d427..cbf14152 100644 --- a/library/Rules/SubdivisionCode/PmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PM * - * @link http://www.geonames.org/PM/administrative-division-saint-pierre-and-miquelon.html + * @see http://www.geonames.org/PM/administrative-division-saint-pierre-and-miquelon.html */ class PmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PnSubdivisionCode.php b/library/Rules/SubdivisionCode/PnSubdivisionCode.php index 08365351..e731b092 100644 --- a/library/Rules/SubdivisionCode/PnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PN * - * @link http://www.geonames.org/PN/administrative-division-pitcairn-islands.html + * @see http://www.geonames.org/PN/administrative-division-pitcairn-islands.html */ class PnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PrSubdivisionCode.php b/library/Rules/SubdivisionCode/PrSubdivisionCode.php index c6180569..db6e0ea3 100644 --- a/library/Rules/SubdivisionCode/PrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PR * - * @link http://www.geonames.org/PR/administrative-division-puerto-rico.html + * @see http://www.geonames.org/PR/administrative-division-puerto-rico.html */ class PrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PsSubdivisionCode.php b/library/Rules/SubdivisionCode/PsSubdivisionCode.php index 42a7f4a1..33702ae0 100644 --- a/library/Rules/SubdivisionCode/PsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PS * - * @link http://www.geonames.org/PS/administrative-division-palestine.html + * @see http://www.geonames.org/PS/administrative-division-palestine.html */ class PsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PtSubdivisionCode.php b/library/Rules/SubdivisionCode/PtSubdivisionCode.php index e16e822b..ed423837 100644 --- a/library/Rules/SubdivisionCode/PtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PT * - * @link http://www.geonames.org/PT/administrative-division-portugal.html + * @see http://www.geonames.org/PT/administrative-division-portugal.html */ class PtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PwSubdivisionCode.php b/library/Rules/SubdivisionCode/PwSubdivisionCode.php index fd127700..6b20a98b 100644 --- a/library/Rules/SubdivisionCode/PwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PW * - * @link http://www.geonames.org/PW/administrative-division-palau.html + * @see http://www.geonames.org/PW/administrative-division-palau.html */ class PwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/PySubdivisionCode.php b/library/Rules/SubdivisionCode/PySubdivisionCode.php index f96d92aa..2063eb5c 100644 --- a/library/Rules/SubdivisionCode/PySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/PySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: PY * - * @link http://www.geonames.org/PY/administrative-division-paraguay.html + * @see http://www.geonames.org/PY/administrative-division-paraguay.html */ class PySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/QaSubdivisionCode.php b/library/Rules/SubdivisionCode/QaSubdivisionCode.php index 22357d48..b963475d 100644 --- a/library/Rules/SubdivisionCode/QaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/QaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: QA * - * @link http://www.geonames.org/QA/administrative-division-qatar.html + * @see http://www.geonames.org/QA/administrative-division-qatar.html */ class QaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ReSubdivisionCode.php b/library/Rules/SubdivisionCode/ReSubdivisionCode.php index df1f9a10..3bcf48f8 100644 --- a/library/Rules/SubdivisionCode/ReSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ReSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: RE * - * @link http://www.geonames.org/RE/administrative-division-reunion.html + * @see http://www.geonames.org/RE/administrative-division-reunion.html */ class ReSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/RoSubdivisionCode.php b/library/Rules/SubdivisionCode/RoSubdivisionCode.php index cc6865e1..4053dd40 100644 --- a/library/Rules/SubdivisionCode/RoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/RoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: RO * - * @link http://www.geonames.org/RO/administrative-division-romania.html + * @see http://www.geonames.org/RO/administrative-division-romania.html */ class RoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/RsSubdivisionCode.php b/library/Rules/SubdivisionCode/RsSubdivisionCode.php index 3b48a9ae..467c0a3d 100644 --- a/library/Rules/SubdivisionCode/RsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/RsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: RS * - * @link http://www.geonames.org/RS/administrative-division-serbia.html + * @see http://www.geonames.org/RS/administrative-division-serbia.html */ class RsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/RuSubdivisionCode.php b/library/Rules/SubdivisionCode/RuSubdivisionCode.php index c13bbe12..498303b3 100644 --- a/library/Rules/SubdivisionCode/RuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/RuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: RU * - * @link http://www.geonames.org/RU/administrative-division-russia.html + * @see http://www.geonames.org/RU/administrative-division-russia.html */ class RuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/RwSubdivisionCode.php b/library/Rules/SubdivisionCode/RwSubdivisionCode.php index 020fce73..a286c32b 100644 --- a/library/Rules/SubdivisionCode/RwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/RwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: RW * - * @link http://www.geonames.org/RW/administrative-division-rwanda.html + * @see http://www.geonames.org/RW/administrative-division-rwanda.html */ class RwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SaSubdivisionCode.php b/library/Rules/SubdivisionCode/SaSubdivisionCode.php index 6b05f359..84cde743 100644 --- a/library/Rules/SubdivisionCode/SaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SA * - * @link http://www.geonames.org/SA/administrative-division-saudi-arabia.html + * @see http://www.geonames.org/SA/administrative-division-saudi-arabia.html */ class SaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SbSubdivisionCode.php b/library/Rules/SubdivisionCode/SbSubdivisionCode.php index daeaedc4..790d9998 100644 --- a/library/Rules/SubdivisionCode/SbSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SbSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SB * - * @link http://www.geonames.org/SB/administrative-division-solomon-islands.html + * @see http://www.geonames.org/SB/administrative-division-solomon-islands.html */ class SbSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ScSubdivisionCode.php b/library/Rules/SubdivisionCode/ScSubdivisionCode.php index 9f0dfe21..03b790f8 100644 --- a/library/Rules/SubdivisionCode/ScSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ScSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SC * - * @link http://www.geonames.org/SC/administrative-division-seychelles.html + * @see http://www.geonames.org/SC/administrative-division-seychelles.html */ class ScSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SdSubdivisionCode.php b/library/Rules/SubdivisionCode/SdSubdivisionCode.php index 78ef8ce2..1fb3e126 100644 --- a/library/Rules/SubdivisionCode/SdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SD * - * @link http://www.geonames.org/SD/administrative-division-sudan.html + * @see http://www.geonames.org/SD/administrative-division-sudan.html */ class SdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SeSubdivisionCode.php b/library/Rules/SubdivisionCode/SeSubdivisionCode.php index 273cf470..76b975cd 100644 --- a/library/Rules/SubdivisionCode/SeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SE * - * @link http://www.geonames.org/SE/administrative-division-sweden.html + * @see http://www.geonames.org/SE/administrative-division-sweden.html */ class SeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SgSubdivisionCode.php b/library/Rules/SubdivisionCode/SgSubdivisionCode.php index 7cad35e5..88b9254e 100644 --- a/library/Rules/SubdivisionCode/SgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SG * - * @link http://www.geonames.org/SG/administrative-division-singapore.html + * @see http://www.geonames.org/SG/administrative-division-singapore.html */ class SgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ShSubdivisionCode.php b/library/Rules/SubdivisionCode/ShSubdivisionCode.php index c2189a64..141f2bb0 100644 --- a/library/Rules/SubdivisionCode/ShSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ShSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SH * - * @link http://www.geonames.org/SH/administrative-division-saint-helena.html + * @see http://www.geonames.org/SH/administrative-division-saint-helena.html */ class ShSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SiSubdivisionCode.php b/library/Rules/SubdivisionCode/SiSubdivisionCode.php index 959785ee..68b88108 100644 --- a/library/Rules/SubdivisionCode/SiSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SiSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SI * - * @link http://www.geonames.org/SI/administrative-division-slovenia.html + * @see http://www.geonames.org/SI/administrative-division-slovenia.html */ class SiSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SjSubdivisionCode.php b/library/Rules/SubdivisionCode/SjSubdivisionCode.php index d66c2e80..e0c0e0ea 100644 --- a/library/Rules/SubdivisionCode/SjSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SjSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SJ * - * @link http://www.geonames.org/SJ/administrative-division-svalbard-and-jan-mayen.html + * @see http://www.geonames.org/SJ/administrative-division-svalbard-and-jan-mayen.html */ class SjSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SkSubdivisionCode.php b/library/Rules/SubdivisionCode/SkSubdivisionCode.php index 620d5d10..fb9f7c7b 100644 --- a/library/Rules/SubdivisionCode/SkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SK * - * @link http://www.geonames.org/SK/administrative-division-slovakia.html + * @see http://www.geonames.org/SK/administrative-division-slovakia.html */ class SkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SlSubdivisionCode.php b/library/Rules/SubdivisionCode/SlSubdivisionCode.php index ac6fb83c..4656d65e 100644 --- a/library/Rules/SubdivisionCode/SlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SL * - * @link http://www.geonames.org/SL/administrative-division-sierra-leone.html + * @see http://www.geonames.org/SL/administrative-division-sierra-leone.html */ class SlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SmSubdivisionCode.php b/library/Rules/SubdivisionCode/SmSubdivisionCode.php index d81be92b..b37915d8 100644 --- a/library/Rules/SubdivisionCode/SmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SM * - * @link http://www.geonames.org/SM/administrative-division-san-marino.html + * @see http://www.geonames.org/SM/administrative-division-san-marino.html */ class SmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SnSubdivisionCode.php b/library/Rules/SubdivisionCode/SnSubdivisionCode.php index 09edb611..ee6f05d7 100644 --- a/library/Rules/SubdivisionCode/SnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SN * - * @link http://www.geonames.org/SN/administrative-division-senegal.html + * @see http://www.geonames.org/SN/administrative-division-senegal.html */ class SnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SoSubdivisionCode.php b/library/Rules/SubdivisionCode/SoSubdivisionCode.php index d0fe1b57..341cd993 100644 --- a/library/Rules/SubdivisionCode/SoSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SoSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SO * - * @link http://www.geonames.org/SO/administrative-division-somalia.html + * @see http://www.geonames.org/SO/administrative-division-somalia.html */ class SoSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SrSubdivisionCode.php b/library/Rules/SubdivisionCode/SrSubdivisionCode.php index d560c2d1..b9f51632 100644 --- a/library/Rules/SubdivisionCode/SrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SR * - * @link http://www.geonames.org/SR/administrative-division-suriname.html + * @see http://www.geonames.org/SR/administrative-division-suriname.html */ class SrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SsSubdivisionCode.php b/library/Rules/SubdivisionCode/SsSubdivisionCode.php index b2ed2833..e36a1e0c 100644 --- a/library/Rules/SubdivisionCode/SsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SS * - * @link http://www.geonames.org/SS/administrative-division-south-sudan.html + * @see http://www.geonames.org/SS/administrative-division-south-sudan.html */ class SsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/StSubdivisionCode.php b/library/Rules/SubdivisionCode/StSubdivisionCode.php index 5f08b04e..7b0af334 100644 --- a/library/Rules/SubdivisionCode/StSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/StSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ST * - * @link http://www.geonames.org/ST/administrative-division-sao-tome-and-principe.html + * @see http://www.geonames.org/ST/administrative-division-sao-tome-and-principe.html */ class StSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SvSubdivisionCode.php b/library/Rules/SubdivisionCode/SvSubdivisionCode.php index f30e7c3f..e49e714c 100644 --- a/library/Rules/SubdivisionCode/SvSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SvSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SV * - * @link http://www.geonames.org/SV/administrative-division-el-salvador.html + * @see http://www.geonames.org/SV/administrative-division-el-salvador.html */ class SvSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SxSubdivisionCode.php b/library/Rules/SubdivisionCode/SxSubdivisionCode.php index f89823a4..b91f4b47 100644 --- a/library/Rules/SubdivisionCode/SxSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SxSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SX * - * @link http://www.geonames.org/SX/administrative-division-sint-maarten.html + * @see http://www.geonames.org/SX/administrative-division-sint-maarten.html */ class SxSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SySubdivisionCode.php b/library/Rules/SubdivisionCode/SySubdivisionCode.php index 8bc62428..8ac49c87 100644 --- a/library/Rules/SubdivisionCode/SySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SY * - * @link http://www.geonames.org/SY/administrative-division-syria.html + * @see http://www.geonames.org/SY/administrative-division-syria.html */ class SySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/SzSubdivisionCode.php b/library/Rules/SubdivisionCode/SzSubdivisionCode.php index 94f64e7e..e22c4a09 100644 --- a/library/Rules/SubdivisionCode/SzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/SzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: SZ * - * @link http://www.geonames.org/SZ/administrative-division-swaziland.html + * @see http://www.geonames.org/SZ/administrative-division-swaziland.html */ class SzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TcSubdivisionCode.php b/library/Rules/SubdivisionCode/TcSubdivisionCode.php index dfea0c09..167a847c 100644 --- a/library/Rules/SubdivisionCode/TcSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TcSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TC * - * @link http://www.geonames.org/TC/administrative-division-turks-and-caicos-islands.html + * @see http://www.geonames.org/TC/administrative-division-turks-and-caicos-islands.html */ class TcSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TdSubdivisionCode.php b/library/Rules/SubdivisionCode/TdSubdivisionCode.php index 1aea66c0..c217e439 100644 --- a/library/Rules/SubdivisionCode/TdSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TdSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TD * - * @link http://www.geonames.org/TD/administrative-division-chad.html + * @see http://www.geonames.org/TD/administrative-division-chad.html */ class TdSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TfSubdivisionCode.php b/library/Rules/SubdivisionCode/TfSubdivisionCode.php index 2cee3515..1068cc4f 100644 --- a/library/Rules/SubdivisionCode/TfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TF * - * @link http://www.geonames.org/TF/administrative-division-french-southern-territories.html + * @see http://www.geonames.org/TF/administrative-division-french-southern-territories.html */ class TfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TgSubdivisionCode.php b/library/Rules/SubdivisionCode/TgSubdivisionCode.php index dd87ff02..ede07933 100644 --- a/library/Rules/SubdivisionCode/TgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TG * - * @link http://www.geonames.org/TG/administrative-division-togo.html + * @see http://www.geonames.org/TG/administrative-division-togo.html */ class TgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ThSubdivisionCode.php b/library/Rules/SubdivisionCode/ThSubdivisionCode.php index b7a479aa..df07e209 100644 --- a/library/Rules/SubdivisionCode/ThSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ThSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TH * - * @link http://www.geonames.org/TH/administrative-division-thailand.html + * @see http://www.geonames.org/TH/administrative-division-thailand.html */ class ThSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TjSubdivisionCode.php b/library/Rules/SubdivisionCode/TjSubdivisionCode.php index 12d5ae0b..1d31eacd 100644 --- a/library/Rules/SubdivisionCode/TjSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TjSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TJ * - * @link http://www.geonames.org/TJ/administrative-division-tajikistan.html + * @see http://www.geonames.org/TJ/administrative-division-tajikistan.html */ class TjSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TkSubdivisionCode.php b/library/Rules/SubdivisionCode/TkSubdivisionCode.php index 13ce7c8b..e12232c5 100644 --- a/library/Rules/SubdivisionCode/TkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TK * - * @link http://www.geonames.org/TK/administrative-division-tokelau.html + * @see http://www.geonames.org/TK/administrative-division-tokelau.html */ class TkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TlSubdivisionCode.php b/library/Rules/SubdivisionCode/TlSubdivisionCode.php index b803a9a6..8b794cfd 100644 --- a/library/Rules/SubdivisionCode/TlSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TlSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TL * - * @link http://www.geonames.org/TL/administrative-division-east-timor.html + * @see http://www.geonames.org/TL/administrative-division-east-timor.html */ class TlSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TmSubdivisionCode.php b/library/Rules/SubdivisionCode/TmSubdivisionCode.php index b9a4540b..4bef1c2b 100644 --- a/library/Rules/SubdivisionCode/TmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TM * - * @link http://www.geonames.org/TM/administrative-division-turkmenistan.html + * @see http://www.geonames.org/TM/administrative-division-turkmenistan.html */ class TmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TnSubdivisionCode.php b/library/Rules/SubdivisionCode/TnSubdivisionCode.php index 90c621cf..51979c9d 100644 --- a/library/Rules/SubdivisionCode/TnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TN * - * @link http://www.geonames.org/TN/administrative-division-tunisia.html + * @see http://www.geonames.org/TN/administrative-division-tunisia.html */ class TnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ToSubdivisionCode.php b/library/Rules/SubdivisionCode/ToSubdivisionCode.php index 2d895e6d..cd88baab 100644 --- a/library/Rules/SubdivisionCode/ToSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ToSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TO * - * @link http://www.geonames.org/TO/administrative-division-tonga.html + * @see http://www.geonames.org/TO/administrative-division-tonga.html */ class ToSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TrSubdivisionCode.php b/library/Rules/SubdivisionCode/TrSubdivisionCode.php index 88605bae..3339d4d4 100644 --- a/library/Rules/SubdivisionCode/TrSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TrSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TR * - * @link http://www.geonames.org/TR/administrative-division-turkey.html + * @see http://www.geonames.org/TR/administrative-division-turkey.html */ class TrSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TtSubdivisionCode.php b/library/Rules/SubdivisionCode/TtSubdivisionCode.php index a2106faa..dd21df46 100644 --- a/library/Rules/SubdivisionCode/TtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TT * - * @link http://www.geonames.org/TT/administrative-division-trinidad-and-tobago.html + * @see http://www.geonames.org/TT/administrative-division-trinidad-and-tobago.html */ class TtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TvSubdivisionCode.php b/library/Rules/SubdivisionCode/TvSubdivisionCode.php index 5757e7eb..990c4d8d 100644 --- a/library/Rules/SubdivisionCode/TvSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TvSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TV * - * @link http://www.geonames.org/TV/administrative-division-tuvalu.html + * @see http://www.geonames.org/TV/administrative-division-tuvalu.html */ class TvSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TwSubdivisionCode.php b/library/Rules/SubdivisionCode/TwSubdivisionCode.php index 83a83669..ac32ec74 100644 --- a/library/Rules/SubdivisionCode/TwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TW * - * @link http://www.geonames.org/TW/administrative-division-taiwan.html + * @see http://www.geonames.org/TW/administrative-division-taiwan.html */ class TwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/TzSubdivisionCode.php b/library/Rules/SubdivisionCode/TzSubdivisionCode.php index b88e9511..ebb16488 100644 --- a/library/Rules/SubdivisionCode/TzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/TzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: TZ * - * @link http://www.geonames.org/TZ/administrative-division-tanzania.html + * @see http://www.geonames.org/TZ/administrative-division-tanzania.html */ class TzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/UaSubdivisionCode.php b/library/Rules/SubdivisionCode/UaSubdivisionCode.php index 8b4c9337..141e5b73 100644 --- a/library/Rules/SubdivisionCode/UaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/UaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: UA * - * @link http://www.geonames.org/UA/administrative-division-ukraine.html + * @see http://www.geonames.org/UA/administrative-division-ukraine.html */ class UaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/UgSubdivisionCode.php b/library/Rules/SubdivisionCode/UgSubdivisionCode.php index 108de4f9..60631ebe 100644 --- a/library/Rules/SubdivisionCode/UgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/UgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: UG * - * @link http://www.geonames.org/UG/administrative-division-uganda.html + * @see http://www.geonames.org/UG/administrative-division-uganda.html */ class UgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/UmSubdivisionCode.php b/library/Rules/SubdivisionCode/UmSubdivisionCode.php index 64a5fa2f..d6a65eb0 100644 --- a/library/Rules/SubdivisionCode/UmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/UmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: UM * - * @link http://www.geonames.org/UM/administrative-division-united-states-minor-outlying-islands.html + * @see http://www.geonames.org/UM/administrative-division-united-states-minor-outlying-islands.html */ class UmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/UsSubdivisionCode.php b/library/Rules/SubdivisionCode/UsSubdivisionCode.php index b9c86b35..ae5b44e6 100644 --- a/library/Rules/SubdivisionCode/UsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/UsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: US * - * @link http://www.geonames.org/US/administrative-division-united-states.html + * @see http://www.geonames.org/US/administrative-division-united-states.html */ class UsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/UySubdivisionCode.php b/library/Rules/SubdivisionCode/UySubdivisionCode.php index 8692cb58..60bbe284 100644 --- a/library/Rules/SubdivisionCode/UySubdivisionCode.php +++ b/library/Rules/SubdivisionCode/UySubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: UY * - * @link http://www.geonames.org/UY/administrative-division-uruguay.html + * @see http://www.geonames.org/UY/administrative-division-uruguay.html */ class UySubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/UzSubdivisionCode.php b/library/Rules/SubdivisionCode/UzSubdivisionCode.php index fc7e9c9f..0079c6ef 100644 --- a/library/Rules/SubdivisionCode/UzSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/UzSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: UZ * - * @link http://www.geonames.org/UZ/administrative-division-uzbekistan.html + * @see http://www.geonames.org/UZ/administrative-division-uzbekistan.html */ class UzSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/VaSubdivisionCode.php b/library/Rules/SubdivisionCode/VaSubdivisionCode.php index 2e128b54..61ec779b 100644 --- a/library/Rules/SubdivisionCode/VaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/VaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: VA * - * @link http://www.geonames.org/VA/administrative-division-vatican-city.html + * @see http://www.geonames.org/VA/administrative-division-vatican-city.html */ class VaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/VcSubdivisionCode.php b/library/Rules/SubdivisionCode/VcSubdivisionCode.php index 33912616..3d1eecbb 100644 --- a/library/Rules/SubdivisionCode/VcSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/VcSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: VC * - * @link http://www.geonames.org/VC/administrative-division-saint-vincent-and-the-grenadines.html + * @see http://www.geonames.org/VC/administrative-division-saint-vincent-and-the-grenadines.html */ class VcSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/VeSubdivisionCode.php b/library/Rules/SubdivisionCode/VeSubdivisionCode.php index 7ec212fc..d850b309 100644 --- a/library/Rules/SubdivisionCode/VeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/VeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: VE * - * @link http://www.geonames.org/VE/administrative-division-venezuela.html + * @see http://www.geonames.org/VE/administrative-division-venezuela.html */ class VeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/VgSubdivisionCode.php b/library/Rules/SubdivisionCode/VgSubdivisionCode.php index 29240aca..72696acf 100644 --- a/library/Rules/SubdivisionCode/VgSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/VgSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: VG * - * @link http://www.geonames.org/VG/administrative-division-british-virgin-islands.html + * @see http://www.geonames.org/VG/administrative-division-british-virgin-islands.html */ class VgSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ViSubdivisionCode.php b/library/Rules/SubdivisionCode/ViSubdivisionCode.php index 684f8e6d..e5a70b5f 100644 --- a/library/Rules/SubdivisionCode/ViSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ViSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: VI * - * @link http://www.geonames.org/VI/administrative-division-u-s-virgin-islands.html + * @see http://www.geonames.org/VI/administrative-division-u-s-virgin-islands.html */ class ViSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/VnSubdivisionCode.php b/library/Rules/SubdivisionCode/VnSubdivisionCode.php index cdd449e7..2e3b30ee 100644 --- a/library/Rules/SubdivisionCode/VnSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/VnSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: VN * - * @link http://www.geonames.org/VN/administrative-division-vietnam.html + * @see http://www.geonames.org/VN/administrative-division-vietnam.html */ class VnSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/VuSubdivisionCode.php b/library/Rules/SubdivisionCode/VuSubdivisionCode.php index 8657749b..60a546d0 100644 --- a/library/Rules/SubdivisionCode/VuSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/VuSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: VU * - * @link http://www.geonames.org/VU/administrative-division-vanuatu.html + * @see http://www.geonames.org/VU/administrative-division-vanuatu.html */ class VuSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/WfSubdivisionCode.php b/library/Rules/SubdivisionCode/WfSubdivisionCode.php index 6794f0f2..54af99d0 100644 --- a/library/Rules/SubdivisionCode/WfSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/WfSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: WF * - * @link http://www.geonames.org/WF/administrative-division-wallis-and-futuna.html + * @see http://www.geonames.org/WF/administrative-division-wallis-and-futuna.html */ class WfSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/WsSubdivisionCode.php b/library/Rules/SubdivisionCode/WsSubdivisionCode.php index 9d1ab9ef..163153a8 100644 --- a/library/Rules/SubdivisionCode/WsSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/WsSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: WS * - * @link http://www.geonames.org/WS/administrative-division-samoa.html + * @see http://www.geonames.org/WS/administrative-division-samoa.html */ class WsSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/XkSubdivisionCode.php b/library/Rules/SubdivisionCode/XkSubdivisionCode.php index 98c039eb..78d2ca86 100644 --- a/library/Rules/SubdivisionCode/XkSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/XkSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: XK * - * @link http://www.geonames.org/XK/administrative-division-kosovo.html + * @see http://www.geonames.org/XK/administrative-division-kosovo.html */ class XkSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/YeSubdivisionCode.php b/library/Rules/SubdivisionCode/YeSubdivisionCode.php index fbfaf3e3..df2bd45a 100644 --- a/library/Rules/SubdivisionCode/YeSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/YeSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: YE * - * @link http://www.geonames.org/YE/administrative-division-yemen.html + * @see http://www.geonames.org/YE/administrative-division-yemen.html */ class YeSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/YtSubdivisionCode.php b/library/Rules/SubdivisionCode/YtSubdivisionCode.php index a3ae34f0..54d88194 100644 --- a/library/Rules/SubdivisionCode/YtSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/YtSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: YT * - * @link http://www.geonames.org/YT/administrative-division-mayotte.html + * @see http://www.geonames.org/YT/administrative-division-mayotte.html */ class YtSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ZaSubdivisionCode.php b/library/Rules/SubdivisionCode/ZaSubdivisionCode.php index 1efcef7e..10e22842 100644 --- a/library/Rules/SubdivisionCode/ZaSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ZaSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ZA * - * @link http://www.geonames.org/ZA/administrative-division-south-africa.html + * @see http://www.geonames.org/ZA/administrative-division-south-africa.html */ class ZaSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ZmSubdivisionCode.php b/library/Rules/SubdivisionCode/ZmSubdivisionCode.php index 1a7902f0..46ba9172 100644 --- a/library/Rules/SubdivisionCode/ZmSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ZmSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ZM * - * @link http://www.geonames.org/ZM/administrative-division-zambia.html + * @see http://www.geonames.org/ZM/administrative-division-zambia.html */ class ZmSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SubdivisionCode/ZwSubdivisionCode.php b/library/Rules/SubdivisionCode/ZwSubdivisionCode.php index 9b873b5b..93ec0ff4 100644 --- a/library/Rules/SubdivisionCode/ZwSubdivisionCode.php +++ b/library/Rules/SubdivisionCode/ZwSubdivisionCode.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; @@ -18,7 +20,7 @@ use Respect\Validation\Rules\AbstractSearcher; * * ISO 3166-1 alpha-2: ZW * - * @link http://www.geonames.org/ZW/administrative-division-zimbabwe.html + * @see http://www.geonames.org/ZW/administrative-division-zimbabwe.html */ class ZwSubdivisionCode extends AbstractSearcher { diff --git a/library/Rules/SymbolicLink.php b/library/Rules/SymbolicLink.php index e67fe3eb..d2955063 100644 --- a/library/Rules/SymbolicLink.php +++ b/library/Rules/SymbolicLink.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class SymbolicLink extends AbstractRule diff --git a/library/Rules/Tld.php b/library/Rules/Tld.php index 8649e8fd..c9cc8289 100644 --- a/library/Rules/Tld.php +++ b/library/Rules/Tld.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Tld extends AbstractRule @@ -1552,6 +1554,6 @@ class Tld extends AbstractRule public function validate($input) { - return in_array(mb_strtoupper($input), $this->tldList); + return in_array(mb_strtoupper((string) $input), $this->tldList); } } diff --git a/library/Rules/TrueVal.php b/library/Rules/TrueVal.php index 33a744e5..e576718e 100644 --- a/library/Rules/TrueVal.php +++ b/library/Rules/TrueVal.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class TrueVal extends AbstractRule diff --git a/library/Rules/Type.php b/library/Rules/Type.php index 686756f8..19f9412a 100644 --- a/library/Rules/Type.php +++ b/library/Rules/Type.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/Unique.php b/library/Rules/Unique.php index 195b22af..9dc642a6 100644 --- a/library/Rules/Unique.php +++ b/library/Rules/Unique.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Unique extends AbstractRule diff --git a/library/Rules/Uploaded.php b/library/Rules/Uploaded.php index 1c8bc6fe..c7d0ed08 100644 --- a/library/Rules/Uploaded.php +++ b/library/Rules/Uploaded.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Uploaded extends AbstractRule diff --git a/library/Rules/Uppercase.php b/library/Rules/Uppercase.php index cfd9df3f..eb2401a2 100644 --- a/library/Rules/Uppercase.php +++ b/library/Rules/Uppercase.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Uppercase extends AbstractRule diff --git a/library/Rules/Url.php b/library/Rules/Url.php index e2ff6cf7..29933999 100644 --- a/library/Rules/Url.php +++ b/library/Rules/Url.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Url extends FilterVar diff --git a/library/Rules/Uuid.php b/library/Rules/Uuid.php index c8e35d24..9ac172da 100644 --- a/library/Rules/Uuid.php +++ b/library/Rules/Uuid.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Uuid extends AbstractRegexRule diff --git a/library/Rules/Vatin.php b/library/Rules/Vatin.php index 52e89b42..f78e6630 100644 --- a/library/Rules/Vatin.php +++ b/library/Rules/Vatin.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; diff --git a/library/Rules/Version.php b/library/Rules/Version.php index 9b764ca7..1a760435 100644 --- a/library/Rules/Version.php +++ b/library/Rules/Version.php @@ -9,10 +9,12 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** - * @link http://semver.org/ + * @see http://semver.org/ */ class Version extends AbstractRule { diff --git a/library/Rules/VideoUrl.php b/library/Rules/VideoUrl.php index ed61cd5d..b47be183 100644 --- a/library/Rules/VideoUrl.php +++ b/library/Rules/VideoUrl.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -38,15 +40,15 @@ class VideoUrl extends AbstractRule * * @param string $service */ - public function __construct($service = null) + public function __construct(string $service = null) { - $serviceKey = mb_strtolower($service); + $serviceKey = mb_strtolower((string) $service); if (null !== $service && !isset($this->services[$serviceKey])) { throw new ComponentException(sprintf('"%s" is not a recognized video service.', $service)); } $this->service = $service; - $this->serviceKey = mb_strtolower($service); + $this->serviceKey = $serviceKey; } /** @@ -55,11 +57,11 @@ class VideoUrl extends AbstractRule public function validate($input) { if (isset($this->services[$this->serviceKey])) { - return preg_match($this->services[$this->serviceKey], $input) > 0; + return preg_match($this->services[$this->serviceKey], (string) $input) > 0; } foreach ($this->services as $pattern) { - if (0 === preg_match($pattern, $input)) { + if (0 === preg_match($pattern, (string) $input)) { continue; } diff --git a/library/Rules/Vowel.php b/library/Rules/Vowel.php index 8157b317..a6db0532 100644 --- a/library/Rules/Vowel.php +++ b/library/Rules/Vowel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Vowel extends AbstractRegexRule diff --git a/library/Rules/When.php b/library/Rules/When.php index 25afce46..b09ec92b 100644 --- a/library/Rules/When.php +++ b/library/Rules/When.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\AlwaysInvalidException; diff --git a/library/Rules/Writable.php b/library/Rules/Writable.php index 5fba9782..dc108ef1 100644 --- a/library/Rules/Writable.php +++ b/library/Rules/Writable.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Writable extends AbstractRule diff --git a/library/Rules/Xdigit.php b/library/Rules/Xdigit.php index 4a377cbd..2a9fbcae 100644 --- a/library/Rules/Xdigit.php +++ b/library/Rules/Xdigit.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Xdigit extends AbstractCtypeRule diff --git a/library/Rules/Yes.php b/library/Rules/Yes.php index 4c8b52fc..effd3715 100644 --- a/library/Rules/Yes.php +++ b/library/Rules/Yes.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; class Yes extends Regex diff --git a/library/Rules/Zend.php b/library/Rules/Zend.php index 69681d67..035497e6 100644 --- a/library/Rules/Zend.php +++ b/library/Rules/Zend.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use ReflectionClass; diff --git a/library/Validatable.php b/library/Validatable.php index ad53ecf8..c2cd4039 100644 --- a/library/Validatable.php +++ b/library/Validatable.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation; /** Interface for validation rules */ diff --git a/library/Validator.php b/library/Validator.php index 57472a53..bf4bcc4c 100644 --- a/library/Validator.php +++ b/library/Validator.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation; use finfo; @@ -176,7 +178,7 @@ class Validator extends AllOf /** * @param Factory $factory */ - public static function setFactory($factory) + public static function setFactory($factory): void { static::$factory = $factory; } @@ -185,7 +187,7 @@ class Validator extends AllOf * @param string $rulePrefix * @param bool $prepend */ - public static function with($rulePrefix, $prepend = false) + public static function with($rulePrefix, $prepend = false): void { if (false === $prepend) { self::getFactory()->appendRulePrefix($rulePrefix); @@ -199,7 +201,7 @@ class Validator extends AllOf try { return parent::check($input); } catch (ValidationException $exception) { - if (count($this->getRules()) == 1 && $this->template) { + if (1 == count($this->getRules()) && $this->template) { $exception->setTemplate($this->template); } diff --git a/tests/integration/issue-719.phpt b/tests/integration/issue-719.phpt index b886eff4..c9a71fa0 100644 --- a/tests/integration/issue-719.phpt +++ b/tests/integration/issue-719.phpt @@ -13,9 +13,9 @@ $input = [ ]; $rules = [ - v::key('user_name', v::numericVal())->setName('First Name'), - v::key('user_surname', v::numericVal())->setName('Second Name'), - v::key('user_tel', v::phone())->setName('Phone number'), + v::key('user_name', v::numericVal())->setName('First Name'), + v::key('user_surname', v::numericVal())->setName('Second Name'), + v::key('user_tel', v::phone())->setName('Phone number'), ]; try { diff --git a/tests/integration/rules/beetwen_2.phpt b/tests/integration/rules/beetwen_2.phpt index 768f8754..eb1c7286 100644 --- a/tests/integration/rules/beetwen_2.phpt +++ b/tests/integration/rules/beetwen_2.phpt @@ -2,13 +2,14 @@ between(1, 2)->check(42); } catch (MaxException $e) { echo $e->getMainMessage().PHP_EOL; } +?> --EXPECTF-- 42 must be less than or equal to 2 diff --git a/tests/integration/rules/beetwen_3.phpt b/tests/integration/rules/beetwen_3.phpt index 77ec9073..c0b2733c 100644 --- a/tests/integration/rules/beetwen_3.phpt +++ b/tests/integration/rules/beetwen_3.phpt @@ -2,13 +2,14 @@ between(1, 2)->check(-42); } catch (MinException $e) { echo $e->getMainMessage().PHP_EOL; } +?> --EXPECTF-- -42 must be greater than or equal to 1 diff --git a/tests/integration/rules/beetwen_4.phpt b/tests/integration/rules/beetwen_4.phpt index 2eea7eb3..c441cdd5 100644 --- a/tests/integration/rules/beetwen_4.phpt +++ b/tests/integration/rules/beetwen_4.phpt @@ -2,13 +2,14 @@ assert('c'); } catch (AllOfException $e) { echo $e->getFullMessage(); } +?> --EXPECTF-- - "c" must be less than or equal to "b" diff --git a/tests/integration/rules/beetwen_5.phpt b/tests/integration/rules/beetwen_5.phpt index 17dbe825..c0045696 100644 --- a/tests/integration/rules/beetwen_5.phpt +++ b/tests/integration/rules/beetwen_5.phpt @@ -2,13 +2,14 @@ assert('a'); } catch (AllOfException $e) { echo $e->getFullMessage(); } +?> --EXPECTF-- - "a" must not be less than or equal to "b" diff --git a/tests/integration/rules/beetwen_6.phpt b/tests/integration/rules/beetwen_6.phpt index 4a001be9..d03a258a 100644 --- a/tests/integration/rules/beetwen_6.phpt +++ b/tests/integration/rules/beetwen_6.phpt @@ -2,13 +2,14 @@ between(1, 42))->assert(41); } catch (AllOfException $e) { echo $e->getFullMessage(); } +?> --EXPECTF-- - 41 must not be less than or equal to 42 diff --git a/tests/integration/rules/callableType_1.phpt b/tests/integration/rules/callableType_1.phpt index 22aa3ddb..a9a790f4 100644 --- a/tests/integration/rules/callableType_1.phpt +++ b/tests/integration/rules/callableType_1.phpt @@ -4,7 +4,7 @@ require 'vendor/autoload.php'; use Respect\Validation\Validator as v; -v::callableType()->validate(function () { +v::callableType()->validate(function (): void { }); v::callableType()->validate('trim'); v::callableType()->validate(v::callableType(), 'validate'); diff --git a/tests/integration/rules/callableType_4.phpt b/tests/integration/rules/callableType_4.phpt index 68cd404e..43981868 100644 --- a/tests/integration/rules/callableType_4.phpt +++ b/tests/integration/rules/callableType_4.phpt @@ -12,7 +12,7 @@ use Respect\Validation\Exceptions\CallableTypeException; use Respect\Validation\Validator as v; try { - $x = function () { + $x = function (): void { }; v::not(v::callableType())->check($x); } catch (CallableTypeException $e) { diff --git a/tests/integration/rules/cnpj_1.phpt b/tests/integration/rules/cnpj_1.phpt index dd079490..1aa2c13d 100644 --- a/tests/integration/rules/cnpj_1.phpt +++ b/tests/integration/rules/cnpj_1.phpt @@ -7,5 +7,5 @@ use Respect\Validation\Validator as v; v::cnpj()->check('53969447000130'); v::cnpj()->assert('53969447000130'); - ---EXPECTF--; \ No newline at end of file +?> +--EXPECTF--; diff --git a/tests/integration/rules/cnpj_2.phpt b/tests/integration/rules/cnpj_2.phpt index 8042e885..3d5b6af4 100644 --- a/tests/integration/rules/cnpj_2.phpt +++ b/tests/integration/rules/cnpj_2.phpt @@ -3,15 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\CnpjException; +use Respect\Validation\Validator as v; -try -{ - v::cnpj()->check('não cnpj'); +try { + v::cnpj()->check('não cnpj'); } catch (CnpjException $e) { - echo $e->getMainMessage(); + echo $e->getMainMessage(); } - +?> --EXPECTF--; -"não cnpj" must be a valid CNPJ number \ No newline at end of file +"não cnpj" must be a valid CNPJ number diff --git a/tests/integration/rules/cnpj_3.phpt b/tests/integration/rules/cnpj_3.phpt index 4c1cbcfc..1123cb92 100644 --- a/tests/integration/rules/cnpj_3.phpt +++ b/tests/integration/rules/cnpj_3.phpt @@ -3,14 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\AllOfException; +use Respect\Validation\Validator as v; -try -{ - v::cnpj()->assert('test'); +try { + v::cnpj()->assert('test'); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } +?> --EXPECTF-- -- "test" must be a valid CNPJ number \ No newline at end of file +- "test" must be a valid CNPJ number diff --git a/tests/integration/rules/cnpj_4.phpt b/tests/integration/rules/cnpj_4.phpt index 9161a283..34dffbbe 100644 --- a/tests/integration/rules/cnpj_4.phpt +++ b/tests/integration/rules/cnpj_4.phpt @@ -3,15 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\CnpjException; +use Respect\Validation\Validator as v; -try -{ - v::not(v::cnpj())->check('65.150.175/0001-20'); +try { + v::not(v::cnpj())->check('65.150.175/0001-20'); } catch (CnpjException $e) { - echo $e->getMainMessage(); + echo $e->getMainMessage(); } - +?> --EXPECTF-- -"65.150.175/0001-20" must not be a valid CNPJ number \ No newline at end of file +"65.150.175/0001-20" must not be a valid CNPJ number diff --git a/tests/integration/rules/cnpj_5.phpt b/tests/integration/rules/cnpj_5.phpt index 7bd14dad..90c6b79f 100644 --- a/tests/integration/rules/cnpj_5.phpt +++ b/tests/integration/rules/cnpj_5.phpt @@ -3,15 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\AllOfException; +use Respect\Validation\Validator as v; -try -{ - v::not(v::cnpj())->assert('65150175000120'); +try { + v::not(v::cnpj())->assert('65150175000120'); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } - +?> --EXPECTF-- -- "65150175000120" must not be a valid CNPJ number \ No newline at end of file +- "65150175000120" must not be a valid CNPJ number diff --git a/tests/integration/rules/cnpj_6.phpt b/tests/integration/rules/cnpj_6.phpt index 30b25dba..6f67df2e 100644 --- a/tests/integration/rules/cnpj_6.phpt +++ b/tests/integration/rules/cnpj_6.phpt @@ -3,15 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\AllOfException; +use Respect\Validation\Validator as v; -try -{ - v::cnpj()->digit()->assert('65.150.175/0001-20'); +try { + v::cnpj()->digit()->assert('65.150.175/0001-20'); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } - +?> --EXPECTF-- -- "65.150.175/0001-20" must contain only digits (0-9) \ No newline at end of file +- "65.150.175/0001-20" must contain only digits (0-9) diff --git a/tests/integration/rules/consonant_1.phpt b/tests/integration/rules/consonant_1.phpt index 64ec56de..dbc0f8e6 100644 --- a/tests/integration/rules/consonant_1.phpt +++ b/tests/integration/rules/consonant_1.phpt @@ -8,4 +8,5 @@ v::consonant()->check('bcd'); v::consonant()->assert('ddd'); v::not(v::consonant())->check('uou'); v::not(v::consonant())->assert('aaaaa'); +?> --EXPECTF-- diff --git a/tests/integration/rules/consonant_2.phpt b/tests/integration/rules/consonant_2.phpt index 4f587078..7177b093 100644 --- a/tests/integration/rules/consonant_2.phpt +++ b/tests/integration/rules/consonant_2.phpt @@ -2,13 +2,14 @@ check('top nos falsetes'); } catch (ConsonantException $e) { echo $e->getMainMessage(); } +?> --EXPECTF-- "top nos falsetes" must contain only consonants diff --git a/tests/integration/rules/consonant_3.phpt b/tests/integration/rules/consonant_3.phpt index ccb7554f..b535da20 100644 --- a/tests/integration/rules/consonant_3.phpt +++ b/tests/integration/rules/consonant_3.phpt @@ -2,13 +2,14 @@ check('ddd'); } catch (ConsonantException $e) { echo $e->getMainMessage(); } +?> --EXPECTF-- "ddd" must not contain consonants diff --git a/tests/integration/rules/consonant_4.phpt b/tests/integration/rules/consonant_4.phpt index 8112c010..279ccf36 100644 --- a/tests/integration/rules/consonant_4.phpt +++ b/tests/integration/rules/consonant_4.phpt @@ -2,13 +2,14 @@ assert('Jaspion'); } catch (AllOfException $e) { echo $e->getFullMessage(); } +?> --EXPECTF-- - "Jaspion" must contain only consonants diff --git a/tests/integration/rules/consonant_5.phpt b/tests/integration/rules/consonant_5.phpt index 8fff0e96..6052ab9f 100644 --- a/tests/integration/rules/consonant_5.phpt +++ b/tests/integration/rules/consonant_5.phpt @@ -2,13 +2,14 @@ assert('bb'); } catch (AllOfException $e) { echo $e->getFullMessage(); } +?> --EXPECTF-- - "bb" must not contain consonants diff --git a/tests/integration/rules/digit_1.phpt b/tests/integration/rules/digit_1.phpt index 155e22c5..b24118d2 100644 --- a/tests/integration/rules/digit_1.phpt +++ b/tests/integration/rules/digit_1.phpt @@ -6,5 +6,5 @@ use Respect\Validation\Validator as v; v::digit()->assert(1); v::digit()->check(1); - +?> --EXPECTF-- diff --git a/tests/integration/rules/digit_2.phpt b/tests/integration/rules/digit_2.phpt index 57ab5da8..0a42f733 100644 --- a/tests/integration/rules/digit_2.phpt +++ b/tests/integration/rules/digit_2.phpt @@ -2,14 +2,14 @@ check('a'); -} catch(DigitException $e) { - echo $e->getMainMessage(); + v::digit()->check('a'); +} catch (DigitException $e) { + echo $e->getMainMessage(); } - +?> --EXPECTF-- "a" must contain only digits (0-9) diff --git a/tests/integration/rules/digit_3.phpt b/tests/integration/rules/digit_3.phpt index bf9ed728..fd253137 100644 --- a/tests/integration/rules/digit_3.phpt +++ b/tests/integration/rules/digit_3.phpt @@ -2,14 +2,14 @@ assert('a'); -} catch(AllOfException $e) { - echo $e->getFullMessage(); + v::digit()->assert('a'); +} catch (AllOfException $e) { + echo $e->getFullMessage(); } - +?> --EXPECTF-- - "a" must contain only digits (0-9) diff --git a/tests/integration/rules/digit_4.phpt b/tests/integration/rules/digit_4.phpt index 8bd444eb..17ee5a2b 100644 --- a/tests/integration/rules/digit_4.phpt +++ b/tests/integration/rules/digit_4.phpt @@ -2,14 +2,14 @@ check(1); -} catch(DigitException $e) { - echo $e->getMainMessage(); + v::not(v::digit())->check(1); +} catch (DigitException $e) { + echo $e->getMainMessage(); } - +?> --EXPECTF-- 1 must not contain digits (0-9) diff --git a/tests/integration/rules/digit_5.phpt b/tests/integration/rules/digit_5.phpt index f3bd8d7a..ae2d4dc4 100644 --- a/tests/integration/rules/digit_5.phpt +++ b/tests/integration/rules/digit_5.phpt @@ -2,14 +2,14 @@ assert(1); -} catch(AllOfException $e) { - echo $e->getFullMessage(); + v::not(v::digit())->assert(1); +} catch (AllOfException $e) { + echo $e->getFullMessage(); } - +?> --EXPECTF-- - 1 must not contain digits (0-9) diff --git a/tests/integration/rules/identityCard_3.phpt b/tests/integration/rules/identityCard_3.phpt index 4d5cbd58..c0b18d07 100644 --- a/tests/integration/rules/identityCard_3.phpt +++ b/tests/integration/rules/identityCard_3.phpt @@ -3,13 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\AllOfException; +use Respect\Validation\Validator as v; try { - v::identityCard('PL')->assert('AYE205411'); + v::identityCard('PL')->assert('AYE205411'); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } +?> --EXPECTF-- - "AYE205411" must be a valid Polish Identity Card number diff --git a/tests/integration/rules/keyValue_3.phpt b/tests/integration/rules/keyValue_3.phpt index a4e6b450..86558065 100644 --- a/tests/integration/rules/keyValue_3.phpt +++ b/tests/integration/rules/keyValue_3.phpt @@ -2,18 +2,18 @@ 'shazam', - 'password_confirmation' => 'batman' -); +$data = [ + 'password' => 'shazam', + 'password_confirmation' => 'batman', +]; try { - v::keyValue('password', 'equals', 'password_confirmation')->assert($data); + v::keyValue('password', 'equals', 'password_confirmation')->assert($data); } catch (AllOfException $e) { - echo $e->getMainMessage(); + echo $e->getMainMessage(); } --EXPECTF-- All of the required rules must pass for { "password": "shazam", "password_confirmation": "batman" } \ No newline at end of file diff --git a/tests/integration/rules/keyValue_4.phpt b/tests/integration/rules/keyValue_4.phpt index 0a6f48d1..3e80b660 100644 --- a/tests/integration/rules/keyValue_4.phpt +++ b/tests/integration/rules/keyValue_4.phpt @@ -3,17 +3,16 @@ require 'vendor/autoload.php'; use Respect\Validation\Validator as v; -use Respect\Validation\Exceptions\KeyValuException; -$data = array( - 'password' => '123', - 'invalid_passwords' => array('123', 'secreta') -); +$data = [ + 'password' => '123', + 'invalid_passwords' => ['123', 'secreta'], +]; try { - v::not(v::keyValue('password', 'in', 'invalid_passwords'))->check($data); + v::not(v::keyValue('password', 'in', 'invalid_passwords'))->check($data); } catch (Exception $e) { - echo $e->getMainMessage(); + echo $e->getMainMessage(); } --EXPECTF-- Key { "password": "123", "invalid_passwords": { "123", "secreta" } } must not be present diff --git a/tests/integration/rules/keyValue_5.phpt b/tests/integration/rules/keyValue_5.phpt index 818882f8..932e22b6 100644 --- a/tests/integration/rules/keyValue_5.phpt +++ b/tests/integration/rules/keyValue_5.phpt @@ -2,18 +2,18 @@ '123', - 'invalid_passwords' => array('123', 'secreta') -); +$data = [ + 'password' => '123', + 'invalid_passwords' => ['123', 'secreta'], +]; try { - v::not(v::keyValue('password', 'in', 'invalid_passwords'))->assert($data); + v::not(v::keyValue('password', 'in', 'invalid_passwords'))->assert($data); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } --EXPECTF-- - Key { "password": "123", "invalid_passwords": { "123", "secreta" } } must not be present diff --git a/tests/integration/rules/objectType_3.phpt b/tests/integration/rules/objectType_3.phpt index 22b385a2..efb2cbcc 100644 --- a/tests/integration/rules/objectType_3.phpt +++ b/tests/integration/rules/objectType_3.phpt @@ -2,25 +2,14 @@ assert(new stdClass); -v::objectType()->check(new stdClass); -?> ---EXPECTF-- ---FILE-- -check(new stdClass); + v::not(v::objectType())->check(new stdClass()); } catch (ObjectTypeException $exception) { echo $exception->getMainMessage(); } - ?> --EXPECTF-- -`[object] (stdClass: { })` must not be an object \ No newline at end of file +`[object] (stdClass: { })` must not be an object diff --git a/tests/integration/rules/pesel_1.phpt b/tests/integration/rules/pesel_1.phpt index 949c52ba..cb3231cb 100644 --- a/tests/integration/rules/pesel_1.phpt +++ b/tests/integration/rules/pesel_1.phpt @@ -7,5 +7,5 @@ use Respect\Validation\Validator as v; v::pesel()->check('21120209256'); v::pesel()->assert('21120209256'); - ---EXPECTF--; \ No newline at end of file +?> +--EXPECTF--; diff --git a/tests/integration/rules/pesel_2.phpt b/tests/integration/rules/pesel_2.phpt index 8e2b44ee..1a690cfa 100644 --- a/tests/integration/rules/pesel_2.phpt +++ b/tests/integration/rules/pesel_2.phpt @@ -3,15 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\PeselException; +use Respect\Validation\Validator as v; -try -{ - v::pesel()->check('21120209251'); +try { + v::pesel()->check('21120209251'); } catch (PeselException $e) { - echo $e->getMainMessage(); + echo $e->getMainMessage(); } - +?> --EXPECTF--; -"21120209251" must be a valid PESEL \ No newline at end of file +"21120209251" must be a valid PESEL diff --git a/tests/integration/rules/pesel_3.phpt b/tests/integration/rules/pesel_3.phpt index 793aae0e..2c644320 100644 --- a/tests/integration/rules/pesel_3.phpt +++ b/tests/integration/rules/pesel_3.phpt @@ -3,14 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\AllOfException; +use Respect\Validation\Validator as v; -try -{ - v::pesel()->assert('21120209251'); +try { + v::pesel()->assert('21120209251'); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } +?> --EXPECTF-- -- "21120209251" must be a valid PESEL \ No newline at end of file +- "21120209251" must be a valid PESEL diff --git a/tests/integration/rules/pesel_4.phpt b/tests/integration/rules/pesel_4.phpt index af12dcf9..9b545ae8 100644 --- a/tests/integration/rules/pesel_4.phpt +++ b/tests/integration/rules/pesel_4.phpt @@ -3,15 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\PeselException; +use Respect\Validation\Validator as v; -try -{ - v::not(v::pesel())->check('21120209256'); +try { + v::not(v::pesel())->check('21120209256'); } catch (PeselException $e) { - echo $e->getMainMessage(); + echo $e->getMainMessage(); } - +?> --EXPECTF-- -"21120209256" must not be a valid PESEL \ No newline at end of file +"21120209256" must not be a valid PESEL diff --git a/tests/integration/rules/pesel_5.phpt b/tests/integration/rules/pesel_5.phpt index 33373177..e60b6a2a 100644 --- a/tests/integration/rules/pesel_5.phpt +++ b/tests/integration/rules/pesel_5.phpt @@ -3,15 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\AllOfException; +use Respect\Validation\Validator as v; -try -{ - v::not(v::pesel())->assert('21120209256'); +try { + v::not(v::pesel())->assert('21120209256'); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } - +?> --EXPECTF-- -- "21120209256" must not be a valid PESEL \ No newline at end of file +- "21120209256" must not be a valid PESEL diff --git a/tests/integration/rules/vatin_3.phpt b/tests/integration/rules/vatin_3.phpt index 81f1fb0c..8ac39fe3 100644 --- a/tests/integration/rules/vatin_3.phpt +++ b/tests/integration/rules/vatin_3.phpt @@ -3,13 +3,14 @@ require_once 'vendor/autoload.php'; -use Respect\Validation\Validator as v; use Respect\Validation\Exceptions\AllOfException; +use Respect\Validation\Validator as v; try { - v::vatin('PL')->assert('1645865778'); + v::vatin('PL')->assert('1645865778'); } catch (AllOfException $e) { - echo $e->getFullMessage(); + echo $e->getFullMessage(); } +?> --EXPECTF-- - "1645865778" must be a valid Polish VAT identification number diff --git a/tests/library/Rules/RuleTestCase.php b/tests/library/Rules/RuleTestCase.php index c768cfbe..6f9c606f 100644 --- a/tests/library/Rules/RuleTestCase.php +++ b/tests/library/Rules/RuleTestCase.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -81,7 +83,7 @@ abstract class RuleTestCase extends TestCase * @param Validatable $validator * @param mixed $input */ - public function testShouldValidateValidInput(Validatable $validator, $input) + public function testShouldValidateValidInput(Validatable $validator, $input): void { self::assertTrue($validator->validate($input)); } @@ -92,7 +94,7 @@ abstract class RuleTestCase extends TestCase * @param Validatable $validator * @param mixed $input */ - public function testShouldValidateInvalidInput(Validatable $validator, $input) + public function testShouldValidateInvalidInput(Validatable $validator, $input): void { self::assertFalse($validator->validate($input)); } diff --git a/tests/unit/Exceptions/CheckExceptionsTest.php b/tests/unit/Exceptions/CheckExceptionsTest.php index cc089062..5818251f 100644 --- a/tests/unit/Exceptions/CheckExceptionsTest.php +++ b/tests/unit/Exceptions/CheckExceptionsTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; use DirectoryIterator; @@ -31,7 +33,7 @@ class CheckExceptionsTest extends TestCase $ruleName = mb_substr($fileInfo->getBasename(), 0, -4); $ruleIsDeprecated = in_array($ruleName, $this->deprecateds); - $isRuleClassFile = (bool) ($fileInfo->getExtension() !== 'php'); + $isRuleClassFile = (bool) ('php' !== $fileInfo->getExtension()); if ($ruleIsDeprecated || $isRuleClassFile) { continue; } @@ -51,7 +53,7 @@ class CheckExceptionsTest extends TestCase /** * @dataProvider provideListOfRuleNames */ - public function testRuleHasAnExceptionWhichHasValidApi($ruleName) + public function testRuleHasAnExceptionWhichHasValidApi($ruleName): void { $exceptionClass = 'Respect\\Validation\\Exceptions\\'.$ruleName.'Exception'; self::assertTrue( diff --git a/tests/unit/Exceptions/NestedValidationExceptionTest.php b/tests/unit/Exceptions/NestedValidationExceptionTest.php index 7bd56c1e..3c14fa7b 100644 --- a/tests/unit/Exceptions/NestedValidationExceptionTest.php +++ b/tests/unit/Exceptions/NestedValidationExceptionTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class PrivateNestedValidationException extends NestedValidationException class NestedValidationExceptionTest extends TestCase { - public function testGetRelatedShouldReturnExceptionAddedByAddRelated() + public function testGetRelatedShouldReturnExceptionAddedByAddRelated(): void { $composite = new AttributeException(); $node = new IntValException(); @@ -32,7 +34,7 @@ class NestedValidationExceptionTest extends TestCase self::assertContainsOnly($node, $composite->getRelated()); } - public function testAddingTheSameInstanceShouldAddJustASingleReference() + public function testAddingTheSameInstanceShouldAddJustASingleReference(): void { $composite = new AttributeException(); $node = new IntValException(); @@ -43,7 +45,7 @@ class NestedValidationExceptionTest extends TestCase self::assertContainsOnly($node, $composite->getRelated()); } - public function testFindRelatedShouldFindCompositeExceptions() + public function testFindRelatedShouldFindCompositeExceptions(): void { $foo = new AttributeException(); $bar = new AttributeException(); diff --git a/tests/unit/Exceptions/ValidationExceptionTest.php b/tests/unit/Exceptions/ValidationExceptionTest.php index 61bd46ca..5496684a 100644 --- a/tests/unit/Exceptions/ValidationExceptionTest.php +++ b/tests/unit/Exceptions/ValidationExceptionTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Exceptions; use ArrayIterator; @@ -20,7 +22,7 @@ use stdClass; class ValidationExceptionTest extends TestCase { - public function testItImplementsExceptionInterface() + public function testItImplementsExceptionInterface(): void { $validationException = new ValidationException(); self::assertInstanceOf(ExceptionInterface::class, $validationException); @@ -29,7 +31,7 @@ class ValidationExceptionTest extends TestCase /** * @dataProvider providerForFormat */ - public function testFormatShouldReplacePlaceholdersProperly($template, $result, $vars) + public function testFormatShouldReplacePlaceholdersProperly($template, $result, $vars): void { self::assertEquals( $result, @@ -40,7 +42,7 @@ class ValidationExceptionTest extends TestCase /** * @dataProvider providerForStringify */ - public function testStringifyShouldConvertStringsProperly($input, $result) + public function testStringifyShouldConvertStringsProperly($input, $result): void { self::assertStringMatchesFormat( $result, @@ -48,7 +50,7 @@ class ValidationExceptionTest extends TestCase ); } - public function testGetMainMessageShouldApplyTemplatePlaceholders() + public function testGetMainMessageShouldApplyTemplatePlaceholders(): void { $sampleValidationException = new ValidationException(); $sampleValidationException->configure('foo', ['bar' => 1, 'baz' => 2]); @@ -59,7 +61,7 @@ class ValidationExceptionTest extends TestCase ); } - public function testSettingTemplates() + public function testSettingTemplates(): void { $x = new ValidationException(); $x->configure('bar'); diff --git a/tests/unit/FactoryTest.php b/tests/unit/FactoryTest.php index 1965b881..0653eb06 100644 --- a/tests/unit/FactoryTest.php +++ b/tests/unit/FactoryTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation; use PHPUnit\Framework\TestCase; @@ -19,7 +21,7 @@ use Respect\Validation\Rules\Uppercase; */ class FactoryTest extends TestCase { - public function testShouldHaveRulePrefixesByDefault() + public function testShouldHaveRulePrefixesByDefault(): void { $factory = new Factory(); @@ -29,7 +31,7 @@ class FactoryTest extends TestCase /** * @dataProvider provideRulePrefixes */ - public function testShouldBeAbleToAppendANewPrefix($namespace, $expectedNamespace) + public function testShouldBeAbleToAppendANewPrefix($namespace, $expectedNamespace): void { $factory = new Factory(); $factory->appendRulePrefix($namespace); @@ -51,7 +53,7 @@ class FactoryTest extends TestCase /** * @dataProvider provideRulePrefixes */ - public function testShouldBeAbleToPrependANewRulePrefix($namespace, $expectedNamespace) + public function testShouldBeAbleToPrependANewRulePrefix($namespace, $expectedNamespace): void { $factory = new Factory(); $factory->prependRulePrefix($namespace); @@ -84,14 +86,14 @@ class FactoryTest extends TestCase ]; } - public function testShouldCreateARuleByName() + public function testShouldCreateARuleByName(): void { $factory = new Factory(); self::assertInstanceOf(Uppercase::class, $factory->rule('uppercase')); } - public function testShouldDefineConstructorArgumentsWhenCreatingARule() + public function testShouldDefineConstructorArgumentsWhenCreatingARule(): void { $factory = new Factory(); $rule = $factory->rule('dateTime', ['Y-m-d']); @@ -103,7 +105,7 @@ class FactoryTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "uterere" is not a valid rule name */ - public function testShouldThrowsAnExceptionWhenRuleNameIsNotValid() + public function testShouldThrowsAnExceptionWhenRuleNameIsNotValid(): void { $factory = new Factory(); $factory->rule('uterere'); @@ -113,7 +115,7 @@ class FactoryTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "Respect\Validation\Exceptions\AgeException" is not a valid respect rule */ - public function testShouldThrowsAnExceptionWhenRuleIsNotInstanceOfRuleInterface() + public function testShouldThrowsAnExceptionWhenRuleIsNotInstanceOfRuleInterface(): void { $factory = new Factory(); $factory->appendRulePrefix('Respect\\Validation\\Exceptions\\'); diff --git a/tests/unit/Rules/AbstractCompositeTest.php b/tests/unit/Rules/AbstractCompositeTest.php index 9ee4e0f8..d3627740 100644 --- a/tests/unit/Rules/AbstractCompositeTest.php +++ b/tests/unit/Rules/AbstractCompositeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -16,7 +18,7 @@ use Respect\Validation\Validatable; class AbstractCompositeTest extends TestCase { - public function testShouldDefineNameForInternalWhenAppendRuleToCompositeRule() + public function testShouldDefineNameForInternalWhenAppendRuleToCompositeRule(): void { $ruleName = 'something'; @@ -38,7 +40,7 @@ class AbstractCompositeTest extends TestCase $compositeRuleMock->addRule($simpleRuleMock); } - public function testShouldUpdateInternalRuleNameWhenNameIsUpdated() + public function testShouldUpdateInternalRuleNameWhenNameIsUpdated(): void { $ruleName1 = 'something'; $ruleName2 = 'something else'; @@ -70,7 +72,7 @@ class AbstractCompositeTest extends TestCase $compositeRuleMock->setName($ruleName2); } - public function testShouldNotUpdateInternalRuleAlreadyHasAName() + public function testShouldNotUpdateInternalRuleAlreadyHasAName(): void { $simpleRuleMock = $this->createMock(Validatable::class); $simpleRuleMock @@ -89,7 +91,7 @@ class AbstractCompositeTest extends TestCase $compositeRuleMock->setName('Whatever'); } - public function testShouldUpdateInternalRuleWhenItsNameIsNull() + public function testShouldUpdateInternalRuleWhenItsNameIsNull(): void { $ruleName = 'something'; @@ -111,7 +113,7 @@ class AbstractCompositeTest extends TestCase $compositeRuleMock->setName($ruleName); } - public function testShouldDefineNameForInternalRulesWhenItHasNotAName() + public function testShouldDefineNameForInternalRulesWhenItHasNotAName(): void { $ruleName = 'something'; @@ -133,7 +135,7 @@ class AbstractCompositeTest extends TestCase $compositeRuleMock->setName($ruleName); } - public function testShouldNotDefineNameForInternalRulesWhenItHasAName() + public function testShouldNotDefineNameForInternalRulesWhenItHasAName(): void { $ruleName = 'something'; @@ -154,7 +156,7 @@ class AbstractCompositeTest extends TestCase $compositeRuleMock->setName($ruleName); } - public function testRemoveRulesShouldRemoveAllTheAddedRules() + public function testRemoveRulesShouldRemoveAllTheAddedRules(): void { $simpleRuleMock = $this->createMock(Validatable::class); @@ -165,7 +167,7 @@ class AbstractCompositeTest extends TestCase self::assertEmpty($compositeRuleMock->getRules()); } - public function testShouldReturnTheAmountOfAddedRules() + public function testShouldReturnTheAmountOfAddedRules(): void { $compositeRuleMock = $this->getMockForAbstractClass(AbstractComposite::class); $compositeRuleMock->addRule($this->createMock(Validatable::class)); @@ -175,14 +177,14 @@ class AbstractCompositeTest extends TestCase self::assertCount(3, $compositeRuleMock->getRules()); } - public function testHasRuleShouldReturnFalseWhenThereIsNoRuleAppended() + public function testHasRuleShouldReturnFalseWhenThereIsNoRuleAppended(): void { $compositeRuleMock = $this->getMockForAbstractClass(AbstractComposite::class); self::assertFalse($compositeRuleMock->hasRule('')); } - public function testHasRuleShouldReturnFalseWhenRuleIsNotFound() + public function testHasRuleShouldReturnFalseWhenRuleIsNotFound(): void { $oneSimpleRuleMock = $this->createMock(Validatable::class); @@ -194,7 +196,7 @@ class AbstractCompositeTest extends TestCase self::assertFalse($compositeRuleMock->hasRule($anotherSimpleRuleMock)); } - public function testHasRuleShouldReturnFalseWhenRulePassedAsStringIsNotFound() + public function testHasRuleShouldReturnFalseWhenRulePassedAsStringIsNotFound(): void { $simpleRuleMock = $this->createMock(Validatable::class); @@ -204,7 +206,7 @@ class AbstractCompositeTest extends TestCase self::assertFalse($compositeRuleMock->hasRule('SomeRule')); } - public function testHasRuleShouldReturnTrueWhenRuleIsFound() + public function testHasRuleShouldReturnTrueWhenRuleIsFound(): void { $simpleRuleMock = $this->createMock(Validatable::class); @@ -214,7 +216,7 @@ class AbstractCompositeTest extends TestCase self::assertTrue($compositeRuleMock->hasRule($simpleRuleMock)); } - public function testShouldAddRulesByPassingThroughConstructor() + public function testShouldAddRulesByPassingThroughConstructor(): void { $simpleRuleMock = $this->createMock(Validatable::class); $anotherSimpleRuleMock = $this->createMock(Validatable::class); diff --git a/tests/unit/Rules/AbstractCtypeRuleTest.php b/tests/unit/Rules/AbstractCtypeRuleTest.php index 122b143b..96b849f0 100644 --- a/tests/unit/Rules/AbstractCtypeRuleTest.php +++ b/tests/unit/Rules/AbstractCtypeRuleTest.php @@ -9,13 +9,15 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; class AbstractCtypeRuleTest extends TestCase { - public function testValidateCleanShouldReturnTrueWhenCtypeFunctionReturnsTrue() + public function testValidateCleanShouldReturnTrueWhenCtypeFunctionReturnsTrue(): void { $ctypeRuleMock = $this->getMockForAbstractClass(AbstractCtypeRule::class); $ctypeRuleMock->expects($this->once()) @@ -25,7 +27,7 @@ class AbstractCtypeRuleTest extends TestCase self::assertTrue($ctypeRuleMock->validateClean('anything')); } - public function testValidateCleanShouldReturnFalseWhenCtypeFunctionReturnsFalse() + public function testValidateCleanShouldReturnFalseWhenCtypeFunctionReturnsFalse(): void { $ctypeRuleMock = $this->getMockForAbstractClass(AbstractCtypeRule::class); $ctypeRuleMock->expects($this->once()) diff --git a/tests/unit/Rules/AbstractFilterRuleTest.php b/tests/unit/Rules/AbstractFilterRuleTest.php index 3776617e..0a0fc006 100644 --- a/tests/unit/Rules/AbstractFilterRuleTest.php +++ b/tests/unit/Rules/AbstractFilterRuleTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -19,12 +21,12 @@ class AbstractFilterRuleTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage Invalid list of additional characters to be loaded */ - public function testConstructorShouldThrowExceptionIfParamIsNotString() + public function testConstructorShouldThrowExceptionIfParamIsNotString(): void { $this->getMockForAbstractClass(AbstractFilterRule::class, [1]); } - public function testValidateShouldReturnTrueForValidArguments() + public function testValidateShouldReturnTrueForValidArguments(): void { $filterRuleMock = $this->getMockForAbstractClass(AbstractFilterRule::class); $filterRuleMock->expects($this->any()) @@ -34,7 +36,7 @@ class AbstractFilterRuleTest extends TestCase self::assertTrue($filterRuleMock->validate('hey')); } - public function testValidateShouldReturnFalseForInvalidArguments() + public function testValidateShouldReturnFalseForInvalidArguments(): void { $filterRuleMock = $this->getMockForAbstractClass(AbstractFilterRule::class); $filterRuleMock->expects($this->any()) diff --git a/tests/unit/Rules/AbstractRegexRuleTest.php b/tests/unit/Rules/AbstractRegexRuleTest.php index ba95ab60..4cbc8023 100644 --- a/tests/unit/Rules/AbstractRegexRuleTest.php +++ b/tests/unit/Rules/AbstractRegexRuleTest.php @@ -9,13 +9,15 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; class AbstractRegexRuleTest extends TestCase { - public function testValidateCleanShouldReturnOneIfPatternIsFound() + public function testValidateCleanShouldReturnOneIfPatternIsFound(): void { $regexRuleMock = $this->getMockForAbstractClass(AbstractRegexRule::class); $regexRuleMock->expects($this->once()) @@ -25,7 +27,7 @@ class AbstractRegexRuleTest extends TestCase self::assertEquals(1, $regexRuleMock->validateClean('Respect')); } - public function testValidateCleanShouldReturnZeroIfPatternIsNotFound() + public function testValidateCleanShouldReturnZeroIfPatternIsNotFound(): void { $regexRuleMock = $this->getMockForAbstractClass(AbstractRegexRule::class); $regexRuleMock->expects($this->once()) diff --git a/tests/unit/Rules/AbstractRelatedTest.php b/tests/unit/Rules/AbstractRelatedTest.php index 9d9b9544..e20c69d8 100644 --- a/tests/unit/Rules/AbstractRelatedTest.php +++ b/tests/unit/Rules/AbstractRelatedTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -25,7 +27,7 @@ final class AbstractRelatedTest extends TestCase ]; } - public function testConstructionOfAbstractRelatedClass() + public function testConstructionOfAbstractRelatedClass(): void { $validatableMock = $this->createMock(Validatable::class); $relatedRuleMock = $this->getMockForAbstractClass(AbstractRelated::class, ['foo', $validatableMock]); @@ -39,7 +41,7 @@ final class AbstractRelatedTest extends TestCase /** * @dataProvider providerForOperations */ - public function testOperationsShouldReturnTrueWhenReferenceValidatesItsValue($method) + public function testOperationsShouldReturnTrueWhenReferenceValidatesItsValue($method): void { $validatableMock = $this->createMock(Validatable::class); $validatableMock->expects($this->any()) @@ -54,7 +56,7 @@ final class AbstractRelatedTest extends TestCase self::assertTrue($relatedRuleMock->$method('foo')); } - public function testValidateShouldReturnFalseWhenIsMandatoryAndThereIsNoReference() + public function testValidateShouldReturnFalseWhenIsMandatoryAndThereIsNoReference(): void { $relatedRuleMock = $this->getMockForAbstractClass(AbstractRelated::class, ['foo']); $relatedRuleMock->expects($this->any()) @@ -64,7 +66,7 @@ final class AbstractRelatedTest extends TestCase self::assertFalse($relatedRuleMock->validate('foo')); } - public function testShouldAcceptReferenceOnConstructor() + public function testShouldAcceptReferenceOnConstructor(): void { $reference = 'something'; @@ -76,7 +78,7 @@ final class AbstractRelatedTest extends TestCase self::assertSame($reference, $abstractMock->reference); } - public function testShouldBeMandatoryByDefault() + public function testShouldBeMandatoryByDefault(): void { $abstractMock = $this ->getMockBuilder(AbstractRelated::class) @@ -86,7 +88,7 @@ final class AbstractRelatedTest extends TestCase self::assertTrue($abstractMock->mandatory); } - public function testShouldAcceptReferenceAndRuleOnConstructor() + public function testShouldAcceptReferenceAndRuleOnConstructor(): void { $ruleMock = $this->createMock(Validatable::class); @@ -98,7 +100,7 @@ final class AbstractRelatedTest extends TestCase self::assertSame($ruleMock, $abstractMock->validator); } - public function testShouldDefineRuleNameAsReferenceWhenRuleDoesNotHaveAName() + public function testShouldDefineRuleNameAsReferenceWhenRuleDoesNotHaveAName(): void { $reference = 'something'; @@ -120,7 +122,7 @@ final class AbstractRelatedTest extends TestCase self::assertSame($ruleMock, $abstractMock->validator); } - public function testShouldNotDefineRuleNameAsReferenceWhenRuleDoesHaveAName() + public function testShouldNotDefineRuleNameAsReferenceWhenRuleDoesHaveAName(): void { $reference = 'something'; @@ -141,7 +143,7 @@ final class AbstractRelatedTest extends TestCase self::assertSame($ruleMock, $abstractMock->validator); } - public function testShouldAcceptMandatoryFlagOnConstructor() + public function testShouldAcceptMandatoryFlagOnConstructor(): void { $mandatory = false; @@ -153,7 +155,7 @@ final class AbstractRelatedTest extends TestCase self::assertSame($mandatory, $abstractMock->mandatory); } - public function testShouldDefineChildNameWhenDefiningTheNameOfTheParent() + public function testShouldDefineChildNameWhenDefiningTheNameOfTheParent(): void { $name = 'My new name'; $reference = 'something'; diff --git a/tests/unit/Rules/AbstractRuleTest.php b/tests/unit/Rules/AbstractRuleTest.php index 1f97d124..ed3c26a9 100644 --- a/tests/unit/Rules/AbstractRuleTest.php +++ b/tests/unit/Rules/AbstractRuleTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -28,7 +30,7 @@ class AbstractRuleTest extends TestCase * @dataProvider providerForTrueAndFalse * @covers \Respect\Validation\Rules\AbstractRule::__invoke */ - public function testMagicMethodInvokeCallsValidateWithInput($booleanResult) + public function testMagicMethodInvokeCallsValidateWithInput($booleanResult): void { $input = 'something'; @@ -54,7 +56,7 @@ class AbstractRuleTest extends TestCase /** * @covers \Respect\Validation\Rules\AbstractRule::assert */ - public function testAssertInvokesValidateOnSuccess() + public function testAssertInvokesValidateOnSuccess(): void { $input = 'something'; @@ -80,7 +82,7 @@ class AbstractRuleTest extends TestCase * @covers \Respect\Validation\Rules\AbstractRule::assert * @expectedException \Respect\Validation\Exceptions\ValidationException */ - public function testAssertInvokesValidateAndReportErrorOnFailure() + public function testAssertInvokesValidateAndReportErrorOnFailure(): void { $input = 'something'; @@ -107,7 +109,7 @@ class AbstractRuleTest extends TestCase /** * @covers \Respect\Validation\Rules\AbstractRule::check */ - public function testCheckInvokesAssertToPerformTheValidationByDefault() + public function testCheckInvokesAssertToPerformTheValidationByDefault(): void { $input = 'something'; @@ -153,7 +155,7 @@ class AbstractRuleTest extends TestCase * @covers \Respect\Validation\Rules\AbstractRule::reportError * @covers \Respect\Validation\Rules\AbstractRule::setTemplate */ - public function testShouldUseDefinedTemplateOnCreatedException() + public function testShouldUseDefinedTemplateOnCreatedException(): void { $template = 'This is my template'; @@ -184,7 +186,7 @@ class AbstractRuleTest extends TestCase /** * @covers \Respect\Validation\Rules\AbstractRule::setTemplate */ - public function testShouldReturnTheCurrentObjectWhenDefinigTemplate() + public function testShouldReturnTheCurrentObjectWhenDefinigTemplate(): void { $abstractRuleMock = $this ->getMockBuilder(AbstractRule::class) @@ -196,7 +198,7 @@ class AbstractRuleTest extends TestCase /** * @covers \Respect\Validation\Rules\AbstractRule::setName */ - public function testShouldReturnTheCurrentObjectWhenDefinigName() + public function testShouldReturnTheCurrentObjectWhenDefinigName(): void { $abstractRuleMock = $this ->getMockBuilder(AbstractRule::class) @@ -209,7 +211,7 @@ class AbstractRuleTest extends TestCase * @covers \Respect\Validation\Rules\AbstractRule::setName * @covers \Respect\Validation\Rules\AbstractRule::getName */ - public function testShouldBeAbleToDefineAndRetrivedRuleName() + public function testShouldBeAbleToDefineAndRetrivedRuleName(): void { $abstractRuleMock = $this ->getMockBuilder(AbstractRule::class) diff --git a/tests/unit/Rules/AbstractSearcherTest.php b/tests/unit/Rules/AbstractSearcherTest.php index b1d20dee..ce012b75 100644 --- a/tests/unit/Rules/AbstractSearcherTest.php +++ b/tests/unit/Rules/AbstractSearcherTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -17,12 +19,12 @@ class AbstractSearcherTest extends TestCase { protected $searcherRuleMock; - protected function setUp() + protected function setUp(): void { $this->searcherRuleMock = $this->getMockForAbstractClass(AbstractSearcher::class); } - public function testValidateShouldReturnTrueWhenEqualValueIsFoundInHaystack() + public function testValidateShouldReturnTrueWhenEqualValueIsFoundInHaystack(): void { $this->searcherRuleMock->haystack = [1, 2, 3, 4]; @@ -30,14 +32,14 @@ class AbstractSearcherTest extends TestCase self::assertTrue($this->searcherRuleMock->validate(1)); } - public function testValidateShouldReturnFalseWhenEqualValueIsNotFoundInHaystack() + public function testValidateShouldReturnFalseWhenEqualValueIsNotFoundInHaystack(): void { $this->searcherRuleMock->haystack = [1, 2, 3, 4]; self::assertFalse($this->searcherRuleMock->validate(5)); } - public function testValidateShouldReturnTrueWhenIdenticalValueIsFoundInHaystack() + public function testValidateShouldReturnTrueWhenIdenticalValueIsFoundInHaystack(): void { $this->searcherRuleMock->haystack = [1, 2, 3, 4]; $this->searcherRuleMock->compareIdentical = true; @@ -46,7 +48,7 @@ class AbstractSearcherTest extends TestCase self::assertTrue($this->searcherRuleMock->validate(4)); } - public function testValidateShouldReturnFalseWhenIdenticalValueIsNotFoundInHaystack() + public function testValidateShouldReturnFalseWhenIdenticalValueIsNotFoundInHaystack(): void { $this->searcherRuleMock->haystack = [1, 2, 3, 4]; $this->searcherRuleMock->compareIdentical = true; @@ -56,7 +58,7 @@ class AbstractSearcherTest extends TestCase self::assertFalse($this->searcherRuleMock->validate(5)); } - public function testValidateShouldReturnTrueWhenInputIsEmptyOrNullAndIdenticalToHaystack() + public function testValidateShouldReturnTrueWhenInputIsEmptyOrNullAndIdenticalToHaystack(): void { $this->searcherRuleMock->compareIdentical = true; @@ -67,7 +69,7 @@ class AbstractSearcherTest extends TestCase self::assertTrue($this->searcherRuleMock->validate('')); } - public function testValidateShouldReturnFalseWhenInputIsEmptyOrNullAndNotIdenticalToHaystack() + public function testValidateShouldReturnFalseWhenInputIsEmptyOrNullAndNotIdenticalToHaystack(): void { $this->searcherRuleMock->compareIdentical = true; @@ -78,13 +80,13 @@ class AbstractSearcherTest extends TestCase self::assertFalse($this->searcherRuleMock->validate(null)); } - public function testValidateShouldReturnTrueWhenInputIsEmptyOrNullAndEqualsHaystack() + public function testValidateShouldReturnTrueWhenInputIsEmptyOrNullAndEqualsHaystack(): void { self::assertTrue($this->searcherRuleMock->validate('')); self::assertTrue($this->searcherRuleMock->validate(null)); } - public function testValidateShouldReturnFalseWhenInputIsEmptyOrNullAndNotEqualsHaystack() + public function testValidateShouldReturnFalseWhenInputIsEmptyOrNullAndNotEqualsHaystack(): void { $this->searcherRuleMock->haystack = 'Respect'; @@ -92,7 +94,7 @@ class AbstractSearcherTest extends TestCase self::assertFalse($this->searcherRuleMock->validate(null)); } - public function testValidateWhenHaystackIsNotArrayAndInputIsPartOfHaystack() + public function testValidateWhenHaystackIsNotArrayAndInputIsPartOfHaystack(): void { $this->searcherRuleMock->haystack = 'Respect'; diff --git a/tests/unit/Rules/AbstractWrapperTest.php b/tests/unit/Rules/AbstractWrapperTest.php index c409797a..558a12b6 100644 --- a/tests/unit/Rules/AbstractWrapperTest.php +++ b/tests/unit/Rules/AbstractWrapperTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -21,13 +23,13 @@ class AbstractWrapperTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage There is no defined validatable */ - public function testShouldThrowsAnExceptionWhenWrappedValidatableIsNotDefined() + public function testShouldThrowsAnExceptionWhenWrappedValidatableIsNotDefined(): void { $wrapper = $this->getMockForAbstractClass(AbstractWrapper::class); $wrapper->getValidatable(); } - private function bindValidatable($wrapper, $validatable) + private function bindValidatable($wrapper, $validatable): void { $reflectionObject = new ReflectionObject($wrapper); $reflectionProperty = $reflectionObject->getProperty('validatable'); @@ -35,7 +37,7 @@ class AbstractWrapperTest extends TestCase $reflectionProperty->setValue($wrapper, $validatable); } - public function testShouldReturnDefinedValidatable() + public function testShouldReturnDefinedValidatable(): void { $validatable = $this->createMock(Validatable::class); @@ -45,7 +47,7 @@ class AbstractWrapperTest extends TestCase self::assertSame($validatable, $wrapper->getValidatable()); } - public function testShouldUseWrappedToValidate() + public function testShouldUseWrappedToValidate(): void { $input = 'Whatever'; @@ -62,7 +64,7 @@ class AbstractWrapperTest extends TestCase self::assertTrue($wrapper->validate($input)); } - public function testShouldUseWrappedToAssert() + public function testShouldUseWrappedToAssert(): void { $input = 'Whatever'; @@ -79,7 +81,7 @@ class AbstractWrapperTest extends TestCase self::assertTrue($wrapper->assert($input)); } - public function testShouldUseWrappedToCheck() + public function testShouldUseWrappedToCheck(): void { $input = 'Whatever'; @@ -96,7 +98,7 @@ class AbstractWrapperTest extends TestCase self::assertTrue($wrapper->check($input)); } - public function testShouldPassNameOnToWrapped() + public function testShouldPassNameOnToWrapped(): void { $name = 'Whatever'; diff --git a/tests/unit/Rules/AgeTest.php b/tests/unit/Rules/AgeTest.php index 62d2e266..91be5ae3 100644 --- a/tests/unit/Rules/AgeTest.php +++ b/tests/unit/Rules/AgeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTime; @@ -25,15 +27,16 @@ class AgeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage An age interval must be provided */ - public function testShouldThrowsExceptionWhenThereIsNoArgumentsOnConstructor() + public function testShouldThrowsExceptionWhenThereIsNoArgumentsOnConstructor(): void { new Age(); } + /** * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage 20 cannot be greater than or equals to 10 */ - public function testShouldThrowsExceptionWhenMinimumAgeIsLessThenMaximumAge() + public function testShouldThrowsExceptionWhenMinimumAgeIsLessThenMaximumAge(): void { new Age(20, 10); } @@ -42,7 +45,7 @@ class AgeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage 20 cannot be greater than or equals to 20 */ - public function testShouldThrowsExceptionWhenMinimumAgeIsEqualsToMaximumAge() + public function testShouldThrowsExceptionWhenMinimumAgeIsEqualsToMaximumAge(): void { new Age(20, 20); } @@ -70,7 +73,7 @@ class AgeTest extends TestCase /** * @dataProvider providerForValidAge */ - public function testShouldValidateValidAge($minAge, $maxAge, $input) + public function testShouldValidateValidAge($minAge, $maxAge, $input): void { $rule = new Age($minAge, $maxAge); @@ -96,7 +99,7 @@ class AgeTest extends TestCase /** * @dataProvider providerForInvalidAge */ - public function testShouldValidateInvalidAge($minAge, $maxAge, $input) + public function testShouldValidateInvalidAge($minAge, $maxAge, $input): void { $rule = new Age($minAge, $maxAge); @@ -109,7 +112,7 @@ class AgeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\AgeException * @expectedExceptionMessage "today" must be lower than 18 years ago */ - public function testShouldThrowsExceptionWhenMinimumAgeFails() + public function testShouldThrowsExceptionWhenMinimumAgeFails(): void { $rule = new Age(18); $rule->assert('today'); @@ -121,7 +124,7 @@ class AgeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\AgeException * @expectedExceptionMessage "51 years ago" must be greater than 50 years ago */ - public function testShouldThrowsExceptionWhenMaximunAgeFails() + public function testShouldThrowsExceptionWhenMaximunAgeFails(): void { $rule = new Age(null, 50); $rule->assert('51 years ago'); @@ -133,7 +136,7 @@ class AgeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\AgeException * @expectedExceptionMessage "today" must be between 18 and 50 years ago */ - public function testShouldThrowsExceptionWhenMinimunAndMaximunAgeFails() + public function testShouldThrowsExceptionWhenMinimunAndMaximunAgeFails(): void { $rule = new Age(18, 50); $rule->assert('today'); diff --git a/tests/unit/Rules/AllOfTest.php b/tests/unit/Rules/AllOfTest.php index 6f0809e8..7fca7bff 100644 --- a/tests/unit/Rules/AllOfTest.php +++ b/tests/unit/Rules/AllOfTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,14 +22,14 @@ use PHPUnit\Framework\TestCase; */ class AllOfTest extends TestCase { - public function testRemoveRulesShouldRemoveAllRules() + public function testRemoveRulesShouldRemoveAllRules(): void { $o = new AllOf(new IntVal(), new Positive()); $o->removeRules(); self::assertEquals(0, count($o->getRules())); } - public function testAddRulesUsingArrayOfRules() + public function testAddRulesUsingArrayOfRules(): void { $o = new AllOf(); $o->addRules( @@ -39,14 +41,14 @@ class AllOfTest extends TestCase self::assertTrue($o->hasRule('Positive')); } - public function testAddRulesUsingSpecificationArray() + public function testAddRulesUsingSpecificationArray(): void { $o = new AllOf(); $o->addRules(['Between' => [1, 2]]); self::assertTrue($o->hasRule('Between')); } - public function testValidationShouldWorkIfAllRulesReturnTrue() + public function testValidationShouldWorkIfAllRulesReturnTrue(): void { $valid1 = new Callback(function () { return true; @@ -70,7 +72,7 @@ class AllOfTest extends TestCase * @dataProvider providerStaticDummyRules * @expectedException \Respect\Validation\Exceptions\AllOfException */ - public function testValidationAssertShouldFailIfAnyRuleFailsAndReturnAllExceptionsFailed($v1, $v2, $v3) + public function testValidationAssertShouldFailIfAnyRuleFailsAndReturnAllExceptionsFailed($v1, $v2, $v3): void { $o = new AllOf($v1, $v2, $v3); self::assertFalse($o->__invoke('any')); @@ -81,7 +83,7 @@ class AllOfTest extends TestCase * @dataProvider providerStaticDummyRules * @expectedException \Respect\Validation\Exceptions\CallbackException */ - public function testValidationCheckShouldFailIfAnyRuleFailsAndThrowTheFirstExceptionOnly($v1, $v2, $v3) + public function testValidationCheckShouldFailIfAnyRuleFailsAndThrowTheFirstExceptionOnly($v1, $v2, $v3): void { $o = new AllOf($v1, $v2, $v3); self::assertFalse($o->__invoke('any')); @@ -92,7 +94,7 @@ class AllOfTest extends TestCase * @dataProvider providerStaticDummyRules * @expectedException \Respect\Validation\Exceptions\ValidationException */ - public function testValidationCheckShouldFailOnEmptyInput($v1, $v2, $v3) + public function testValidationCheckShouldFailOnEmptyInput($v1, $v2, $v3): void { $o = new AllOf($v1, $v2, $v3); self::assertTrue($o->check('')); @@ -101,7 +103,7 @@ class AllOfTest extends TestCase /** * @dataProvider providerStaticDummyRules */ - public function testValidationShouldFailIfAnyRuleFails($v1, $v2, $v3) + public function testValidationShouldFailIfAnyRuleFails($v1, $v2, $v3): void { $o = new AllOf($v1, $v2, $v3); self::assertFalse($o->__invoke('any')); diff --git a/tests/unit/Rules/AlnumTest.php b/tests/unit/Rules/AlnumTest.php index 52459360..eb980c75 100644 --- a/tests/unit/Rules/AlnumTest.php +++ b/tests/unit/Rules/AlnumTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class AlnumTest extends TestCase /** * @dataProvider providerForValidAlnum */ - public function testValidAlnumCharsShouldReturnTrue($validAlnum, $additional) + public function testValidAlnumCharsShouldReturnTrue($validAlnum, $additional): void { $validator = new Alnum($additional); self::assertTrue($validator->validate($validAlnum)); @@ -33,7 +35,7 @@ class AlnumTest extends TestCase * @dataProvider providerForInvalidAlnum * @expectedException \Respect\Validation\Exceptions\AlnumException */ - public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($invalidAlnum, $additional) + public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($invalidAlnum, $additional): void { $validator = new Alnum($additional); self::assertFalse($validator->validate($invalidAlnum)); @@ -44,7 +46,7 @@ class AlnumTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Alnum($additional); } @@ -52,7 +54,7 @@ class AlnumTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Alnum($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/AlphaTest.php b/tests/unit/Rules/AlphaTest.php index 64c25d91..84dc6bb3 100644 --- a/tests/unit/Rules/AlphaTest.php +++ b/tests/unit/Rules/AlphaTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class AlphaTest extends TestCase /** * @dataProvider providerForValidAlpha */ - public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $additional) + public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $additional): void { $validator = new Alpha($additional); self::assertTrue($validator->validate($validAlpha)); @@ -35,7 +37,7 @@ class AlphaTest extends TestCase * @dataProvider providerForInvalidAlpha * @expectedException \Respect\Validation\Exceptions\AlphaException */ - public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAlpha, $additional) + public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAlpha, $additional): void { $validator = new Alpha($additional); self::assertFalse($validator->validate($invalidAlpha)); @@ -46,7 +48,7 @@ class AlphaTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentException($additional) + public function testInvalidConstructorParamsShouldThrowComponentException($additional): void { $validator = new Alpha($additional); } @@ -54,7 +56,7 @@ class AlphaTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Alpha($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/AlwaysInvalidTest.php b/tests/unit/Rules/AlwaysInvalidTest.php index d6b0cc00..b0e7a16c 100644 --- a/tests/unit/Rules/AlwaysInvalidTest.php +++ b/tests/unit/Rules/AlwaysInvalidTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -37,7 +39,7 @@ class AlwaysInvalidTest extends TestCase /** * @dataProvider providerForValidAlwaysInvalid */ - public function testShouldValidateInputWhenItIsAValidAlwaysInvalid($input) + public function testShouldValidateInputWhenItIsAValidAlwaysInvalid($input): void { $rule = new AlwaysInvalid(); diff --git a/tests/unit/Rules/AlwaysValidTest.php b/tests/unit/Rules/AlwaysValidTest.php index aa7f6384..6820af1a 100644 --- a/tests/unit/Rules/AlwaysValidTest.php +++ b/tests/unit/Rules/AlwaysValidTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -37,7 +39,7 @@ class AlwaysValidTest extends TestCase /** * @dataProvider providerForValidAlwaysValid */ - public function testShouldValidateInputWhenItIsAValidAlwaysValid($input) + public function testShouldValidateInputWhenItIsAValidAlwaysValid($input): void { $rule = new AlwaysValid(); diff --git a/tests/unit/Rules/AnyOfTest.php b/tests/unit/Rules/AnyOfTest.php index 35785871..de76543d 100644 --- a/tests/unit/Rules/AnyOfTest.php +++ b/tests/unit/Rules/AnyOfTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class AnyOfTest extends TestCase { - public function testValid() + public function testValid(): void { $valid1 = new Callback(function () { return false; @@ -40,7 +42,7 @@ class AnyOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\AnyOfException */ - public function testInvalid() + public function testInvalid(): void { $valid1 = new Callback(function () { return false; @@ -59,7 +61,7 @@ class AnyOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\XdigitException */ - public function testInvalidCheck() + public function testInvalidCheck(): void { $o = new AnyOf(new Xdigit(), new Alnum()); self::assertFalse($o->validate(-10)); diff --git a/tests/unit/Rules/ArrayTypeTest.php b/tests/unit/Rules/ArrayTypeTest.php index 613ff67e..774c3f13 100644 --- a/tests/unit/Rules/ArrayTypeTest.php +++ b/tests/unit/Rules/ArrayTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/ArrayValTest.php b/tests/unit/Rules/ArrayValTest.php index 1cf097dd..78ddf488 100644 --- a/tests/unit/Rules/ArrayValTest.php +++ b/tests/unit/Rules/ArrayValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use ArrayObject; diff --git a/tests/unit/Rules/AttributeTest.php b/tests/unit/Rules/AttributeTest.php index 10c1a54c..c05b930f 100644 --- a/tests/unit/Rules/AttributeTest.php +++ b/tests/unit/Rules/AttributeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -25,7 +27,7 @@ class PrivClass */ class AttributeTest extends TestCase { - public function testAttributeWithNoExtraValidationShouldCheckItsPresence() + public function testAttributeWithNoExtraValidationShouldCheckItsPresence(): void { $validator = new Attribute('bar'); $obj = new \stdClass(); @@ -38,7 +40,7 @@ class AttributeTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\AttributeException */ - public function testAbsentAttributeShouldRaiseAttributeException() + public function testAbsentAttributeShouldRaiseAttributeException(): void { $validator = new Attribute('bar'); $obj = new \stdClass(); @@ -46,10 +48,11 @@ class AttributeTest extends TestCase self::assertFalse($validator->__invoke($obj)); self::assertFalse($validator->assert($obj)); } + /** * @expectedException \Respect\Validation\Exceptions\ValidationException */ - public function testAbsentAttributeShouldRaiseAttributeException_on_check() + public function testAbsentAttributeShouldRaiseAttributeException_on_check(): void { $validator = new Attribute('bar'); $obj = new \stdClass(); @@ -62,7 +65,7 @@ class AttributeTest extends TestCase * @dataProvider providerForInvalidAttributeNames * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorArgumentsShouldThrowComponentException($attributeName) + public function testInvalidConstructorArgumentsShouldThrowComponentException($attributeName): void { $validator = new Attribute($attributeName); } @@ -76,7 +79,7 @@ class AttributeTest extends TestCase ]; } - public function testExtraValidatorRulesForAttribute() + public function testExtraValidatorRulesForAttribute(): void { $subValidator = new Length(1, 3); $validator = new Attribute('bar', $subValidator); @@ -90,7 +93,7 @@ class AttributeTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\AttributeException */ - public function testShouldNotValidateEmptyString() + public function testShouldNotValidateEmptyString(): void { $subValidator = new Length(1, 3); $validator = new Attribute('bar', $subValidator); @@ -101,7 +104,7 @@ class AttributeTest extends TestCase $validator->assert(''); } - public function testExtraValidatorRulesForAttribute_should_fail_if_invalid() + public function testExtraValidatorRulesForAttribute_should_fail_if_invalid(): void { $subValidator = new Length(1, 3); $validator = new Attribute('bar', $subValidator); @@ -113,7 +116,7 @@ class AttributeTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\LengthException */ - public function testExtraValidatorRulesForAttribute_should_raise_extra_validator_exception_on_check() + public function testExtraValidatorRulesForAttribute_should_raise_extra_validator_exception_on_check(): void { $subValidator = new Length(1, 3); $validator = new Attribute('bar', $subValidator); @@ -121,10 +124,11 @@ class AttributeTest extends TestCase $obj->bar = 'foo hey this has more than 3 chars'; self::assertFalse($validator->check($obj)); } + /** * @expectedException \Respect\Validation\Exceptions\AttributeException */ - public function testExtraValidatorRulesForAttribute_should_raise_AttributeException_on_assert() + public function testExtraValidatorRulesForAttribute_should_raise_AttributeException_on_assert(): void { $subValidator = new Length(1, 3); $validator = new Attribute('bar', $subValidator); @@ -133,14 +137,14 @@ class AttributeTest extends TestCase self::assertFalse($validator->assert($obj)); } - public function testNotMandatoryAttributeShouldNotFailWhenAttributeIsAbsent() + public function testNotMandatoryAttributeShouldNotFailWhenAttributeIsAbsent(): void { $validator = new Attribute('bar', null, false); $obj = new \stdClass(); self::assertTrue($validator->__invoke($obj)); } - public function testNotMandatoryAttributeShouldNotFailWhenAttributeIsAbsent_with_extra_validator() + public function testNotMandatoryAttributeShouldNotFailWhenAttributeIsAbsent_with_extra_validator(): void { $subValidator = new Length(1, 3); $validator = new Attribute('bar', $subValidator, false); @@ -148,7 +152,7 @@ class AttributeTest extends TestCase self::assertTrue($validator->__invoke($obj)); } - public function testPrivateAttributeShouldAlsoBeChecked() + public function testPrivateAttributeShouldAlsoBeChecked(): void { $subValidator = new Length(1, 3); $validator = new Attribute('bar', $subValidator); @@ -156,7 +160,7 @@ class AttributeTest extends TestCase self::assertTrue($validator->assert($obj)); } - public function testPrivateAttributeShouldFailIfNotValid() + public function testPrivateAttributeShouldFailIfNotValid(): void { $subValidator = new Length(33333, 888888); $validator = new Attribute('bar', $subValidator); diff --git a/tests/unit/Rules/Base64Test.php b/tests/unit/Rules/Base64Test.php index 2c7764ea..3cb7f263 100644 --- a/tests/unit/Rules/Base64Test.php +++ b/tests/unit/Rules/Base64Test.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/BaseTest.php b/tests/unit/Rules/BaseTest.php index d0f40bc9..a59ae9d6 100644 --- a/tests/unit/Rules/BaseTest.php +++ b/tests/unit/Rules/BaseTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -25,7 +27,7 @@ class BaseTest extends TestCase /** * @dataProvider providerForBase */ - public function testBase($base, $input) + public function testBase($base, $input): void { $object = new Base($base); self::assertTrue($object->__invoke($input)); @@ -36,7 +38,7 @@ class BaseTest extends TestCase /** * @dataProvider providerForInvalidBase */ - public function testInvalidBase($base, $input) + public function testInvalidBase($base, $input): void { $object = new Base($base); self::assertFalse($object->__invoke($input)); @@ -46,7 +48,7 @@ class BaseTest extends TestCase * @dataProvider providerForExceptionBase * @expectedException \Respect\Validation\Exceptions\BaseException */ - public function testExceptionBase($base, $input) + public function testExceptionBase($base, $input): void { $object = new Base($base); self::assertTrue($object->__invoke($input)); @@ -56,7 +58,7 @@ class BaseTest extends TestCase /** * @dataProvider providerForCustomBase */ - public function testCustomBase($base, $custom, $input) + public function testCustomBase($base, $custom, $input): void { $object = new Base($base, $custom); self::assertTrue($object->__invoke($input)); diff --git a/tests/unit/Rules/BetweenTest.php b/tests/unit/Rules/BetweenTest.php index c5d06154..b8b721ce 100644 --- a/tests/unit/Rules/BetweenTest.php +++ b/tests/unit/Rules/BetweenTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTime; @@ -65,7 +67,7 @@ class BetweenTest extends TestCase /** * @dataProvider providerValid */ - public function testValuesBetweenBoundsShouldPass($min, $max, $inclusive, $input) + public function testValuesBetweenBoundsShouldPass($min, $max, $inclusive, $input): void { $o = new Between($min, $max, $inclusive); self::assertTrue($o->__invoke($input)); @@ -77,7 +79,7 @@ class BetweenTest extends TestCase * @dataProvider providerInvalid * @expectedException \Respect\Validation\Exceptions\BetweenException */ - public function testValuesOutBoundsShouldRaiseException($min, $max, $inclusive, $input) + public function testValuesOutBoundsShouldRaiseException($min, $max, $inclusive, $input): void { $o = new Between($min, $max, $inclusive); self::assertFalse($o->__invoke($input)); @@ -87,7 +89,7 @@ class BetweenTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructionParamsShouldRaiseException() + public function testInvalidConstructionParamsShouldRaiseException(): void { $o = new Between(10, 5); } diff --git a/tests/unit/Rules/BoolTypeTest.php b/tests/unit/Rules/BoolTypeTest.php index 62d2be0c..7329681c 100644 --- a/tests/unit/Rules/BoolTypeTest.php +++ b/tests/unit/Rules/BoolTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class BoolTypeTest extends TestCase { - public function testBooleanValuesONLYShouldReturnTrue() + public function testBooleanValuesONLYShouldReturnTrue(): void { $validator = new BoolType(); self::assertTrue($validator->__invoke(true)); @@ -34,13 +36,13 @@ class BoolTypeTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\BoolTypeException */ - public function testInvalidBooleanShouldRaiseException() + public function testInvalidBooleanShouldRaiseException(): void { $validator = new BoolType(); self::assertFalse($validator->check('foo')); } - public function testInvalidBooleanValuesShouldReturnFalse() + public function testInvalidBooleanValuesShouldReturnFalse(): void { $validator = new BoolType(); self::assertFalse($validator->__invoke('')); diff --git a/tests/unit/Rules/BoolValTest.php b/tests/unit/Rules/BoolValTest.php index c0bde755..5cc01601 100644 --- a/tests/unit/Rules/BoolValTest.php +++ b/tests/unit/Rules/BoolValTest.php @@ -1,4 +1,5 @@ rule = new Bsn(); } @@ -38,7 +40,7 @@ class BsnTest extends TestCase * * @param string $input */ - public function testShouldValidateBsn($input) + public function testShouldValidateBsn($input): void { self::assertTrue($this->rule->validate($input)); } @@ -48,7 +50,7 @@ class BsnTest extends TestCase * * @param string $input */ - public function testShouldNotValidateBsn($input) + public function testShouldNotValidateBsn($input): void { self::assertFalse($this->rule->validate($input)); } diff --git a/tests/unit/Rules/CallTest.php b/tests/unit/Rules/CallTest.php index 5b06a29c..27dde98d 100644 --- a/tests/unit/Rules/CallTest.php +++ b/tests/unit/Rules/CallTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -25,25 +27,25 @@ class CallTest extends TestCase return []; } - public function testCallbackValidatorShouldAcceptEmptyString() + public function testCallbackValidatorShouldAcceptEmptyString(): void { $v = new Call('str_split', new ArrayVal()); self::assertTrue($v->assert('')); } - public function testCallbackValidatorShouldAcceptStringWithFunctionName() + public function testCallbackValidatorShouldAcceptStringWithFunctionName(): void { $v = new Call('str_split', new ArrayVal()); self::assertTrue($v->assert('test')); } - public function testCallbackValidatorShouldAcceptArrayCallbackDefinition() + public function testCallbackValidatorShouldAcceptArrayCallbackDefinition(): void { $v = new Call([$this, 'thisIsASampleCallbackUsedInsideThisTest'], new ArrayVal()); self::assertTrue($v->assert('test')); } - public function testCallbackValidatorShouldAcceptClosures() + public function testCallbackValidatorShouldAcceptClosures(): void { $v = new Call(function () { return []; @@ -54,7 +56,7 @@ class CallTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\CallException */ - public function testCallbackFailedShouldThrowCallException() + public function testCallbackFailedShouldThrowCallException(): void { $v = new Call('strrev', new ArrayVal()); self::assertFalse($v->validate('test')); diff --git a/tests/unit/Rules/CallableTypeTest.php b/tests/unit/Rules/CallableTypeTest.php index e0b28aa7..23e1203c 100644 --- a/tests/unit/Rules/CallableTypeTest.php +++ b/tests/unit/Rules/CallableTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class CallableTypeTest extends TestCase { protected $rule; - protected function setUp() + protected function setUp(): void { $this->rule = new CallableType(); } @@ -30,7 +32,7 @@ class CallableTypeTest extends TestCase /** * @dataProvider providerForCallable */ - public function testShouldValidateCallableTypeNumbers($input) + public function testShouldValidateCallableTypeNumbers($input): void { self::assertTrue($this->rule->validate($input)); } @@ -38,7 +40,7 @@ class CallableTypeTest extends TestCase /** * @dataProvider providerForNonCallable */ - public function testShouldNotValidateNonCallableTypeNumbers($input) + public function testShouldNotValidateNonCallableTypeNumbers($input): void { self::assertFalse($this->rule->validate($input)); } @@ -47,7 +49,7 @@ class CallableTypeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\CallableTypeException * @expectedExceptionMessage "testShouldThrowCallableTypeExceptionWhenChecking" must be a callable */ - public function testShouldThrowCallableTypeExceptionWhenChecking() + public function testShouldThrowCallableTypeExceptionWhenChecking(): void { $this->rule->check(__FUNCTION__); } @@ -55,7 +57,7 @@ class CallableTypeTest extends TestCase public function providerForCallable() { return [ - [function () { + [function (): void { }], ['trim'], [__METHOD__], diff --git a/tests/unit/Rules/CallbackTest.php b/tests/unit/Rules/CallbackTest.php index de276816..2d8e8ece 100644 --- a/tests/unit/Rules/CallbackTest.php +++ b/tests/unit/Rules/CallbackTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,9 +22,10 @@ use PHPUnit\Framework\TestCase; */ class CallbackTest extends TestCase { - private $truthy, $falsy; + private $truthy; + private $falsy; - public function setUp() + public function setUp(): void { $this->truthy = new Callback(function () { return true; @@ -37,7 +40,7 @@ class CallbackTest extends TestCase return true; } - public function testShouldBeAbleToDefineLatestArgumentsOnConstructor() + public function testShouldBeAbleToDefineLatestArgumentsOnConstructor(): void { $rule = new Callback('is_a', 'stdClass'); @@ -47,12 +50,12 @@ class CallbackTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\CallbackException */ - public function testCallbackValidatorShouldReturnFalseForEmptyString() + public function testCallbackValidatorShouldReturnFalseForEmptyString(): void { $this->falsy->assert(''); } - public function testCallbackValidatorShouldReturnTrueIfCallbackReturnsTrue() + public function testCallbackValidatorShouldReturnTrueIfCallbackReturnsTrue(): void { self::assertTrue($this->truthy->assert('wpoiur')); } @@ -60,18 +63,18 @@ class CallbackTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\CallbackException */ - public function testCallbackValidatorShouldReturnFalseIfCallbackReturnsFalse() + public function testCallbackValidatorShouldReturnFalseIfCallbackReturnsFalse(): void { self::assertTrue($this->falsy->assert('w poiur')); } - public function testCallbackValidatorShouldAcceptArrayCallbackDefinitions() + public function testCallbackValidatorShouldAcceptArrayCallbackDefinitions(): void { $v = new Callback([$this, 'thisIsASampleCallbackUsedInsideThisTest']); self::assertTrue($v->assert('test')); } - public function testCallbackValidatorShouldAcceptFunctionNamesAsString() + public function testCallbackValidatorShouldAcceptFunctionNamesAsString(): void { $v = new Callback('is_string'); self::assertTrue($v->assert('test')); @@ -80,7 +83,7 @@ class CallbackTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidCallbacksShouldRaiseComponentExceptionUponInstantiation() + public function testInvalidCallbacksShouldRaiseComponentExceptionUponInstantiation(): void { $v = new Callback(new \stdClass()); self::assertTrue($v->assert('w poiur')); diff --git a/tests/unit/Rules/CharsetTest.php b/tests/unit/Rules/CharsetTest.php index ecf53eae..245419c8 100644 --- a/tests/unit/Rules/CharsetTest.php +++ b/tests/unit/Rules/CharsetTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class CharsetTest extends TestCase /** * @dataProvider providerForValidCharset */ - public function testValidDataWithCharsetShouldReturnTrue($charset, $input) + public function testValidDataWithCharsetShouldReturnTrue($charset, $input): void { $validator = new Charset($charset); self::assertTrue($validator->__invoke($input)); @@ -33,7 +35,7 @@ class CharsetTest extends TestCase * @dataProvider providerForInvalidCharset * @expectedException \Respect\Validation\Exceptions\CharsetException */ - public function testInvalidCharsetShouldFailAndThrowCharsetException($charset, $input) + public function testInvalidCharsetShouldFailAndThrowCharsetException($charset, $input): void { $validator = new Charset($charset); self::assertFalse($validator->__invoke($input)); @@ -44,7 +46,7 @@ class CharsetTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($charset) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($charset): void { $validator = new Charset($charset); } diff --git a/tests/unit/Rules/CnhTest.php b/tests/unit/Rules/CnhTest.php index f1d945ca..587ae623 100644 --- a/tests/unit/Rules/CnhTest.php +++ b/tests/unit/Rules/CnhTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class CnhTest extends TestCase { protected $cnhValidator; - protected function setUp() + protected function setUp(): void { $this->cnhValidator = new Cnh(); } @@ -30,7 +32,7 @@ class CnhTest extends TestCase /** * @dataProvider validCnhProvider */ - public function testValidCnh($cnh) + public function testValidCnh($cnh): void { self::assertTrue($this->cnhValidator->assert($cnh)); self::assertTrue($this->cnhValidator->__invoke($cnh)); @@ -41,7 +43,7 @@ class CnhTest extends TestCase * @dataProvider invalidCnhProvider * @expectedException \Respect\Validation\Exceptions\CnhException */ - public function testInvalidCnh($cnh) + public function testInvalidCnh($cnh): void { $expectedInvalid = $this->cnhValidator->assert($cnh); self::assertFalse($expectedInvalid); @@ -51,7 +53,7 @@ class CnhTest extends TestCase * @dataProvider notIntegerCnhProvider * @expectedException \Respect\Validation\Exceptions\CnhException */ - public function testNotIntegerCnh($cnh) + public function testNotIntegerCnh($cnh): void { $expectedInvalid = $this->cnhValidator->assert($cnh); self::assertFalse($expectedInvalid); @@ -61,7 +63,7 @@ class CnhTest extends TestCase * @dataProvider invalidCnhLengthProvider * @expectedException \Respect\Validation\Exceptions\CnhException */ - public function testInvalidLengthCnh($cnh) + public function testInvalidLengthCnh($cnh): void { $expectedInvalid = $this->cnhValidator->assert($cnh); self::assertFalse($expectedInvalid); diff --git a/tests/unit/Rules/CnpjTest.php b/tests/unit/Rules/CnpjTest.php index 1fa497de..ebe7ad97 100644 --- a/tests/unit/Rules/CnpjTest.php +++ b/tests/unit/Rules/CnpjTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class CnpjTest extends TestCase { protected $cnpjValidator; - protected function setUp() + protected function setUp(): void { $this->cnpjValidator = new Cnpj(); } @@ -30,7 +32,7 @@ class CnpjTest extends TestCase /** * @dataProvider providerValidFormattedCnpj */ - public function testFormattedCnpjsShouldValidate($input) + public function testFormattedCnpjsShouldValidate($input): void { self::assertTrue($this->cnpjValidator->validate($input)); } @@ -38,7 +40,7 @@ class CnpjTest extends TestCase /** * @dataProvider providerValidUnformattedCnpj */ - public function testUnformattedCnpjsShouldValidate($input) + public function testUnformattedCnpjsShouldValidate($input): void { self::assertTrue($this->cnpjValidator->validate($input)); } @@ -46,7 +48,7 @@ class CnpjTest extends TestCase /** * @dataProvider providerInvalidFormattedCnpj */ - public function testFormattedCnpjsShouldNotValidate($input) + public function testFormattedCnpjsShouldNotValidate($input): void { self::assertFalse($this->cnpjValidator->validate($input)); } @@ -54,7 +56,7 @@ class CnpjTest extends TestCase /** * @dataProvider providerInvalidUnformattedCnpj */ - public function testUnformattedCnpjsShouldNotValidate($input) + public function testUnformattedCnpjsShouldNotValidate($input): void { self::assertFalse($this->cnpjValidator->validate($input)); } @@ -62,7 +64,7 @@ class CnpjTest extends TestCase /** * @dataProvider providerInvalidFormattedAndUnformattedCnpjLength */ - public function testFormattedAndUnformattedCnpjsShouldNotValidate($input) + public function testFormattedAndUnformattedCnpjsShouldNotValidate($input): void { self::assertFalse($this->cnpjValidator->validate($input)); } diff --git a/tests/unit/Rules/CntrlTest.php b/tests/unit/Rules/CntrlTest.php index 7ed1ad9d..30b36fb0 100644 --- a/tests/unit/Rules/CntrlTest.php +++ b/tests/unit/Rules/CntrlTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class CntrlTest extends TestCase /** * @dataProvider providerForValidCntrl */ - public function testValidDataWithCntrlShouldReturnTrue($validCntrl, $additional = '') + public function testValidDataWithCntrlShouldReturnTrue($validCntrl, $additional = ''): void { $validator = new Cntrl($additional); self::assertTrue($validator->validate($validCntrl)); @@ -33,7 +35,7 @@ class CntrlTest extends TestCase * @dataProvider providerForInvalidCntrl * @expectedException \Respect\Validation\Exceptions\CntrlException */ - public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl, $additional = '') + public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl, $additional = ''): void { $validator = new Cntrl($additional); self::assertFalse($validator->validate($invalidCntrl)); @@ -44,7 +46,7 @@ class CntrlTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Cntrl($additional); } @@ -52,7 +54,7 @@ class CntrlTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Cntrl($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/ConsonantTest.php b/tests/unit/Rules/ConsonantTest.php index 19c8640e..dbfef861 100644 --- a/tests/unit/Rules/ConsonantTest.php +++ b/tests/unit/Rules/ConsonantTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class ConsonantTest extends TestCase /** * @dataProvider providerForValidConsonants */ - public function testValidDataWithConsonantsShouldReturnTrue($validConsonants, $additional = '') + public function testValidDataWithConsonantsShouldReturnTrue($validConsonants, $additional = ''): void { $validator = new Consonant($additional); self::assertTrue($validator->validate($validConsonants)); @@ -33,7 +35,7 @@ class ConsonantTest extends TestCase * @dataProvider providerForInvalidConsonants * @expectedException \Respect\Validation\Exceptions\ConsonantException */ - public function testInvalidConsonantsShouldFailAndThrowConsonantException($invalidConsonants, $additional = '') + public function testInvalidConsonantsShouldFailAndThrowConsonantException($invalidConsonants, $additional = ''): void { $validator = new Consonant($additional); self::assertFalse($validator->validate($invalidConsonants)); @@ -44,7 +46,7 @@ class ConsonantTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Consonant($additional); } @@ -52,7 +54,7 @@ class ConsonantTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Consonant($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/ContainsTest.php b/tests/unit/Rules/ContainsTest.php index 528e7d5a..86ce112a 100644 --- a/tests/unit/Rules/ContainsTest.php +++ b/tests/unit/Rules/ContainsTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class ContainsTest extends TestCase /** * @dataProvider providerForContainsIdentical */ - public function testStringsContainingExpectedIdenticalValueShouldPass($start, $input) + public function testStringsContainingExpectedIdenticalValueShouldPass($start, $input): void { $v = new Contains($start, true); self::assertTrue($v->validate($input)); @@ -32,7 +34,7 @@ class ContainsTest extends TestCase /** * @dataProvider providerForContains */ - public function testStringsContainingExpectedValueShouldPass($start, $input) + public function testStringsContainingExpectedValueShouldPass($start, $input): void { $v = new Contains($start, false); self::assertTrue($v->validate($input)); @@ -41,7 +43,7 @@ class ContainsTest extends TestCase /** * @dataProvider providerForNotContainsIdentical */ - public function testStringsNotContainsExpectedIdenticalValueShouldNotPass($start, $input) + public function testStringsNotContainsExpectedIdenticalValueShouldNotPass($start, $input): void { $v = new Contains($start, true); self::assertFalse($v->validate($input)); @@ -50,7 +52,7 @@ class ContainsTest extends TestCase /** * @dataProvider providerForNotContains */ - public function testStringsNotContainsExpectedValueShouldNotPass($start, $input) + public function testStringsNotContainsExpectedValueShouldNotPass($start, $input): void { $v = new Contains($start, false); self::assertFalse($v->validate($input)); diff --git a/tests/unit/Rules/CountableTest.php b/tests/unit/Rules/CountableTest.php index c61c9df2..ad746fcc 100644 --- a/tests/unit/Rules/CountableTest.php +++ b/tests/unit/Rules/CountableTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/CountryCodeTest.php b/tests/unit/Rules/CountryCodeTest.php index c3ae5758..f54705a4 100644 --- a/tests/unit/Rules/CountryCodeTest.php +++ b/tests/unit/Rules/CountryCodeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,17 +25,18 @@ class CountryCodeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "whatever" is not a valid country set */ - public function testShouldThrowsExceptionWhenInvalidFormat() + public function testShouldThrowsExceptionWhenInvalidFormat(): void { new CountryCode('whatever'); } - public function testShouldUseISO3166Alpha2ByDefault() + public function testShouldUseISO3166Alpha2ByDefault(): void { $country = new CountryCode(); self::assertEquals(CountryCode::ALPHA2, $country->set); } - public function testShouldDefineACountryFormatOnConstructor() + + public function testShouldDefineACountryFormatOnConstructor(): void { $country = new CountryCode(CountryCode::NUMERIC); self::assertEquals(CountryCode::NUMERIC, $country->set); @@ -66,7 +69,7 @@ class CountryCodeTest extends TestCase /** * @dataProvider providerForValidCountryCode */ - public function testValidContryCodes($format, $input) + public function testValidContryCodes($format, $input): void { $rule = new CountryCode($format); @@ -76,7 +79,7 @@ class CountryCodeTest extends TestCase /** * @dataProvider providerForInvalidCountryCode */ - public function testInvalidContryCodes($format, $input) + public function testInvalidContryCodes($format, $input): void { $rule = new CountryCode($format); diff --git a/tests/unit/Rules/CpfTest.php b/tests/unit/Rules/CpfTest.php index c2ec918b..015d5ac2 100644 --- a/tests/unit/Rules/CpfTest.php +++ b/tests/unit/Rules/CpfTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class CpfTest extends TestCase { protected $cpfValidator; - protected function setUp() + protected function setUp(): void { $this->cpfValidator = new Cpf(); } @@ -30,7 +32,7 @@ class CpfTest extends TestCase /** * @dataProvider providerValidFormattedCpf */ - public function testFormattedCpfsShouldValidate($input) + public function testFormattedCpfsShouldValidate($input): void { self::assertTrue($this->cpfValidator->assert($input)); } @@ -38,7 +40,7 @@ class CpfTest extends TestCase /** * @dataProvider providerValidUnformattedCpf */ - public function testUnformattedCpfsShouldValidates($input) + public function testUnformattedCpfsShouldValidates($input): void { self::assertTrue($this->cpfValidator->assert($input)); } @@ -47,7 +49,7 @@ class CpfTest extends TestCase * @dataProvider providerInvalidFormattedCpf * @expectedException \Respect\Validation\Exceptions\CpfException */ - public function testInvalidCpfShouldFailWhenFormatted($input) + public function testInvalidCpfShouldFailWhenFormatted($input): void { self::assertFalse($this->cpfValidator->assert($input)); } @@ -56,7 +58,7 @@ class CpfTest extends TestCase * @dataProvider providerInvalidUnformattedCpf * @expectedException \Respect\Validation\Exceptions\CpfException */ - public function testInvalidCpfShouldFailWhenNotFormatted($input) + public function testInvalidCpfShouldFailWhenNotFormatted($input): void { self::assertFalse($this->cpfValidator->assert($input)); } @@ -65,7 +67,7 @@ class CpfTest extends TestCase * @dataProvider providerInvalidFormattedAndUnformattedCpfLength * @expectedException \Respect\Validation\Exceptions\CpfException */ - public function testCpfsWithIncorrectLengthShouldFail($input) + public function testCpfsWithIncorrectLengthShouldFail($input): void { self::assertFalse($this->cpfValidator->assert($input)); } diff --git a/tests/unit/Rules/CreditCardTest.php b/tests/unit/Rules/CreditCardTest.php index f4f3dc6f..926041ef 100644 --- a/tests/unit/Rules/CreditCardTest.php +++ b/tests/unit/Rules/CreditCardTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Respect\Validation\Exceptions\ComponentException; @@ -19,21 +21,21 @@ use Respect\Validation\Exceptions\ComponentException; */ class CreditCardTest extends RuleTestCase { - public function testShouldHaveNoCreditCardBrandByDefault() + public function testShouldHaveNoCreditCardBrandByDefault(): void { $rule = new CreditCard(); self::assertNull($rule->brand); } - public function testShouldAcceptCreditCardBrandOnConstructor() + public function testShouldAcceptCreditCardBrandOnConstructor(): void { $rule = new CreditCard(CreditCard::VISA); self::assertSame(CreditCard::VISA, $rule->brand); } - public function testShouldThrowExceptionWhenCreditCardBrandIsNotValid() + public function testShouldThrowExceptionWhenCreditCardBrandIsNotValid(): void { $message = '"RespectCard" is not a valid credit card brand'; $message .= ' (Available: American Express, Diners Club, Discover, JCB, MasterCard, Visa).'; diff --git a/tests/unit/Rules/CurrencyCodeTest.php b/tests/unit/Rules/CurrencyCodeTest.php index 5d22b951..debbb89a 100644 --- a/tests/unit/Rules/CurrencyCodeTest.php +++ b/tests/unit/Rules/CurrencyCodeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/DateTimeTest.php b/tests/unit/Rules/DateTimeTest.php index 169f0444..00d510e2 100644 --- a/tests/unit/Rules/DateTimeTest.php +++ b/tests/unit/Rules/DateTimeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTimeImmutable; @@ -23,12 +25,12 @@ class DateTimeTest extends TestCase { protected $dateValidator; - protected function setUp() + protected function setUp(): void { $this->dateValidator = new DateTime(); } - public function testDateEmptyShouldNotValidate() + public function testDateEmptyShouldNotValidate(): void { self::assertFalse($this->dateValidator->__invoke('')); } @@ -36,7 +38,7 @@ class DateTimeTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\DateTimeException */ - public function testDateEmptyShouldNotCheck() + public function testDateEmptyShouldNotCheck(): void { $this->dateValidator->check(''); } @@ -44,17 +46,17 @@ class DateTimeTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\DateTimeException */ - public function testDateEmptyShouldNotAssert() + public function testDateEmptyShouldNotAssert(): void { $this->dateValidator->assert(''); } - public function testDateWithoutFormatShouldValidate() + public function testDateWithoutFormatShouldValidate(): void { self::assertTrue($this->dateValidator->__invoke('today')); } - public function testDateTimeInstancesShouldAlwaysValidate() + public function testDateTimeInstancesShouldAlwaysValidate(): void { self::assertTrue($this->dateValidator->__invoke(new \DateTime('today'))); } @@ -68,27 +70,29 @@ class DateTimeTest extends TestCase self::assertTrue($this->dateValidator->validate(new DateTimeImmutable('today'))); } - public function testInvalidDateShouldFail() + public function testInvalidDateShouldFail(): void { self::assertFalse($this->dateValidator->__invoke('aids')); } - public function testInvalidDateShouldFail_on_invalid_conversions() + + public function testInvalidDateShouldFail_on_invalid_conversions(): void { $this->dateValidator->format = 'Y-m-d'; self::assertFalse($this->dateValidator->__invoke('2009-12-00')); } - public function testAnyObjectExceptDateTimeInstancesShouldFail() + public function testAnyObjectExceptDateTimeInstancesShouldFail(): void { self::assertFalse($this->dateValidator->__invoke(new \stdClass())); } - public function testFormatsShouldValidateDateStrings() + public function testFormatsShouldValidateDateStrings(): void { $this->dateValidator = new DateTime('Y-m-d'); self::assertTrue($this->dateValidator->assert('2009-09-09')); } - public function testFormatsShouldValidateDateStrings_with_any_formats() + + public function testFormatsShouldValidateDateStrings_with_any_formats(): void { $this->dateValidator = new DateTime('d/m/Y'); self::assertTrue($this->dateValidator->assert('23/05/1987')); @@ -97,13 +101,13 @@ class DateTimeTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\DateTimeException */ - public function testFormatsShouldValidateDateStrings_and_throw_DateTimeException_on_failure() + public function testFormatsShouldValidateDateStrings_and_throw_DateTimeException_on_failure(): void { $this->dateValidator = new DateTime('y-m-d'); self::assertFalse($this->dateValidator->assert('2009-09-09')); } - public function testDateTimeExceptionalFormatsThatShouldBeValid() + public function testDateTimeExceptionalFormatsThatShouldBeValid(): void { $this->dateValidator = new DateTime('c'); self::assertTrue($this->dateValidator->assert('2004-02-12T15:19:21+00:00')); @@ -119,7 +123,7 @@ class DateTimeTest extends TestCase * @param string $input * @dataProvider providerForDateTimeTimezoneStrings */ - public function testDateTimeSystemTimezoneIndependent($systemTimezone, $format, $input) + public function testDateTimeSystemTimezoneIndependent($systemTimezone, $format, $input): void { date_default_timezone_set($systemTimezone); $this->dateValidator = new DateTime($format); diff --git a/tests/unit/Rules/DigitTest.php b/tests/unit/Rules/DigitTest.php index 6f28897b..eafd25db 100644 --- a/tests/unit/Rules/DigitTest.php +++ b/tests/unit/Rules/DigitTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class DigitTest extends TestCase /** * @dataProvider providerForValidDigits */ - public function testValidDataWithDigitsShouldReturnTrue($validDigits, $additional = '') + public function testValidDataWithDigitsShouldReturnTrue($validDigits, $additional = ''): void { $validator = new Digit($additional); self::assertTrue($validator->validate($validDigits)); @@ -33,7 +35,7 @@ class DigitTest extends TestCase * @dataProvider providerForInvalidDigits * @expectedException \Respect\Validation\Exceptions\DigitException */ - public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits, $additional = '') + public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits, $additional = ''): void { $validator = new Digit($additional); self::assertFalse($validator->validate($invalidDigits)); @@ -44,7 +46,7 @@ class DigitTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Digit($additional); } @@ -52,7 +54,7 @@ class DigitTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Digit($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/DirectoryTest.php b/tests/unit/Rules/DirectoryTest.php index 3684cf8f..2dfa63c5 100644 --- a/tests/unit/Rules/DirectoryTest.php +++ b/tests/unit/Rules/DirectoryTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class DirectoryTest extends TestCase /** * @dataProvider providerForValidDirectory */ - public function testValidDirectoryShouldReturnTrue($input) + public function testValidDirectoryShouldReturnTrue($input): void { $rule = new Directory(); self::assertTrue($rule->__invoke($input)); @@ -35,7 +37,7 @@ class DirectoryTest extends TestCase * @dataProvider providerForInvalidDirectory * @expectedException \Respect\Validation\Exceptions\DirectoryException */ - public function testInvalidDirectoryShouldThrowException($input) + public function testInvalidDirectoryShouldThrowException($input): void { $rule = new Directory(); self::assertFalse($rule->__invoke($input)); @@ -46,7 +48,7 @@ class DirectoryTest extends TestCase /** * @dataProvider providerForDirectoryObjects */ - public function testDirectoryWithObjects($object, $valid) + public function testDirectoryWithObjects($object, $valid): void { $rule = new Directory(); self::assertEquals($valid, $rule->validate($object)); diff --git a/tests/unit/Rules/DomainTest.php b/tests/unit/Rules/DomainTest.php index b4b6d0e2..06151566 100644 --- a/tests/unit/Rules/DomainTest.php +++ b/tests/unit/Rules/DomainTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class DomainTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new Domain(); } @@ -31,7 +33,7 @@ class DomainTest extends TestCase /** * @dataProvider providerForDomain */ - public function testValidDomainsShouldReturnTrue($input, $tldcheck = true) + public function testValidDomainsShouldReturnTrue($input, $tldcheck = true): void { $this->object->tldCheck($tldcheck); self::assertTrue($this->object->__invoke($input)); @@ -43,7 +45,7 @@ class DomainTest extends TestCase * @dataProvider providerForNotDomain * @expectedException \Respect\Validation\Exceptions\ValidationException */ - public function testNotDomain($input, $tldcheck = true) + public function testNotDomain($input, $tldcheck = true): void { $this->object->tldCheck($tldcheck); self::assertFalse($this->object->check($input)); @@ -53,7 +55,7 @@ class DomainTest extends TestCase * @dataProvider providerForNotDomain * @expectedException \Respect\Validation\Exceptions\DomainException */ - public function testNotDomainCheck($input, $tldcheck = true) + public function testNotDomainCheck($input, $tldcheck = true): void { $this->object->tldCheck($tldcheck); self::assertFalse($this->object->assert($input)); @@ -92,7 +94,7 @@ class DomainTest extends TestCase /** * @dataProvider providerForDomain */ - public function testBuilder($validDomain, $checkTLD = true) + public function testBuilder($validDomain, $checkTLD = true): void { self::assertTrue( v::domain($checkTLD)->validate($validDomain), diff --git a/tests/unit/Rules/EachTest.php b/tests/unit/Rules/EachTest.php index 02c196f5..78f1f137 100644 --- a/tests/unit/Rules/EachTest.php +++ b/tests/unit/Rules/EachTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -59,7 +61,7 @@ class EachTest extends RuleTestCase ]; } - public function testValidatorShouldPassIfEveryArrayItemPass() + public function testValidatorShouldPassIfEveryArrayItemPass(): void { $v = new Each($this->getRuleMock(true)); $result = $v->check([1, 2, 3, 4, 5]); @@ -68,7 +70,7 @@ class EachTest extends RuleTestCase self::assertTrue($result); } - public function testValidatorShouldPassIfEveryArrayItemAndKeyPass() + public function testValidatorShouldPassIfEveryArrayItemAndKeyPass(): void { $v = new Each($this->getRuleMock(true), $this->getRuleMock(true)); $result = $v->check(['a', 'b', 'c', 'd', 'e']); @@ -77,7 +79,7 @@ class EachTest extends RuleTestCase self::assertTrue($result); } - public function testValidatorShouldPassWithOnlyKeyValidation() + public function testValidatorShouldPassWithOnlyKeyValidation(): void { $v = new Each(null, $this->getRuleMock(true)); $result = $v->check(['a', 'b', 'c', 'd', 'e']); @@ -89,7 +91,7 @@ class EachTest extends RuleTestCase /** * @expectedException \Respect\Validation\Exceptions\EachException */ - public function testValidatorShouldNotPassWithOnlyKeyValidation() + public function testValidatorShouldNotPassWithOnlyKeyValidation(): void { $v = new Each(null, $this->getRuleMock(false)); $v->assert(['a', 'b', 'c', 'd', 'e']); @@ -98,7 +100,7 @@ class EachTest extends RuleTestCase /** * @expectedException \Respect\Validation\Exceptions\EachException */ - public function testAssertShouldFailOnInvalidItem() + public function testAssertShouldFailOnInvalidItem(): void { $v = new Each($this->getRuleMock(false)); $v->assert(['a', 2, 3, 4, 5]); @@ -107,7 +109,7 @@ class EachTest extends RuleTestCase /** * @expectedException \Respect\Validation\Exceptions\EachException */ - public function testAssertShouldFailWithNonIterableInput() + public function testAssertShouldFailWithNonIterableInput(): void { $v = new Each($this->getRuleMock(false)); $v->assert('a'); @@ -116,7 +118,7 @@ class EachTest extends RuleTestCase /** * @expectedException \Respect\Validation\Exceptions\EachException */ - public function testCheckShouldFailWithNonIterableInput() + public function testCheckShouldFailWithNonIterableInput(): void { $v = new Each($this->getRuleMock(false)); $v->check(null); diff --git a/tests/unit/Rules/EmailTest.php b/tests/unit/Rules/EmailTest.php index ea53a5c8..c1c34758 100644 --- a/tests/unit/Rules/EmailTest.php +++ b/tests/unit/Rules/EmailTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use Egulias\EmailValidator\EmailValidator; @@ -31,13 +33,13 @@ function class_exists($className) */ class EmailTest extends TestCase { - private function setEmailValidatorExists($value) + private function setEmailValidatorExists($value): void { $GLOBALS['class_exists'][EmailValidator::class] = (bool) $value; $GLOBALS['class_exists'][RFCValidation::class] = (bool) $value; } - private function resetClassExists() + private function resetClassExists(): void { unset($GLOBALS['class_exists']); } @@ -52,17 +54,17 @@ class EmailTest extends TestCase return $emailValidatorMock; } - protected function setUp() + protected function setUp(): void { $this->setEmailValidatorExists(false); } - protected function tearDown() + protected function tearDown(): void { $this->resetClassExists(); } - public function testShouldAcceptInstanceOfEmailValidatorOnConstructor() + public function testShouldAcceptInstanceOfEmailValidatorOnConstructor(): void { $this->resetClassExists(); @@ -73,7 +75,7 @@ class EmailTest extends TestCase self::assertSame($emailValidator, $rule->getEmailValidator()); } - public function testShouldHaveADefaultInstanceOfEmailValidator() + public function testShouldHaveADefaultInstanceOfEmailValidator(): void { $this->resetClassExists(); @@ -82,7 +84,7 @@ class EmailTest extends TestCase self::assertInstanceOf(EmailValidator::class, $rule->getEmailValidator()); } - public function testShouldUseEmailValidatorWhenDefined() + public function testShouldUseEmailValidatorWhenDefined(): void { $this->resetClassExists(); @@ -103,7 +105,7 @@ class EmailTest extends TestCase /** * @dataProvider providerForValidEmail */ - public function testValidEmailShouldPass($validEmail) + public function testValidEmailShouldPass($validEmail): void { $validator = new Email(); self::assertTrue($validator->__invoke($validEmail)); @@ -115,7 +117,7 @@ class EmailTest extends TestCase * @dataProvider providerForInvalidEmail * @expectedException \Respect\Validation\Exceptions\EmailException */ - public function testInvalidEmailsShouldFailValidation($invalidEmail) + public function testInvalidEmailsShouldFailValidation($invalidEmail): void { $validator = new Email(); self::assertFalse($validator->__invoke($invalidEmail)); diff --git a/tests/unit/Rules/EndsWithTest.php b/tests/unit/Rules/EndsWithTest.php index bbb4e724..0c6952d3 100644 --- a/tests/unit/Rules/EndsWithTest.php +++ b/tests/unit/Rules/EndsWithTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class EndsWithTest extends TestCase /** * @dataProvider providerForEndsWith */ - public function testStringsEndingWithExpectedValueShouldPass($start, $input) + public function testStringsEndingWithExpectedValueShouldPass($start, $input): void { $v = new EndsWith($start); self::assertTrue($v->__invoke($input)); @@ -35,7 +37,7 @@ class EndsWithTest extends TestCase * @dataProvider providerForNotEndsWith * @expectedException \Respect\Validation\Exceptions\EndsWithException */ - public function testStringsNotEndingWithExpectedValueShouldNotPass($start, $input, $caseSensitive = false) + public function testStringsNotEndingWithExpectedValueShouldNotPass($start, $input, $caseSensitive = false): void { $v = new EndsWith($start, $caseSensitive); self::assertFalse($v->__invoke($input)); diff --git a/tests/unit/Rules/EqualsTest.php b/tests/unit/Rules/EqualsTest.php index 85a1d625..38ea49f9 100644 --- a/tests/unit/Rules/EqualsTest.php +++ b/tests/unit/Rules/EqualsTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -24,7 +26,7 @@ class EqualsTest extends TestCase /** * @dataProvider providerForEquals */ - public function testInputEqualsToExpectedValueShouldPass($compareTo, $input) + public function testInputEqualsToExpectedValueShouldPass($compareTo, $input): void { $rule = new Equals($compareTo); @@ -34,7 +36,7 @@ class EqualsTest extends TestCase /** * @dataProvider providerForNotEquals */ - public function testInputNotEqualsToExpectedValueShouldPass($compareTo, $input) + public function testInputNotEqualsToExpectedValueShouldPass($compareTo, $input): void { $rule = new Equals($compareTo); @@ -45,7 +47,7 @@ class EqualsTest extends TestCase * @expectedException \Respect\Validation\Exceptions\EqualsException * @expectedExceptionMessage "24" must equal 42 */ - public function testShouldThrowTheProperExceptionWhenFailure() + public function testShouldThrowTheProperExceptionWhenFailure(): void { $rule = new Equals(42); $rule->check('24'); diff --git a/tests/unit/Rules/EvenTest.php b/tests/unit/Rules/EvenTest.php index f3e0d74c..e0720341 100644 --- a/tests/unit/Rules/EvenTest.php +++ b/tests/unit/Rules/EvenTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class EvenTest extends TestCase { protected $evenValidator; - protected function setUp() + protected function setUp(): void { $this->evenValidator = new Even(); } @@ -30,7 +32,7 @@ class EvenTest extends TestCase /** * @dataProvider providerForEven */ - public function testEvenNumbersShouldPass($input) + public function testEvenNumbersShouldPass($input): void { self::assertTrue($this->evenValidator->validate($input)); self::assertTrue($this->evenValidator->check($input)); @@ -41,7 +43,7 @@ class EvenTest extends TestCase * @dataProvider providerForNotEven * @expectedException \Respect\Validation\Exceptions\EvenException */ - public function testNotEvenNumbersShouldFail($input) + public function testNotEvenNumbersShouldFail($input): void { self::assertFalse($this->evenValidator->validate($input)); self::assertFalse($this->evenValidator->assert($input)); diff --git a/tests/unit/Rules/ExecutableTest.php b/tests/unit/Rules/ExecutableTest.php index bedce7ac..0fdd5420 100644 --- a/tests/unit/Rules/ExecutableTest.php +++ b/tests/unit/Rules/ExecutableTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -33,7 +35,7 @@ function is_executable($executable) */ class ExecutableTest extends TestCase { - public function testValidExecutableFileShouldReturnTrue() + public function testValidExecutableFileShouldReturnTrue(): void { $GLOBALS['is_executable'] = true; @@ -42,7 +44,7 @@ class ExecutableTest extends TestCase self::assertTrue($rule->validate($input)); } - public function testInvalidExecutableFileShouldReturnFalse() + public function testInvalidExecutableFileShouldReturnFalse(): void { $GLOBALS['is_executable'] = false; @@ -51,7 +53,7 @@ class ExecutableTest extends TestCase self::assertFalse($rule->validate($input)); } - public function testShouldValidateObjects() + public function testShouldValidateObjects(): void { $rule = new Executable(); $object = $this->createMock('SplFileInfo', ['isExecutable'], ['somefile.txt']); diff --git a/tests/unit/Rules/ExistsTest.php b/tests/unit/Rules/ExistsTest.php index 7f57689d..333eb42c 100644 --- a/tests/unit/Rules/ExistsTest.php +++ b/tests/unit/Rules/ExistsTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use org\bovigo\vfs\content\LargeFileContent; @@ -27,7 +29,7 @@ class ExistsTest extends TestCase * @dataProvider fileProvider * @covers \Respect\Validation\Rules\Exists::validate */ - public function testExistentFileShouldReturnTrue($file) + public function testExistentFileShouldReturnTrue($file): void { $rule = new Exists(); self::assertTrue($rule->validate($file->url())); @@ -36,7 +38,7 @@ class ExistsTest extends TestCase /** * @covers \Respect\Validation\Rules\Exists::validate */ - public function testNonExistentFileShouldReturnFalse() + public function testNonExistentFileShouldReturnFalse(): void { $rule = new Exists(); self::assertFalse($rule->validate('/path/of/a/non-existent/file')); @@ -46,7 +48,7 @@ class ExistsTest extends TestCase * @dataProvider fileProvider * @covers \Respect\Validation\Rules\Exists::validate */ - public function testShouldValidateObjects($file) + public function testShouldValidateObjects($file): void { $rule = new Exists(); $object = new SplFileInfo($file->url()); diff --git a/tests/unit/Rules/ExtensionTest.php b/tests/unit/Rules/ExtensionTest.php index 99f3ed00..328beea6 100644 --- a/tests/unit/Rules/ExtensionTest.php +++ b/tests/unit/Rules/ExtensionTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -35,14 +37,14 @@ class ExtensionTest extends TestCase /** * @dataProvider providerValidExtension */ - public function testShouldValidateExtension($filename, $extension) + public function testShouldValidateExtension($filename, $extension): void { $rule = new Extension($extension); self::assertTrue($rule->validate($filename)); } - public function testShouldAcceptSplFileInfo() + public function testShouldAcceptSplFileInfo(): void { $fileInfo = new SplFileInfo(__FILE__); @@ -51,7 +53,7 @@ class ExtensionTest extends TestCase self::assertTrue($rule->validate($fileInfo)); } - public function testShouldInvalidWhenNotStringNorSplFileInfo() + public function testShouldInvalidWhenNotStringNorSplFileInfo(): void { $nonFile = [__FILE__]; @@ -64,7 +66,7 @@ class ExtensionTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ExtensionException * @expectedExceptionMessage "filename.jpg" must have "png" extension */ - public function testShouldThrowExtensionExceptionWhenCheckingValue() + public function testShouldThrowExtensionExceptionWhenCheckingValue(): void { $rule = new Extension('png'); $rule->check('filename.jpg'); diff --git a/tests/unit/Rules/FactorTest.php b/tests/unit/Rules/FactorTest.php index a76c6d83..53b544ad 100644 --- a/tests/unit/Rules/FactorTest.php +++ b/tests/unit/Rules/FactorTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -28,7 +30,7 @@ class FactorTest extends TestCase /** * @dataProvider providerForValidFactor */ - public function testValidFactorShouldReturnTrue($dividend, $input) + public function testValidFactorShouldReturnTrue($dividend, $input): void { $min = new Factor($dividend); self::assertTrue($min->__invoke($input)); @@ -39,7 +41,7 @@ class FactorTest extends TestCase /** * @dataProvider providerForInvalidFactor */ - public function testInvalidFactorShouldThrowFactorException($dividend, $input) + public function testInvalidFactorShouldThrowFactorException($dividend, $input): void { $this->expectException( FactorException::class, @@ -54,7 +56,7 @@ class FactorTest extends TestCase /** * @dataProvider providerForInvalidFactorDividend */ - public function testInvalidDividentShouldThrowComponentException($dividend, $input) + public function testInvalidDividentShouldThrowComponentException($dividend, $input): void { $this->expectException( ComponentException::class, diff --git a/tests/unit/Rules/FalseValTest.php b/tests/unit/Rules/FalseValTest.php index ea0914bb..366d1bd7 100644 --- a/tests/unit/Rules/FalseValTest.php +++ b/tests/unit/Rules/FalseValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class FalseValTest extends TestCase /** * @dataProvider validFalseProvider */ - public function testShouldValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new FalseVal(); @@ -51,7 +53,7 @@ class FalseValTest extends TestCase /** * @dataProvider invalidFalseProvider */ - public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new FalseVal(); diff --git a/tests/unit/Rules/FibonacciTest.php b/tests/unit/Rules/FibonacciTest.php index 5ab63d10..fde9ac00 100644 --- a/tests/unit/Rules/FibonacciTest.php +++ b/tests/unit/Rules/FibonacciTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/FileTest.php b/tests/unit/Rules/FileTest.php index 2f4934cd..4e0069bb 100644 --- a/tests/unit/Rules/FileTest.php +++ b/tests/unit/Rules/FileTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -36,7 +38,7 @@ class FileTest extends TestCase /** * @covers \Respect\Validation\Rules\File::validate */ - public function testValidFileShouldReturnTrue() + public function testValidFileShouldReturnTrue(): void { $GLOBALS['is_file'] = true; @@ -48,7 +50,7 @@ class FileTest extends TestCase /** * @covers \Respect\Validation\Rules\File::validate */ - public function testInvalidFileShouldReturnFalse() + public function testInvalidFileShouldReturnFalse(): void { $GLOBALS['is_file'] = false; @@ -60,7 +62,7 @@ class FileTest extends TestCase /** * @covers \Respect\Validation\Rules\File::validate */ - public function testShouldValidateObjects() + public function testShouldValidateObjects(): void { $rule = new File(); $object = $this->createMock('SplFileInfo', ['isFile'], ['somefile.txt']); diff --git a/tests/unit/Rules/FilterVarTest.php b/tests/unit/Rules/FilterVarTest.php index b0ae5681..3cc993d4 100644 --- a/tests/unit/Rules/FilterVarTest.php +++ b/tests/unit/Rules/FilterVarTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -24,7 +26,7 @@ class FilterVarTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage Cannot validate without filter flag */ - public function testShouldThrowsExceptionWhenFilterIsNotDefined() + public function testShouldThrowsExceptionWhenFilterIsNotDefined(): void { new FilterVar(); } @@ -33,12 +35,12 @@ class FilterVarTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage Cannot accept the given filter */ - public function testShouldThrowsExceptionWhenFilterIsNotValid() + public function testShouldThrowsExceptionWhenFilterIsNotValid(): void { new FilterVar(FILTER_SANITIZE_EMAIL); } - public function testShouldDefineFilterOnConstructor() + public function testShouldDefineFilterOnConstructor(): void { $rule = new FilterVar(FILTER_VALIDATE_REGEXP); @@ -48,7 +50,7 @@ class FilterVarTest extends TestCase self::assertEquals($expectedArguments, $actualArguments); } - public function testShouldDefineFilterOptionsOnConstructor() + public function testShouldDefineFilterOptionsOnConstructor(): void { $rule = new FilterVar(FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED); @@ -58,14 +60,14 @@ class FilterVarTest extends TestCase self::assertEquals($expectedArguments, $actualArguments); } - public function testShouldUseDefineFilterToValidate() + public function testShouldUseDefineFilterToValidate(): void { $rule = new FilterVar(FILTER_VALIDATE_EMAIL); self::assertTrue($rule->validate('henriquemoody@users.noreply.github.com')); } - public function testShouldUseDefineFilterOptionsToValidate() + public function testShouldUseDefineFilterOptionsToValidate(): void { $rule = new FilterVar(FILTER_VALIDATE_URL, FILTER_FLAG_QUERY_REQUIRED); diff --git a/tests/unit/Rules/FiniteTest.php b/tests/unit/Rules/FiniteTest.php index ffe8467c..17e6635a 100644 --- a/tests/unit/Rules/FiniteTest.php +++ b/tests/unit/Rules/FiniteTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class FiniteTest extends TestCase { protected $rule; - protected function setUp() + protected function setUp(): void { $this->rule = new Finite(); } @@ -30,7 +32,7 @@ class FiniteTest extends TestCase /** * @dataProvider providerForFinite */ - public function testShouldValidateFiniteNumbers($input) + public function testShouldValidateFiniteNumbers($input): void { self::assertTrue($this->rule->validate($input)); } @@ -38,7 +40,7 @@ class FiniteTest extends TestCase /** * @dataProvider providerForNonFinite */ - public function testShouldNotValidateNonFiniteNumbers($input) + public function testShouldNotValidateNonFiniteNumbers($input): void { self::assertFalse($this->rule->validate($input)); } @@ -47,7 +49,7 @@ class FiniteTest extends TestCase * @expectedException \Respect\Validation\Exceptions\FiniteException * @expectedExceptionMessage INF must be a finite number */ - public function testShouldThrowFiniteExceptionWhenChecking() + public function testShouldThrowFiniteExceptionWhenChecking(): void { $this->rule->check(INF); } diff --git a/tests/unit/Rules/FloatTypeTest.php b/tests/unit/Rules/FloatTypeTest.php index 81fb7f51..935d797d 100644 --- a/tests/unit/Rules/FloatTypeTest.php +++ b/tests/unit/Rules/FloatTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/FloatValTest.php b/tests/unit/Rules/FloatValTest.php index 4862776b..4f0cff96 100644 --- a/tests/unit/Rules/FloatValTest.php +++ b/tests/unit/Rules/FloatValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class FloatValTest extends TestCase { protected $floatValidator; - protected function setUp() + protected function setUp(): void { $this->floatValidator = new FloatVal(); } @@ -30,7 +32,7 @@ class FloatValTest extends TestCase /** * @dataProvider providerForFloat */ - public function testFloatNumbersShouldPass($input) + public function testFloatNumbersShouldPass($input): void { self::assertTrue($this->floatValidator->assert($input)); self::assertTrue($this->floatValidator->__invoke($input)); @@ -41,7 +43,7 @@ class FloatValTest extends TestCase * @dataProvider providerForNotFloat * @expectedException \Respect\Validation\Exceptions\FloatValException */ - public function testNotFloatNumbersShouldFail($input) + public function testNotFloatNumbersShouldFail($input): void { self::assertFalse($this->floatValidator->__invoke($input)); self::assertFalse($this->floatValidator->assert($input)); diff --git a/tests/unit/Rules/GraphTest.php b/tests/unit/Rules/GraphTest.php index 8903ec66..6a13c5ea 100644 --- a/tests/unit/Rules/GraphTest.php +++ b/tests/unit/Rules/GraphTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class GraphTest extends TestCase /** * @dataProvider providerForValidGraph */ - public function testValidDataWithGraphCharsShouldReturnTrue($validGraph, $additional = '') + public function testValidDataWithGraphCharsShouldReturnTrue($validGraph, $additional = ''): void { $validator = new Graph($additional); self::assertTrue($validator->validate($validGraph)); @@ -33,7 +35,7 @@ class GraphTest extends TestCase * @dataProvider providerForInvalidGraph * @expectedException \Respect\Validation\Exceptions\GraphException */ - public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph, $additional = '') + public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph, $additional = ''): void { $validator = new Graph($additional); self::assertFalse($validator->validate($invalidGraph)); @@ -44,7 +46,7 @@ class GraphTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Graph($additional); } @@ -52,7 +54,7 @@ class GraphTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Graph($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/HexRgbColorTest.php b/tests/unit/Rules/HexRgbColorTest.php index 1bf513aa..143d465c 100644 --- a/tests/unit/Rules/HexRgbColorTest.php +++ b/tests/unit/Rules/HexRgbColorTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class HexRgbColorTest extends TestCase /** * @dataProvider providerForValidHexRgbColor */ - public function testHexRgbColorValuesONLYShouldReturnTrue($validHexRgbColor) + public function testHexRgbColorValuesONLYShouldReturnTrue($validHexRgbColor): void { $validator = new HexRgbColor(); @@ -33,7 +35,7 @@ class HexRgbColorTest extends TestCase /** * @dataProvider providerForInvalidHexRgbColor */ - public function testInvalidHexRgbColorValuesShouldReturnFalse($invalidHexRgbColor) + public function testInvalidHexRgbColorValuesShouldReturnFalse($invalidHexRgbColor): void { $validator = new HexRgbColor(); diff --git a/tests/unit/Rules/IdenticalTest.php b/tests/unit/Rules/IdenticalTest.php index a5159df8..b08f67f4 100644 --- a/tests/unit/Rules/IdenticalTest.php +++ b/tests/unit/Rules/IdenticalTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -24,7 +26,7 @@ class IdenticalTest extends TestCase /** * @dataProvider providerForIdentical */ - public function testInputIdenticalToExpectedValueShouldPass($compareTo, $input) + public function testInputIdenticalToExpectedValueShouldPass($compareTo, $input): void { $rule = new Identical($compareTo); @@ -34,7 +36,7 @@ class IdenticalTest extends TestCase /** * @dataProvider providerForNotIdentical */ - public function testInputNotIdenticalToExpectedValueShouldPass($compareTo, $input) + public function testInputNotIdenticalToExpectedValueShouldPass($compareTo, $input): void { $rule = new Identical($compareTo); @@ -45,7 +47,7 @@ class IdenticalTest extends TestCase * @expectedException \Respect\Validation\Exceptions\IdenticalException * @expectedExceptionMessage "42" must be identical as 42 */ - public function testShouldThrowTheProperExceptionWhenFailure() + public function testShouldThrowTheProperExceptionWhenFailure(): void { $rule = new Identical(42); $rule->check('42'); diff --git a/tests/unit/Rules/ImageTest.php b/tests/unit/Rules/ImageTest.php index 29caa1d7..d27d79e7 100644 --- a/tests/unit/Rules/ImageTest.php +++ b/tests/unit/Rules/ImageTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use finfo; @@ -21,7 +23,7 @@ use SplFileObject; */ class ImageTest extends RuleTestCase { - public function testShouldAcceptAnInstanceOfFinfoOnConstructor() + public function testShouldAcceptAnInstanceOfFinfoOnConstructor(): void { $finfo = new finfo(FILEINFO_MIME_TYPE); $rule = new Image($finfo); @@ -29,7 +31,7 @@ class ImageTest extends RuleTestCase self::assertSame($rule->fileInfo, $finfo); } - public function testShouldHaveAnInstanceOfFinfoByDefault() + public function testShouldHaveAnInstanceOfFinfoByDefault(): void { $rule = new Image(); diff --git a/tests/unit/Rules/ImeiTest.php b/tests/unit/Rules/ImeiTest.php index 5f72cffd..dfa2ffed 100644 --- a/tests/unit/Rules/ImeiTest.php +++ b/tests/unit/Rules/ImeiTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/InTest.php b/tests/unit/Rules/InTest.php index e187cf5a..2a71f135 100644 --- a/tests/unit/Rules/InTest.php +++ b/tests/unit/Rules/InTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class InTest extends TestCase /** * @dataProvider providerForIn */ - public function testSuccessInValidatorCases($input, $options = null) + public function testSuccessInValidatorCases($input, $options = null): void { $v = new In($options); self::assertTrue($v->__invoke($input)); @@ -35,7 +37,7 @@ class InTest extends TestCase * @dataProvider providerForNotIn * @expectedException \Respect\Validation\Exceptions\InException */ - public function testInvalidInChecksShouldThrowInException($input, $options, $strict = false) + public function testInvalidInChecksShouldThrowInException($input, $options, $strict = false): void { $v = new In($options, $strict); self::assertFalse($v->__invoke($input)); @@ -46,7 +48,7 @@ class InTest extends TestCase * @expectedException \Respect\Validation\Exceptions\InException * @expectedExceptionMessage "x" must be in { "foo", "bar" } */ - public function testInCheckExceptionMessageWithArray() + public function testInCheckExceptionMessageWithArray(): void { $v = new In(['foo', 'bar']); $v->assert('x'); diff --git a/tests/unit/Rules/InfiniteTest.php b/tests/unit/Rules/InfiniteTest.php index 9f96d457..90c2593c 100644 --- a/tests/unit/Rules/InfiniteTest.php +++ b/tests/unit/Rules/InfiniteTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class InfiniteTest extends TestCase { protected $rule; - protected function setUp() + protected function setUp(): void { $this->rule = new Infinite(); } @@ -30,7 +32,7 @@ class InfiniteTest extends TestCase /** * @dataProvider providerForInfinite */ - public function testShouldValidateInfiniteNumbers($input) + public function testShouldValidateInfiniteNumbers($input): void { self::assertTrue($this->rule->validate($input)); } @@ -38,7 +40,7 @@ class InfiniteTest extends TestCase /** * @dataProvider providerForNonInfinite */ - public function testShouldNotValidateNonInfiniteNumbers($input) + public function testShouldNotValidateNonInfiniteNumbers($input): void { self::assertFalse($this->rule->validate($input)); } @@ -47,7 +49,7 @@ class InfiniteTest extends TestCase * @expectedException \Respect\Validation\Exceptions\InfiniteException * @expectedExceptionMessage 123456 must be an infinite number */ - public function testShouldThrowInfiniteExceptionWhenChecking() + public function testShouldThrowInfiniteExceptionWhenChecking(): void { $this->rule->check(123456); } diff --git a/tests/unit/Rules/InstanceTest.php b/tests/unit/Rules/InstanceTest.php index 532547f9..899f20e4 100644 --- a/tests/unit/Rules/InstanceTest.php +++ b/tests/unit/Rules/InstanceTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,12 +24,12 @@ class InstanceTest extends TestCase { protected $instanceValidator; - protected function setUp() + protected function setUp(): void { $this->instanceValidator = new Instance('ArrayObject'); } - public function testInstanceValidationShouldReturnFalseForEmpty() + public function testInstanceValidationShouldReturnFalseForEmpty(): void { self::assertFalse($this->instanceValidator->__invoke('')); } @@ -35,7 +37,7 @@ class InstanceTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\InstanceException */ - public function testInstanceValidationShouldNotAssertEmpty() + public function testInstanceValidationShouldNotAssertEmpty(): void { $this->instanceValidator->assert(''); } @@ -43,12 +45,12 @@ class InstanceTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\InstanceException */ - public function testInstanceValidationShouldNotCheckEmpty() + public function testInstanceValidationShouldNotCheckEmpty(): void { $this->instanceValidator->check(''); } - public function testInstanceValidationShouldReturnTrueForValidInstances() + public function testInstanceValidationShouldReturnTrueForValidInstances(): void { self::assertTrue($this->instanceValidator->__invoke(new \ArrayObject())); self::assertTrue($this->instanceValidator->assert(new \ArrayObject())); @@ -58,7 +60,7 @@ class InstanceTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\InstanceException */ - public function testInvalidInstancesShouldThrowInstanceException() + public function testInvalidInstancesShouldThrowInstanceException(): void { self::assertFalse($this->instanceValidator->validate(new \stdClass())); self::assertFalse($this->instanceValidator->assert(new \stdClass())); diff --git a/tests/unit/Rules/IntTypeTest.php b/tests/unit/Rules/IntTypeTest.php index aa7c7e41..54abbd9a 100644 --- a/tests/unit/Rules/IntTypeTest.php +++ b/tests/unit/Rules/IntTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -32,7 +34,7 @@ class IntTypeTest extends TestCase /** * @dataProvider providerForValidIntType */ - public function testShouldValidateInputWhenItIsAValidIntType($input) + public function testShouldValidateInputWhenItIsAValidIntType($input): void { $rule = new IntType(); @@ -52,7 +54,7 @@ class IntTypeTest extends TestCase /** * @dataProvider providerForInvalidIntType */ - public function testShouldInvalidateInputWhenItIsNotAValidIntType($input) + public function testShouldInvalidateInputWhenItIsNotAValidIntType($input): void { $rule = new IntType(); diff --git a/tests/unit/Rules/IntValTest.php b/tests/unit/Rules/IntValTest.php index 47d30306..0a12aeab 100644 --- a/tests/unit/Rules/IntValTest.php +++ b/tests/unit/Rules/IntValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class IntValTest extends TestCase { protected $intValidator; - protected function setUp() + protected function setUp(): void { $this->intValidator = new IntVal(); } @@ -30,7 +32,7 @@ class IntValTest extends TestCase /** * @dataProvider providerForInt */ - public function testValidIntegersShouldReturnTrue($input) + public function testValidIntegersShouldReturnTrue($input): void { self::assertTrue($this->intValidator->__invoke($input)); self::assertTrue($this->intValidator->check($input)); @@ -41,7 +43,7 @@ class IntValTest extends TestCase * @dataProvider providerForNotInt * @expectedException \Respect\Validation\Exceptions\IntValException */ - public function testInvalidIntegersShouldThrowIntException($input) + public function testInvalidIntegersShouldThrowIntException($input): void { self::assertFalse($this->intValidator->__invoke($input)); self::assertFalse($this->intValidator->assert($input)); diff --git a/tests/unit/Rules/IpTest.php b/tests/unit/Rules/IpTest.php index c990d511..2ac21f0c 100644 --- a/tests/unit/Rules/IpTest.php +++ b/tests/unit/Rules/IpTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class IpTest extends TestCase /** * @dataProvider providerForIp */ - public function testValidIpsShouldReturnTrue($input, $options = null) + public function testValidIpsShouldReturnTrue($input, $options = null): void { $ipValidator = new Ip($options); self::assertTrue($ipValidator->__invoke($input)); @@ -34,7 +36,7 @@ class IpTest extends TestCase /** * @dataProvider providerForIpBetweenRange */ - public function testIpsBetweenRangeShouldReturnTrue($input, $networkRange) + public function testIpsBetweenRangeShouldReturnTrue($input, $networkRange): void { $ipValidator = new Ip($networkRange); self::assertTrue($ipValidator->__invoke($input)); @@ -46,7 +48,7 @@ class IpTest extends TestCase * @dataProvider providerForNotIp * @expectedException \Respect\Validation\Exceptions\IpException */ - public function testInvalidIpsShouldThrowIpException($input, $options = null) + public function testInvalidIpsShouldThrowIpException($input, $options = null): void { $ipValidator = new Ip($options); self::assertFalse($ipValidator->__invoke($input)); @@ -57,7 +59,7 @@ class IpTest extends TestCase * @dataProvider providerForIpOutsideRange * @expectedException \Respect\Validation\Exceptions\IpException */ - public function testIpsOutsideRangeShouldReturnFalse($input, $networkRange) + public function testIpsOutsideRangeShouldReturnFalse($input, $networkRange): void { $ipValidator = new Ip($networkRange); self::assertFalse($ipValidator->__invoke($input)); @@ -125,7 +127,7 @@ class IpTest extends TestCase * @dataProvider providerForInvalidRanges * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidRangeShouldRaiseException($range) + public function testInvalidRangeShouldRaiseException($range): void { $o = new Ip($range); } diff --git a/tests/unit/Rules/IterableTypeTest.php b/tests/unit/Rules/IterableTypeTest.php index 59cbbbbc..218157d6 100644 --- a/tests/unit/Rules/IterableTypeTest.php +++ b/tests/unit/Rules/IterableTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/JsonTest.php b/tests/unit/Rules/JsonTest.php index dcd5fd96..3193225e 100644 --- a/tests/unit/Rules/JsonTest.php +++ b/tests/unit/Rules/JsonTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/KeyNestedTest.php b/tests/unit/Rules/KeyNestedTest.php index bd201c38..bccdf21f 100644 --- a/tests/unit/Rules/KeyNestedTest.php +++ b/tests/unit/Rules/KeyNestedTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use ArrayObject; @@ -21,7 +23,7 @@ use PHPUnit\Framework\TestCase; */ class KeyNestedTest extends TestCase { - public function testArrayWithPresentKeysWillReturnTrueForFullPathValidator() + public function testArrayWithPresentKeysWillReturnTrueForFullPathValidator(): void { $array = [ 'bar' => [ @@ -39,7 +41,7 @@ class KeyNestedTest extends TestCase self::assertTrue($rule->validate($array)); } - public function testArrayWithNumericKeysWillReturnTrueForFullPathValidator() + public function testArrayWithNumericKeysWillReturnTrueForFullPathValidator(): void { $array = [ 0 => 'Zero, the hero!', @@ -50,7 +52,7 @@ class KeyNestedTest extends TestCase self::assertTrue($rule->check($array)); } - public function testArrayWithPresentKeysWillReturnTrueForHalfPathValidator() + public function testArrayWithPresentKeysWillReturnTrueForHalfPathValidator(): void { $array = [ 'bar' => [ @@ -68,7 +70,7 @@ class KeyNestedTest extends TestCase self::assertTrue($rule->validate($array)); } - public function testObjectWithPresentPropertiesWillReturnTrueForDirtyPathValidator() + public function testObjectWithPresentPropertiesWillReturnTrueForDirtyPathValidator(): void { $object = (object) [ 'bar' => (object) [ @@ -86,7 +88,7 @@ class KeyNestedTest extends TestCase self::assertTrue($rule->validate($object)); } - public function testEmptyInputMustReturnFalse() + public function testEmptyInputMustReturnFalse(): void { $rule = new KeyNested('bar.foo.baz'); @@ -96,7 +98,7 @@ class KeyNestedTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\KeyNestedException */ - public function testEmptyInputMustNotAssert() + public function testEmptyInputMustNotAssert(): void { $rule = new KeyNested('bar.foo.baz'); $rule->assert(''); @@ -105,13 +107,13 @@ class KeyNestedTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\KeyNestedException */ - public function testEmptyInputMustNotCheck() + public function testEmptyInputMustNotCheck(): void { $rule = new KeyNested('bar.foo.baz'); $rule->check(''); } - public function testArrayWithEmptyKeyShouldReturnTrue() + public function testArrayWithEmptyKeyShouldReturnTrue(): void { $rule = new KeyNested('emptyKey'); $input = ['emptyKey' => '']; @@ -122,7 +124,7 @@ class KeyNestedTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\KeyNestedException */ - public function testArrayWithAbsentKeyShouldThrowNestedKeyException() + public function testArrayWithAbsentKeyShouldThrowNestedKeyException(): void { $validator = new KeyNested('bar.bar'); $object = [ @@ -136,14 +138,14 @@ class KeyNestedTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\KeyNestedException */ - public function testNotArrayShouldThrowKeyException() + public function testNotArrayShouldThrowKeyException(): void { $validator = new KeyNested('baz.bar'); $object = 123; self::assertFalse($validator->assert($object)); } - public function testExtraValidatorShouldValidateKey() + public function testExtraValidatorShouldValidateKey(): void { $subValidator = new Length(3, 7); $validator = new KeyNested('bar.foo.baz', $subValidator); @@ -157,7 +159,7 @@ class KeyNestedTest extends TestCase self::assertTrue($validator->assert($object)); } - public function testNotMandatoryExtraValidatorShouldPassWithAbsentKey() + public function testNotMandatoryExtraValidatorShouldPassWithAbsentKey(): void { $subValidator = new Length(1, 3); $validator = new KeyNested('bar.rab', $subValidator, false); @@ -165,7 +167,7 @@ class KeyNestedTest extends TestCase self::assertTrue($validator->validate($object)); } - public function testArrayAccessWithPresentKeysWillReturnTrue() + public function testArrayAccessWithPresentKeysWillReturnTrue(): void { $arrayAccess = new ArrayObject([ 'bar' => [ diff --git a/tests/unit/Rules/KeySetTest.php b/tests/unit/Rules/KeySetTest.php index 4469d50f..b56e8fdb 100644 --- a/tests/unit/Rules/KeySetTest.php +++ b/tests/unit/Rules/KeySetTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class KeySetTest extends TestCase { - public function testShouldAcceptKeyRule() + public function testShouldAcceptKeyRule(): void { $key = new Key('foo', new AlwaysValid(), false); $keySet = new KeySet($key); @@ -30,7 +32,7 @@ class KeySetTest extends TestCase self::assertSame(current($rules), $key); } - public function testShouldAcceptAllOfWithOneKeyRule() + public function testShouldAcceptAllOfWithOneKeyRule(): void { $key = new Key('foo', new AlwaysValid(), false); $allOf = new AllOf($key); @@ -45,7 +47,7 @@ class KeySetTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage AllOf rule must have only one Key rule */ - public function testShouldNotAcceptAllOfWithMoreThanOneKeyRule() + public function testShouldNotAcceptAllOfWithMoreThanOneKeyRule(): void { $key1 = new Key('foo', new AlwaysValid(), false); $key2 = new Key('bar', new AlwaysValid(), false); @@ -58,7 +60,7 @@ class KeySetTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage KeySet rule accepts only Key rules */ - public function testShouldNotAcceptAllOfWithANonKeyRule() + public function testShouldNotAcceptAllOfWithANonKeyRule(): void { $alwaysValid = new AlwaysValid(); $allOf = new AllOf($alwaysValid); @@ -70,14 +72,14 @@ class KeySetTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage KeySet rule accepts only Key rules */ - public function testShouldNotAcceptANonKeyRule() + public function testShouldNotAcceptANonKeyRule(): void { $alwaysValid = new AlwaysValid(); new KeySet($alwaysValid); } - public function testShouldReturnKeys() + public function testShouldReturnKeys(): void { $key1 = new Key('foo', new AlwaysValid(), true); $key2 = new Key('bar', new AlwaysValid(), false); @@ -87,7 +89,7 @@ class KeySetTest extends TestCase self::assertEquals(['foo', 'bar'], $keySet->getKeys()); } - public function testShouldValidateKeysWhenThereAreMissingRequiredKeys() + public function testShouldValidateKeysWhenThereAreMissingRequiredKeys(): void { $input = [ 'foo' => 42, @@ -101,7 +103,7 @@ class KeySetTest extends TestCase self::assertFalse($keySet->validate($input)); } - public function testShouldValidateKeysWhenThereAreMissingNonRequiredKeys() + public function testShouldValidateKeysWhenThereAreMissingNonRequiredKeys(): void { $input = [ 'foo' => 42, @@ -115,7 +117,7 @@ class KeySetTest extends TestCase self::assertTrue($keySet->validate($input)); } - public function testShouldValidateKeysWhenThereAreMoreKeys() + public function testShouldValidateKeysWhenThereAreMoreKeys(): void { $input = [ 'foo' => 42, @@ -131,7 +133,7 @@ class KeySetTest extends TestCase self::assertFalse($keySet->validate($input)); } - public function testShouldValidateKeysWhenEmpty() + public function testShouldValidateKeysWhenEmpty(): void { $input = []; @@ -147,7 +149,7 @@ class KeySetTest extends TestCase * @expectedException \Respect\Validation\Exceptions\KeySetException * @expectedExceptionMessage Must have keys { "foo", "bar" } */ - public function testShouldCheckKeys() + public function testShouldCheckKeys(): void { $input = []; @@ -162,7 +164,7 @@ class KeySetTest extends TestCase * @expectedException \Respect\Validation\Exceptions\KeySetException * @expectedExceptionMessage Must have keys { "foo", "bar" } */ - public function testShouldAssertKeys() + public function testShouldAssertKeys(): void { $input = []; @@ -178,7 +180,7 @@ class KeySetTest extends TestCase * @expectedExceptionMessage Must have keys { "name" } * @dataProvider providerForInvalidArguments */ - public function testShouldThrowExceptionInCaseArgumentIsAnythingOtherThanArray($input) + public function testShouldThrowExceptionInCaseArgumentIsAnythingOtherThanArray($input): void { $keySet = new KeySet(new Key('name')); $keySet->assert($input); diff --git a/tests/unit/Rules/KeyTest.php b/tests/unit/Rules/KeyTest.php index f0ab10ba..c62e1898 100644 --- a/tests/unit/Rules/KeyTest.php +++ b/tests/unit/Rules/KeyTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class KeyTest extends TestCase { - public function testArrayWithPresentKeyShouldReturnTrue() + public function testArrayWithPresentKeyShouldReturnTrue(): void { $validator = new Key('bar'); $someArray = []; @@ -28,7 +30,7 @@ class KeyTest extends TestCase self::assertTrue($validator->validate($someArray)); } - public function testArrayWithNumericKeyShouldReturnTrue() + public function testArrayWithNumericKeyShouldReturnTrue(): void { $validator = new Key(0); $someArray = []; @@ -36,7 +38,7 @@ class KeyTest extends TestCase self::assertTrue($validator->validate($someArray)); } - public function testEmptyInputMustReturnFalse() + public function testEmptyInputMustReturnFalse(): void { $validator = new Key('someEmptyKey'); $input = ''; @@ -47,7 +49,7 @@ class KeyTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\KeyException */ - public function testEmptyInputMustNotAssert() + public function testEmptyInputMustNotAssert(): void { $validator = new Key('someEmptyKey'); $validator->assert(''); @@ -56,13 +58,13 @@ class KeyTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\KeyException */ - public function testEmptyInputMustNotCheck() + public function testEmptyInputMustNotCheck(): void { $validator = new Key('someEmptyKey'); $validator->check(''); } - public function testArrayWithEmptyKeyShouldReturnTrue() + public function testArrayWithEmptyKeyShouldReturnTrue(): void { $validator = new Key('someEmptyKey'); $input = []; @@ -71,7 +73,7 @@ class KeyTest extends TestCase self::assertTrue($validator->validate($input)); } - public function testShouldHaveTheSameReturnValueForAllValidators() + public function testShouldHaveTheSameReturnValueForAllValidators(): void { $rule = new Key('key', new NotEmpty()); $input = ['key' => '']; @@ -94,17 +96,18 @@ class KeyTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\KeyException */ - public function testArrayWithAbsentKeyShouldThrowKeyException() + public function testArrayWithAbsentKeyShouldThrowKeyException(): void { $validator = new Key('bar'); $someArray = []; $someArray['baraaaaaa'] = 'foo'; self::assertTrue($validator->assert($someArray)); } + /** * @expectedException \Respect\Validation\Exceptions\KeyException */ - public function testNotArrayShouldThrowKeyException() + public function testNotArrayShouldThrowKeyException(): void { $validator = new Key('bar'); $someArray = 123; @@ -114,12 +117,12 @@ class KeyTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParametersShouldThrowComponentExceptionUponInstantiation() + public function testInvalidConstructorParametersShouldThrowComponentExceptionUponInstantiation(): void { $validator = new Key(['invalid']); } - public function testExtraValidatorShouldValidateKey() + public function testExtraValidatorShouldValidateKey(): void { $subValidator = new Length(1, 3); $validator = new Key('bar', $subValidator); @@ -128,7 +131,7 @@ class KeyTest extends TestCase self::assertTrue($validator->assert($someArray)); } - public function testNotMandatoryExtraValidatorShouldPassWithAbsentKey() + public function testNotMandatoryExtraValidatorShouldPassWithAbsentKey(): void { $subValidator = new Length(1, 3); $validator = new Key('bar', $subValidator, false); diff --git a/tests/unit/Rules/KeyValueTest.php b/tests/unit/Rules/KeyValueTest.php index 8870fcf4..3403fcbe 100644 --- a/tests/unit/Rules/KeyValueTest.php +++ b/tests/unit/Rules/KeyValueTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class KeyValueTest extends TestCase { - public function testShouldDefineValuesOnConstructor() + public function testShouldDefineValuesOnConstructor(): void { $comparedKey = 'foo'; $ruleName = 'equals'; @@ -33,42 +35,42 @@ class KeyValueTest extends TestCase self::assertSame($baseKey, $rule->baseKey); } - public function testShouldNotValidateWhenComparedKeyDoesNotExist() + public function testShouldNotValidateWhenComparedKeyDoesNotExist(): void { $rule = new KeyValue('foo', 'equals', 'bar'); self::assertFalse($rule->validate(['bar' => 42])); } - public function testShouldNotValidateWhenBaseKeyDoesNotExist() + public function testShouldNotValidateWhenBaseKeyDoesNotExist(): void { $rule = new KeyValue('foo', 'equals', 'bar'); self::assertFalse($rule->validate(['foo' => true])); } - public function testShouldNotValidateRuleIsNotValid() + public function testShouldNotValidateRuleIsNotValid(): void { $rule = new KeyValue('foo', 'probably_not_a_rule', 'bar'); self::assertFalse($rule->validate(['foo' => true, 'bar' => false])); } - public function testShouldValidateWhenDefinedValuesMatch() + public function testShouldValidateWhenDefinedValuesMatch(): void { $rule = new KeyValue('foo', 'equals', 'bar'); self::assertTrue($rule->validate(['foo' => 42, 'bar' => 42])); } - public function testShouldValidateWhenDefinedValuesDoesNotMatch() + public function testShouldValidateWhenDefinedValuesDoesNotMatch(): void { $rule = new KeyValue('foo', 'equals', 'bar'); self::assertFalse($rule->validate(['foo' => 43, 'bar' => 42])); } - public function testShouldAssertWhenDefinedValuesMatch() + public function testShouldAssertWhenDefinedValuesMatch(): void { $rule = new KeyValue('foo', 'equals', 'bar'); @@ -79,7 +81,7 @@ class KeyValueTest extends TestCase * @expectedException \Respect\Validation\Exceptions\AllOfException * @expectedExceptionMessage All of the required rules must pass for foo */ - public function testShouldAssertWhenDefinedValuesDoesNotMatch() + public function testShouldAssertWhenDefinedValuesDoesNotMatch(): void { $rule = new KeyValue('foo', 'equals', 'bar'); $rule->assert(['foo' => 43, 'bar' => 42]); @@ -89,13 +91,13 @@ class KeyValueTest extends TestCase * @expectedException \Respect\Validation\Exceptions\KeyValueException * @expectedExceptionMessage "bar" must be valid to validate "foo" */ - public function testShouldNotAssertWhenRuleIsNotValid() + public function testShouldNotAssertWhenRuleIsNotValid(): void { $rule = new KeyValue('foo', 'probably_not_a_rule', 'bar'); $rule->assert(['foo' => 43, 'bar' => 42]); } - public function testShouldCheckWhenDefinedValuesMatch() + public function testShouldCheckWhenDefinedValuesMatch(): void { $rule = new KeyValue('foo', 'equals', 'bar'); @@ -103,10 +105,10 @@ class KeyValueTest extends TestCase } /** - * @expectedException Respect\Validation\Exceptions\EqualsException + * @expectedException \Respect\Validation\Exceptions\EqualsException * @expectedExceptionMessage foo must equal "bar" */ - public function testShouldCheckWhenDefinedValuesDoesNotMatch() + public function testShouldCheckWhenDefinedValuesDoesNotMatch(): void { $rule = new KeyValue('foo', 'equals', 'bar'); $rule->check(['foo' => 43, 'bar' => 42]); diff --git a/tests/unit/Rules/LanguageCodeTest.php b/tests/unit/Rules/LanguageCodeTest.php index 050a193a..07645697 100644 --- a/tests/unit/Rules/LanguageCodeTest.php +++ b/tests/unit/Rules/LanguageCodeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/LeapDateTest.php b/tests/unit/Rules/LeapDateTest.php index 93e2b07e..87845f9c 100644 --- a/tests/unit/Rules/LeapDateTest.php +++ b/tests/unit/Rules/LeapDateTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTime; @@ -23,33 +25,34 @@ class LeapDateTest extends TestCase { protected $leapDateValidator; - protected function setUp() + protected function setUp(): void { $this->leapDateValidator = new LeapDate('Y-m-d'); } - public function testValidLeapDate_with_string() + public function testValidLeapDate_with_string(): void { self::assertTrue($this->leapDateValidator->validate('1988-02-29')); } - public function testValidLeapDate_with_date_time() + public function testValidLeapDate_with_date_time(): void { self::assertTrue($this->leapDateValidator->validate( new DateTime('1988-02-29'))); } - public function testInvalidLeapDate_with_string() + public function testInvalidLeapDate_with_string(): void { self::assertFalse($this->leapDateValidator->validate('1989-02-29')); } - public function testInvalidLeapDate_with_date_time() + public function testInvalidLeapDate_with_date_time(): void { self::assertFalse($this->leapDateValidator->validate( new DateTime('1989-02-29'))); } - public function testInvalidLeapDate_input() + + public function testInvalidLeapDate_input(): void { self::assertFalse($this->leapDateValidator->validate([])); } diff --git a/tests/unit/Rules/LeapYearTest.php b/tests/unit/Rules/LeapYearTest.php index b3b72977..f24b9020 100644 --- a/tests/unit/Rules/LeapYearTest.php +++ b/tests/unit/Rules/LeapYearTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTime; @@ -23,12 +25,12 @@ class LeapYearTest extends TestCase { protected $leapYearValidator; - protected function setUp() + protected function setUp(): void { $this->leapYearValidator = new LeapYear(); } - public function testValidLeapDate() + public function testValidLeapDate(): void { self::assertTrue($this->leapYearValidator->__invoke('2008')); self::assertTrue($this->leapYearValidator->__invoke('2008-02-29')); @@ -37,7 +39,7 @@ class LeapYearTest extends TestCase new DateTime('2008-02-29'))); } - public function testInvalidLeapDate() + public function testInvalidLeapDate(): void { self::assertFalse($this->leapYearValidator->__invoke('')); self::assertFalse($this->leapYearValidator->__invoke('2009')); diff --git a/tests/unit/Rules/LengthTest.php b/tests/unit/Rules/LengthTest.php index 3843bdc3..a43d49aa 100644 --- a/tests/unit/Rules/LengthTest.php +++ b/tests/unit/Rules/LengthTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class LengthTest extends TestCase /** * @dataProvider providerForValidLengthInclusive */ - public function testLengthInsideBoundsForInclusiveCasesReturnTrue($string, $min, $max) + public function testLengthInsideBoundsForInclusiveCasesReturnTrue($string, $min, $max): void { $validator = new Length($min, $max, true); self::assertTrue($validator->validate($string)); @@ -32,7 +34,7 @@ class LengthTest extends TestCase /** * @dataProvider providerForValidLengthNonInclusive */ - public function testLengthInsideBoundsForNonInclusiveCasesShouldReturnTrue($string, $min, $max) + public function testLengthInsideBoundsForNonInclusiveCasesShouldReturnTrue($string, $min, $max): void { $validator = new Length($min, $max, false); self::assertTrue($validator->validate($string)); @@ -41,7 +43,7 @@ class LengthTest extends TestCase /** * @dataProvider providerForInvalidLengthInclusive */ - public function testLengthOutsideBoundsForInclusiveCasesReturnFalse($string, $min, $max) + public function testLengthOutsideBoundsForInclusiveCasesReturnFalse($string, $min, $max): void { $validator = new Length($min, $max, true); self::assertfalse($validator->validate($string)); @@ -50,7 +52,7 @@ class LengthTest extends TestCase /** * @dataProvider providerForInvalidLengthNonInclusive */ - public function testLengthOutsideBoundsForNonInclusiveCasesReturnFalse($string, $min, $max) + public function testLengthOutsideBoundsForNonInclusiveCasesReturnFalse($string, $min, $max): void { $validator = new Length($min, $max, false); self::assertfalse($validator->validate($string)); @@ -60,7 +62,7 @@ class LengthTest extends TestCase * @dataProvider providerForComponentException * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testComponentExceptionsForInvalidParameters($min, $max) + public function testComponentExceptionsForInvalidParameters($min, $max): void { $buggyValidator = new Length($min, $max); } diff --git a/tests/unit/Rules/Locale/PlIdentityCardTest.php b/tests/unit/Rules/Locale/PlIdentityCardTest.php index 8df2510d..b7bdebf2 100644 --- a/tests/unit/Rules/Locale/PlIdentityCardTest.php +++ b/tests/unit/Rules/Locale/PlIdentityCardTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\Locale; use Respect\Validation\Rules\RuleTestCase; diff --git a/tests/unit/Rules/Locale/PlVatinTest.php b/tests/unit/Rules/Locale/PlVatinTest.php index 1fd9b4ac..a3494568 100644 --- a/tests/unit/Rules/Locale/PlVatinTest.php +++ b/tests/unit/Rules/Locale/PlVatinTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules\Locale; use Respect\Validation\Rules\RuleTestCase; diff --git a/tests/unit/Rules/LowercaseTest.php b/tests/unit/Rules/LowercaseTest.php index de285cb6..88816fc3 100644 --- a/tests/unit/Rules/LowercaseTest.php +++ b/tests/unit/Rules/LowercaseTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class LowercaseTest extends TestCase /** * @dataProvider providerForValidLowercase */ - public function testValidLowercaseShouldReturnTrue($input) + public function testValidLowercaseShouldReturnTrue($input): void { $lowercase = new Lowercase(); self::assertTrue($lowercase->__invoke($input)); @@ -35,7 +37,7 @@ class LowercaseTest extends TestCase * @dataProvider providerForInvalidLowercase * @expectedException \Respect\Validation\Exceptions\LowercaseException */ - public function testInvalidLowercaseShouldThrowException($input) + public function testInvalidLowercaseShouldThrowException($input): void { $lowercase = new Lowercase(); self::assertFalse($lowercase->__invoke($input)); diff --git a/tests/unit/Rules/LuhnTest.php b/tests/unit/Rules/LuhnTest.php index 1ee4b16e..e6f75ed4 100644 --- a/tests/unit/Rules/LuhnTest.php +++ b/tests/unit/Rules/LuhnTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/MacAddressTest.php b/tests/unit/Rules/MacAddressTest.php index e2853e8a..861ee6d2 100644 --- a/tests/unit/Rules/MacAddressTest.php +++ b/tests/unit/Rules/MacAddressTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class MacAddressTest extends TestCase { protected $macaddressValidator; - protected function setUp() + protected function setUp(): void { $this->macaddressValidator = new MacAddress(); } @@ -30,7 +32,7 @@ class MacAddressTest extends TestCase /** * @dataProvider providerForMacAddress */ - public function testValidMacaddressesShouldReturnTrue($input) + public function testValidMacaddressesShouldReturnTrue($input): void { self::assertTrue($this->macaddressValidator->__invoke($input)); self::assertTrue($this->macaddressValidator->assert($input)); @@ -41,7 +43,7 @@ class MacAddressTest extends TestCase * @dataProvider providerForNotMacAddress * @expectedException \Respect\Validation\Exceptions\MacAddressException */ - public function testInvalidMacaddressShouldThrowMacAddressException($input) + public function testInvalidMacaddressShouldThrowMacAddressException($input): void { self::assertFalse($this->macaddressValidator->__invoke($input)); self::assertFalse($this->macaddressValidator->assert($input)); diff --git a/tests/unit/Rules/MaxTest.php b/tests/unit/Rules/MaxTest.php index edef22e1..f83afe4d 100644 --- a/tests/unit/Rules/MaxTest.php +++ b/tests/unit/Rules/MaxTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class MaxTest extends TestCase /** * @dataProvider providerForValidMax */ - public function testValidMaxInputShouldReturnTrue($maxValue, $inclusive, $input) + public function testValidMaxInputShouldReturnTrue($maxValue, $inclusive, $input): void { $max = new Max($maxValue, $inclusive); self::assertTrue($max->validate($input)); @@ -35,7 +37,7 @@ class MaxTest extends TestCase * @dataProvider providerForInvalidMax * @expectedException \Respect\Validation\Exceptions\MaxException */ - public function testInvalidMaxValueShouldThrowMaxException($maxValue, $inclusive, $input) + public function testInvalidMaxValueShouldThrowMaxException($maxValue, $inclusive, $input): void { $max = new Max($maxValue, $inclusive); self::assertFalse($max->validate($input)); diff --git a/tests/unit/Rules/MimetypeTest.php b/tests/unit/Rules/MimetypeTest.php index fec3bc34..c95b4ad5 100644 --- a/tests/unit/Rules/MimetypeTest.php +++ b/tests/unit/Rules/MimetypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -35,12 +37,12 @@ class MimetypeTest extends TestCase file_put_contents($this->filename, 'File content'); } - protected function tearDown() + protected function tearDown(): void { unlink($this->filename); } - public function testShouldValidateMimetype() + public function testShouldValidateMimetype(): void { $mimetype = 'plain/text'; @@ -61,7 +63,7 @@ class MimetypeTest extends TestCase $rule->validate($this->filename); } - public function testShouldValidateSplFileInfoMimetype() + public function testShouldValidateSplFileInfoMimetype(): void { $fileInfo = new SplFileInfo($this->filename); $mimetype = 'plain/text'; @@ -83,14 +85,14 @@ class MimetypeTest extends TestCase self::assertTrue($rule->validate($fileInfo)); } - public function testShouldInvalidateWhenNotStringNorSplFileInfo() + public function testShouldInvalidateWhenNotStringNorSplFileInfo(): void { $rule = new Mimetype('application/octet-stream'); self::assertFalse($rule->validate([__FILE__])); } - public function testShouldInvalidateWhenItIsNotAValidFile() + public function testShouldInvalidateWhenItIsNotAValidFile(): void { $rule = new Mimetype('application/octet-stream'); @@ -101,7 +103,7 @@ class MimetypeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\MimetypeException * @expectedExceptionMessageRegExp #".+MimetypeTest.php" must have "application.?/json" mimetype# */ - public function testShouldThrowMimetypeExceptionWhenCheckingValue() + public function testShouldThrowMimetypeExceptionWhenCheckingValue(): void { $rule = new Mimetype('application/json'); $rule->check(__FILE__); diff --git a/tests/unit/Rules/MinTest.php b/tests/unit/Rules/MinTest.php index 289d6785..85dca6e9 100644 --- a/tests/unit/Rules/MinTest.php +++ b/tests/unit/Rules/MinTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTime; @@ -24,7 +26,7 @@ class MinTest extends TestCase /** * @dataProvider providerForValidMin */ - public function testValidMinShouldReturnTrue($minValue, $inclusive, $input) + public function testValidMinShouldReturnTrue($minValue, $inclusive, $input): void { $min = new Min($minValue, $inclusive); self::assertTrue($min->__invoke($input)); @@ -36,7 +38,7 @@ class MinTest extends TestCase * @dataProvider providerForInvalidMin * @expectedException \Respect\Validation\Exceptions\MinException */ - public function testInvalidMinShouldThrowMinException($minValue, $inclusive, $input) + public function testInvalidMinShouldThrowMinException($minValue, $inclusive, $input): void { $min = new Min($minValue, $inclusive); self::assertFalse($min->__invoke($input)); diff --git a/tests/unit/Rules/MininumAgeTest.php b/tests/unit/Rules/MininumAgeTest.php index c80d33d4..0f8f54d7 100644 --- a/tests/unit/Rules/MininumAgeTest.php +++ b/tests/unit/Rules/MininumAgeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class MininumAgeTest extends TestCase /** * @dataProvider providerForValidDateValidMinimumAge */ - public function testValidMinimumAgeInsideBoundsShouldPass($age, $format, $input) + public function testValidMinimumAgeInsideBoundsShouldPass($age, $format, $input): void { $minimumAge = new MinimumAge($age, $format); self::assertTrue($minimumAge->__invoke($input)); @@ -35,7 +37,7 @@ class MininumAgeTest extends TestCase * @dataProvider providerForValidDateInvalidMinimumAge * @expectedException \Respect\Validation\Exceptions\MinimumAgeException */ - public function testInvalidMinimumAgeShouldThrowException($age, $format, $input) + public function testInvalidMinimumAgeShouldThrowException($age, $format, $input): void { $minimumAge = new MinimumAge($age, $format); self::assertFalse($minimumAge->__invoke($input)); @@ -46,7 +48,7 @@ class MininumAgeTest extends TestCase * @dataProvider providerForInvalidDate * @expectedException \Respect\Validation\Exceptions\MinimumAgeException */ - public function testInvalidDateShouldNotPass($age, $format, $input) + public function testInvalidDateShouldNotPass($age, $format, $input): void { $minimumAge = new MinimumAge($age, $format); self::assertFalse($minimumAge->__invoke($input)); @@ -57,7 +59,7 @@ class MininumAgeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage The age must be a integer value */ - public function testShouldNotAcceptNonIntegerAgeOnConstructor() + public function testShouldNotAcceptNonIntegerAgeOnConstructor(): void { new MinimumAge('L12'); } diff --git a/tests/unit/Rules/MultipleTest.php b/tests/unit/Rules/MultipleTest.php index 6ef20332..6bd834ab 100644 --- a/tests/unit/Rules/MultipleTest.php +++ b/tests/unit/Rules/MultipleTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class MultipleTest extends TestCase /** * @dataProvider providerForMultiple */ - public function testValidNumberMultipleOf($multipleOf, $input) + public function testValidNumberMultipleOf($multipleOf, $input): void { $multiple = new Multiple($multipleOf); self::assertTrue($multiple->validate($input)); @@ -35,7 +37,7 @@ class MultipleTest extends TestCase * @dataProvider providerForNotMultiple * @expectedException \Respect\Validation\Exceptions\MultipleException */ - public function testNotMultipleShouldThrowMultipleException($multipleOf, $input) + public function testNotMultipleShouldThrowMultipleException($multipleOf, $input): void { $multiple = new Multiple($multipleOf); self::assertFalse($multiple->validate($input)); diff --git a/tests/unit/Rules/NegativeTest.php b/tests/unit/Rules/NegativeTest.php index 707bca8b..43b7d92b 100644 --- a/tests/unit/Rules/NegativeTest.php +++ b/tests/unit/Rules/NegativeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class NegativeTest extends TestCase { protected $negativeValidator; - protected function setUp() + protected function setUp(): void { $this->negativeValidator = new Negative(); } @@ -30,7 +32,7 @@ class NegativeTest extends TestCase /** * @dataProvider providerForNegative */ - public function testNegativeShouldPass($input) + public function testNegativeShouldPass($input): void { self::assertTrue($this->negativeValidator->assert($input)); self::assertTrue($this->negativeValidator->__invoke($input)); @@ -41,7 +43,7 @@ class NegativeTest extends TestCase * @dataProvider providerForNotNegative * @expectedException \Respect\Validation\Exceptions\NegativeException */ - public function testNotNegativeNumbersShouldThrowNegativeException($input) + public function testNotNegativeNumbersShouldThrowNegativeException($input): void { self::assertFalse($this->negativeValidator->__invoke($input)); self::assertFalse($this->negativeValidator->assert($input)); diff --git a/tests/unit/Rules/NfeAccessKeyTest.php b/tests/unit/Rules/NfeAccessKeyTest.php index 0da72138..f6f47365 100644 --- a/tests/unit/Rules/NfeAccessKeyTest.php +++ b/tests/unit/Rules/NfeAccessKeyTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class NfeAccessKeyTest extends TestCase { protected $nfeValidator; - protected function setUp() + protected function setUp(): void { $this->nfeValidator = new NfeAccessKey(); } @@ -30,7 +32,7 @@ class NfeAccessKeyTest extends TestCase /** * @dataProvider validAccessKeyProvider */ - public function testValidAccessKey($aK) + public function testValidAccessKey($aK): void { self::assertTrue($this->nfeValidator->assert($aK)); self::assertTrue($this->nfeValidator->__invoke($aK)); @@ -41,7 +43,7 @@ class NfeAccessKeyTest extends TestCase * @dataProvider invalidAccessKeyProvider * @expectedException \Respect\Validation\Exceptions\NfeAccessKeyException */ - public function testInvalidAccessKey($aK) + public function testInvalidAccessKey($aK): void { self::assertFalse($this->nfeValidator->assert($aK)); } @@ -50,7 +52,7 @@ class NfeAccessKeyTest extends TestCase * @dataProvider invalidAccessKeyLengthProvider * @expectedException \Respect\Validation\Exceptions\NfeAccessKeyException */ - public function testInvalidLengthCnh($aK) + public function testInvalidLengthCnh($aK): void { self::assertFalse($this->nfeValidator->assert($aK)); } diff --git a/tests/unit/Rules/NifTest.php b/tests/unit/Rules/NifTest.php index 82bfcb91..5ba34347 100644 --- a/tests/unit/Rules/NifTest.php +++ b/tests/unit/Rules/NifTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/NoTest.php b/tests/unit/Rules/NoTest.php index eac7b5b9..31550ff1 100644 --- a/tests/unit/Rules/NoTest.php +++ b/tests/unit/Rules/NoTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class NoTest extends TestCase { - public function testShouldUseDefaultPattern() + public function testShouldUseDefaultPattern(): void { $rule = new No(); @@ -30,7 +32,7 @@ class NoTest extends TestCase self::assertEquals($expectedPattern, $actualPattern); } - public function testShouldUseLocalPatternForNoExpressionWhenDefined() + public function testShouldUseLocalPatternForNoExpressionWhenDefined(): void { if (!defined('NOEXPR')) { $this->markTestSkipped('Constant NOEXPR is not defined'); @@ -49,7 +51,7 @@ class NoTest extends TestCase /** * @dataProvider validNoProvider */ - public function testShouldValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new No(); @@ -71,7 +73,7 @@ class NoTest extends TestCase /** * @dataProvider invalidNoProvider */ - public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new No(); diff --git a/tests/unit/Rules/NoWhitespaceTest.php b/tests/unit/Rules/NoWhitespaceTest.php index 2b5bd372..506bf29c 100644 --- a/tests/unit/Rules/NoWhitespaceTest.php +++ b/tests/unit/Rules/NoWhitespaceTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class NoWhitespaceTest extends TestCase { protected $noWhitespaceValidator; - protected function setUp() + protected function setUp(): void { $this->noWhitespaceValidator = new NoWhitespace(); } @@ -30,7 +32,7 @@ class NoWhitespaceTest extends TestCase /** * @dataProvider providerForPass */ - public function testStringWithNoWhitespaceShouldPass($input) + public function testStringWithNoWhitespaceShouldPass($input): void { self::assertTrue($this->noWhitespaceValidator->__invoke($input)); self::assertTrue($this->noWhitespaceValidator->check($input)); @@ -41,15 +43,16 @@ class NoWhitespaceTest extends TestCase * @dataProvider providerForFail * @expectedException \Respect\Validation\Exceptions\NoWhitespaceException */ - public function testStringWithWhitespaceShouldFail($input) + public function testStringWithWhitespaceShouldFail($input): void { self::assertFalse($this->noWhitespaceValidator->__invoke($input)); self::assertFalse($this->noWhitespaceValidator->assert($input)); } + /** * @expectedException \Respect\Validation\Exceptions\NoWhitespaceException */ - public function testStringWithLineBreaksShouldFail() + public function testStringWithLineBreaksShouldFail(): void { self::assertFalse($this->noWhitespaceValidator->__invoke("w\npoiur")); self::assertFalse($this->noWhitespaceValidator->assert("w\npoiur")); @@ -81,7 +84,7 @@ class NoWhitespaceTest extends TestCase * @issue 346 * @expectedException \Respect\Validation\Exceptions\NoWhitespaceException */ - public function testArrayDoesNotThrowAWarning() + public function testArrayDoesNotThrowAWarning(): void { $this->noWhitespaceValidator->assert([]); } diff --git a/tests/unit/Rules/NoneOfTest.php b/tests/unit/Rules/NoneOfTest.php index 0a1f4019..62e7ca05 100644 --- a/tests/unit/Rules/NoneOfTest.php +++ b/tests/unit/Rules/NoneOfTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class NoneOfTest extends TestCase { - public function testValid() + public function testValid(): void { $valid1 = new Callback(function () { return false; @@ -40,7 +42,7 @@ class NoneOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\NoneOfException */ - public function testInvalid() + public function testInvalid(): void { $valid1 = new Callback(function () { return false; diff --git a/tests/unit/Rules/NotBlankTest.php b/tests/unit/Rules/NotBlankTest.php index 85751a96..721b33ee 100644 --- a/tests/unit/Rules/NotBlankTest.php +++ b/tests/unit/Rules/NotBlankTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -24,7 +26,7 @@ class NotBlankTest extends TestCase /** * @dataProvider providerForNotBlank */ - public function testShouldValidateWhenNotBlank($input) + public function testShouldValidateWhenNotBlank($input): void { $rule = new NotBlank(); @@ -34,7 +36,7 @@ class NotBlankTest extends TestCase /** * @dataProvider providerForBlank */ - public function testShouldNotValidateWhenBlank($input) + public function testShouldNotValidateWhenBlank($input): void { $rule = new NotBlank(); @@ -45,7 +47,7 @@ class NotBlankTest extends TestCase * @expectedException \Respect\Validation\Exceptions\NotBlankException * @expectedExceptionMessage The value must not be blank */ - public function testShouldThrowExceptionWhenFailure() + public function testShouldThrowExceptionWhenFailure(): void { $rule = new NotBlank(); $rule->check(0); @@ -55,7 +57,7 @@ class NotBlankTest extends TestCase * @expectedException \Respect\Validation\Exceptions\NotBlankException * @expectedExceptionMessage whatever must not be blank */ - public function testShouldThrowExceptionWhenFailureAndDoesHaveAName() + public function testShouldThrowExceptionWhenFailureAndDoesHaveAName(): void { $rule = new NotBlank(); $rule->setName('whatever'); diff --git a/tests/unit/Rules/NotEmptyTest.php b/tests/unit/Rules/NotEmptyTest.php index 64a9f3b7..10e35426 100644 --- a/tests/unit/Rules/NotEmptyTest.php +++ b/tests/unit/Rules/NotEmptyTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class NotEmptyTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new NotEmpty(); } @@ -30,7 +32,7 @@ class NotEmptyTest extends TestCase /** * @dataProvider providerForNotEmpty */ - public function testStringNotEmpty($input) + public function testStringNotEmpty($input): void { self::assertTrue($this->object->assert($input)); } @@ -39,7 +41,7 @@ class NotEmptyTest extends TestCase * @dataProvider providerForEmpty * @expectedException \Respect\Validation\Exceptions\NotEmptyException */ - public function testStringEmpty($input) + public function testStringEmpty($input): void { self::assertFalse($this->object->assert($input)); } diff --git a/tests/unit/Rules/NotOptionalTest.php b/tests/unit/Rules/NotOptionalTest.php index 3739ab1d..2b747658 100644 --- a/tests/unit/Rules/NotOptionalTest.php +++ b/tests/unit/Rules/NotOptionalTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class NotOptionalTest extends TestCase /** * @dataProvider providerForNotOptional */ - public function testShouldValidateWhenNotOptional($input) + public function testShouldValidateWhenNotOptional($input): void { $rule = new NotOptional(); @@ -33,7 +35,7 @@ class NotOptionalTest extends TestCase /** * @dataProvider providerForOptional */ - public function testShouldNotValidateWhenOptional($input) + public function testShouldNotValidateWhenOptional($input): void { $rule = new NotOptional(); diff --git a/tests/unit/Rules/NotTest.php b/tests/unit/Rules/NotTest.php index d6a8b785..afe91e6d 100644 --- a/tests/unit/Rules/NotTest.php +++ b/tests/unit/Rules/NotTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -24,7 +26,7 @@ class NotTest extends TestCase /** * @dataProvider providerForValidNot */ - public function testNot($v, $input) + public function testNot($v, $input): void { $not = new Not($v); self::assertTrue($not->assert($input)); @@ -34,7 +36,7 @@ class NotTest extends TestCase * @dataProvider providerForInvalidNot * @expectedException \Respect\Validation\Exceptions\ValidationException */ - public function testNotNotHaha($v, $input) + public function testNotNotHaha($v, $input): void { $not = new Not($v); self::assertFalse($not->assert($input)); @@ -43,7 +45,7 @@ class NotTest extends TestCase /** * @dataProvider providerForSetName */ - public function testNotSetName($v) + public function testNotSetName($v): void { $not = new Not($v); $not->setName('Foo'); diff --git a/tests/unit/Rules/NullTypeTest.php b/tests/unit/Rules/NullTypeTest.php index fc1724e9..9b40854c 100644 --- a/tests/unit/Rules/NullTypeTest.php +++ b/tests/unit/Rules/NullTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,12 +24,12 @@ class NullTypeTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new NullType(); } - public function testNullValue() + public function testNullValue(): void { self::assertTrue($this->object->assert(null)); self::assertTrue($this->object->__invoke(null)); @@ -38,7 +40,7 @@ class NullTypeTest extends TestCase * @dataProvider providerForNotNull * @expectedException \Respect\Validation\Exceptions\NullTypeException */ - public function testNotNull($input) + public function testNotNull($input): void { self::assertFalse($this->object->__invoke($input)); self::assertFalse($this->object->assert($input)); diff --git a/tests/unit/Rules/NumberTest.php b/tests/unit/Rules/NumberTest.php index 02a697c6..dd802739 100644 --- a/tests/unit/Rules/NumberTest.php +++ b/tests/unit/Rules/NumberTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use stdClass; diff --git a/tests/unit/Rules/NumericValTest.php b/tests/unit/Rules/NumericValTest.php index 01dd02ac..ffcbf6fb 100644 --- a/tests/unit/Rules/NumericValTest.php +++ b/tests/unit/Rules/NumericValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class NumericValTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new NumericVal(); } @@ -30,7 +32,7 @@ class NumericValTest extends TestCase /** * @dataProvider providerForNumeric */ - public function testNumeric($input) + public function testNumeric($input): void { self::assertTrue($this->object->__invoke($input)); self::assertTrue($this->object->check($input)); @@ -41,7 +43,7 @@ class NumericValTest extends TestCase * @dataProvider providerForNotNumeric * @expectedException \Respect\Validation\Exceptions\NumericValException */ - public function testNotNumeric($input) + public function testNotNumeric($input): void { self::assertFalse($this->object->__invoke($input)); self::assertFalse($this->object->assert($input)); diff --git a/tests/unit/Rules/ObjectTypeTest.php b/tests/unit/Rules/ObjectTypeTest.php index b1cca014..27164311 100644 --- a/tests/unit/Rules/ObjectTypeTest.php +++ b/tests/unit/Rules/ObjectTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class ObjectTypeTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new ObjectType(); } @@ -30,7 +32,7 @@ class ObjectTypeTest extends TestCase /** * @dataProvider providerForObject */ - public function testObject($input) + public function testObject($input): void { self::assertTrue($this->object->__invoke($input)); self::assertTrue($this->object->assert($input)); @@ -41,7 +43,7 @@ class ObjectTypeTest extends TestCase * @dataProvider providerForNotObject * @expectedException \Respect\Validation\Exceptions\ObjectTypeException */ - public function testNotObject($input) + public function testNotObject($input): void { self::assertFalse($this->object->__invoke($input)); self::assertFalse($this->object->assert($input)); diff --git a/tests/unit/Rules/OddTest.php b/tests/unit/Rules/OddTest.php index 93f982e9..8b2a34dc 100644 --- a/tests/unit/Rules/OddTest.php +++ b/tests/unit/Rules/OddTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class OddTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new Odd(); } @@ -30,7 +32,7 @@ class OddTest extends TestCase /** * @dataProvider providerForOdd */ - public function testOdd($input) + public function testOdd($input): void { self::assertTrue($this->object->assert($input)); self::assertTrue($this->object->__invoke($input)); @@ -41,7 +43,7 @@ class OddTest extends TestCase * @dataProvider providerForNotOdd * @expectedException \Respect\Validation\Exceptions\OddException */ - public function testNotOdd($input) + public function testNotOdd($input): void { self::assertFalse($this->object->__invoke($input)); self::assertFalse($this->object->assert($input)); diff --git a/tests/unit/Rules/OneOfTest.php b/tests/unit/Rules/OneOfTest.php index 13a0411e..fca4acc8 100644 --- a/tests/unit/Rules/OneOfTest.php +++ b/tests/unit/Rules/OneOfTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class OneOfTest extends TestCase { - public function testValid() + public function testValid(): void { $valid1 = new Callback(function () { return false; @@ -42,7 +44,7 @@ class OneOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\OneOfException */ - public function testEmptyChain() + public function testEmptyChain(): void { $rule = new OneOf(); @@ -53,7 +55,7 @@ class OneOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\OneOfException */ - public function testInvalid() + public function testInvalid(): void { $valid1 = new Callback(function () { return false; @@ -72,7 +74,7 @@ class OneOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\OneOfException */ - public function testInvalidMultipleAssert() + public function testInvalidMultipleAssert(): void { $valid1 = new Callback(function () { return true; @@ -92,7 +94,7 @@ class OneOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\CallbackException */ - public function testInvalidMultipleCheck() + public function testInvalidMultipleCheck(): void { $valid1 = new Callback(function () { return true; @@ -109,10 +111,11 @@ class OneOfTest extends TestCase $rule->check('any'); } + /** * @expectedException \Respect\Validation\Exceptions\OneOfException */ - public function testInvalidMultipleCheckAllValid() + public function testInvalidMultipleCheckAllValid(): void { $valid1 = new Callback(function () { return true; @@ -133,7 +136,7 @@ class OneOfTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\XdigitException */ - public function testInvalidCheck() + public function testInvalidCheck(): void { $rule = new OneOf(new Xdigit(), new Alnum()); self::assertFalse($rule->validate(-10)); diff --git a/tests/unit/Rules/OptionalTest.php b/tests/unit/Rules/OptionalTest.php index 8a009900..01589502 100644 --- a/tests/unit/Rules/OptionalTest.php +++ b/tests/unit/Rules/OptionalTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -50,7 +52,7 @@ class OptionalTest extends TestCase ]; } - public function testShouldAcceptInstanceOfValidatobleOnConstructor() + public function testShouldAcceptInstanceOfValidatobleOnConstructor(): void { $validatable = $this->createMock(Validatable::class); $rule = new Optional($validatable); @@ -61,7 +63,7 @@ class OptionalTest extends TestCase /** * @dataProvider providerForOptional */ - public function testShouldNotValidateRuleWhenInputIsOptional($input) + public function testShouldNotValidateRuleWhenInputIsOptional($input): void { $validatable = $this->createMock(Validatable::class); $validatable @@ -76,7 +78,7 @@ class OptionalTest extends TestCase /** * @dataProvider providerForNotOptional */ - public function testShouldValidateRuleWhenInputIsNotOptional($input) + public function testShouldValidateRuleWhenInputIsNotOptional($input): void { $validatable = $this->createMock(Validatable::class); $validatable @@ -90,7 +92,7 @@ class OptionalTest extends TestCase self::assertTrue($rule->validate($input)); } - public function testShouldNotAssertRuleWhenInputIsOptional() + public function testShouldNotAssertRuleWhenInputIsOptional(): void { $validatable = $this->createMock(Validatable::class); $validatable @@ -102,7 +104,7 @@ class OptionalTest extends TestCase self::assertTrue($rule->assert('')); } - public function testShouldAssertRuleWhenInputIsNotOptional() + public function testShouldAssertRuleWhenInputIsNotOptional(): void { $input = 'foo'; @@ -118,7 +120,7 @@ class OptionalTest extends TestCase self::assertTrue($rule->assert($input)); } - public function testShouldNotCheckRuleWhenInputIsOptional() + public function testShouldNotCheckRuleWhenInputIsOptional(): void { $validatable = $this->createMock(Validatable::class); $validatable @@ -130,7 +132,7 @@ class OptionalTest extends TestCase self::assertTrue($rule->check('')); } - public function testShouldCheckRuleWhenInputIsNotOptional() + public function testShouldCheckRuleWhenInputIsNotOptional(): void { $input = 'foo'; diff --git a/tests/unit/Rules/PerfectSquareTest.php b/tests/unit/Rules/PerfectSquareTest.php index 4ae68a1f..8a918fca 100644 --- a/tests/unit/Rules/PerfectSquareTest.php +++ b/tests/unit/Rules/PerfectSquareTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class PerfectSquareTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new PerfectSquare(); } @@ -30,7 +32,7 @@ class PerfectSquareTest extends TestCase /** * @dataProvider providerForPerfectSquare */ - public function testPerfectSquare($input) + public function testPerfectSquare($input): void { self::assertTrue($this->object->__invoke($input)); self::assertTrue($this->object->check($input)); @@ -41,7 +43,7 @@ class PerfectSquareTest extends TestCase * @dataProvider providerForNotPerfectSquare * @expectedException \Respect\Validation\Exceptions\PerfectSquareException */ - public function testNotPerfectSquare($input) + public function testNotPerfectSquare($input): void { self::assertFalse($this->object->__invoke($input)); self::assertFalse($this->object->assert($input)); diff --git a/tests/unit/Rules/PeselTest.php b/tests/unit/Rules/PeselTest.php index 2cdbc3fd..8afc1111 100644 --- a/tests/unit/Rules/PeselTest.php +++ b/tests/unit/Rules/PeselTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/PhoneTest.php b/tests/unit/Rules/PhoneTest.php index 0a907d65..5f4621ed 100644 --- a/tests/unit/Rules/PhoneTest.php +++ b/tests/unit/Rules/PhoneTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class PhoneTest extends TestCase { protected $phoneValidator; - protected function setUp() + protected function setUp(): void { $this->phoneValidator = new Phone(); } @@ -30,7 +32,7 @@ class PhoneTest extends TestCase /** * @dataProvider providerForPhone */ - public function testValidPhoneShouldReturnTrue($input) + public function testValidPhoneShouldReturnTrue($input): void { self::assertTrue($this->phoneValidator->__invoke($input)); self::assertTrue($this->phoneValidator->assert($input)); @@ -41,7 +43,7 @@ class PhoneTest extends TestCase * @dataProvider providerForNotPhone * @expectedException \Respect\Validation\Exceptions\PhoneException */ - public function testInvalidPhoneShouldThrowPhoneException($input) + public function testInvalidPhoneShouldThrowPhoneException($input): void { self::assertFalse($this->phoneValidator->__invoke($input)); self::assertFalse($this->phoneValidator->assert($input)); diff --git a/tests/unit/Rules/PhpLabelTest.php b/tests/unit/Rules/PhpLabelTest.php index 6fd215c2..853dafb0 100644 --- a/tests/unit/Rules/PhpLabelTest.php +++ b/tests/unit/Rules/PhpLabelTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -49,7 +51,7 @@ class PhpLabelTest extends RuleTestCase [$rule, 'f o o'], [$rule, '0ne'], [$rule, '0_ne'], - [$rule, uniqid(mt_rand(0, 9))], + [$rule, uniqid((string) random_int(0, 9))], [$rule, null], [$rule, mt_rand()], [$rule, 0], diff --git a/tests/unit/Rules/PisTest.php b/tests/unit/Rules/PisTest.php index 7b79a5f4..11a0ca02 100644 --- a/tests/unit/Rules/PisTest.php +++ b/tests/unit/Rules/PisTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use stdClass; diff --git a/tests/unit/Rules/PositiveTest.php b/tests/unit/Rules/PositiveTest.php index 88298834..a02dcb4d 100644 --- a/tests/unit/Rules/PositiveTest.php +++ b/tests/unit/Rules/PositiveTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class PositiveTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new Positive(); } @@ -30,7 +32,7 @@ class PositiveTest extends TestCase /** * @dataProvider providerForPositive */ - public function testPositive($input) + public function testPositive($input): void { self::assertTrue($this->object->__invoke($input)); self::assertTrue($this->object->check($input)); @@ -41,7 +43,7 @@ class PositiveTest extends TestCase * @dataProvider providerForNotPositive * @expectedException \Respect\Validation\Exceptions\PositiveException */ - public function testNotPositive($input) + public function testNotPositive($input): void { self::assertFalse($this->object->__invoke($input)); self::assertFalse($this->object->assert($input)); diff --git a/tests/unit/Rules/PostalCodeTest.php b/tests/unit/Rules/PostalCodeTest.php index 92229d18..a0acb7d6 100644 --- a/tests/unit/Rules/PostalCodeTest.php +++ b/tests/unit/Rules/PostalCodeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class PostalCodeTest extends TestCase { - public function testShouldUsePatternAccordingToCountryCode() + public function testShouldUsePatternAccordingToCountryCode(): void { $countryCode = 'BR'; @@ -32,7 +34,7 @@ class PostalCodeTest extends TestCase self::assertEquals($expectedPattern, $actualPattern); } - public function testShouldNotBeCaseSensitiveWhenChoosingPatternAccordingToCountryCode() + public function testShouldNotBeCaseSensitiveWhenChoosingPatternAccordingToCountryCode(): void { $rule1 = new PostalCode('BR'); $rule2 = new PostalCode('br'); @@ -40,7 +42,7 @@ class PostalCodeTest extends TestCase self::assertEquals($rule1->regex, $rule2->regex); } - public function testShouldUseDefaultPatternWhenCountryCodeDoesNotHavePostalCode() + public function testShouldUseDefaultPatternWhenCountryCodeDoesNotHavePostalCode(): void { $rule = new PostalCode('ZW'); @@ -50,14 +52,14 @@ class PostalCodeTest extends TestCase self::assertEquals($expectedPattern, $actualPattern); } - public function testShouldValidateEmptyStringsWhenUsingDefaultPattern() + public function testShouldValidateEmptyStringsWhenUsingDefaultPattern(): void { $rule = new PostalCode('ZW'); self::assertTrue($rule->validate('')); } - public function testShouldNotValidateNonEmptyStringsWhenUsingDefaultPattern() + public function testShouldNotValidateNonEmptyStringsWhenUsingDefaultPattern(): void { $rule = new PostalCode('ZW'); @@ -68,7 +70,7 @@ class PostalCodeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage Cannot validate postal code from "Whatever" country */ - public function testShouldThrowsExceptionWhenCountryCodeIsNotValid() + public function testShouldThrowsExceptionWhenCountryCodeIsNotValid(): void { new PostalCode('Whatever'); } @@ -76,7 +78,7 @@ class PostalCodeTest extends TestCase /** * @dataProvider validPostalCodesProvider */ - public function testShouldValidatePatternAccordingToTheDefinedCountryCode($countryCode, $postalCode) + public function testShouldValidatePatternAccordingToTheDefinedCountryCode($countryCode, $postalCode): void { $rule = new PostalCode($countryCode); @@ -99,7 +101,7 @@ class PostalCodeTest extends TestCase /** * @dataProvider invalidPostalCodesProvider */ - public function testShouldNotValidatePatternAccordingToTheDefinedCountryCode($countryCode, $postalCode) + public function testShouldNotValidatePatternAccordingToTheDefinedCountryCode($countryCode, $postalCode): void { $rule = new PostalCode($countryCode); @@ -110,7 +112,7 @@ class PostalCodeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\PostalCodeException * @expectedExceptionMessage "02179-000" must be a valid postal code on "US" */ - public function testShouldThrowsPostalCodeExceptionWhenValidationFails() + public function testShouldThrowsPostalCodeExceptionWhenValidationFails(): void { $rule = new PostalCode('US'); $rule->check('02179-000'); diff --git a/tests/unit/Rules/PrimeNumberTest.php b/tests/unit/Rules/PrimeNumberTest.php index 05a1b657..b5ccc5da 100644 --- a/tests/unit/Rules/PrimeNumberTest.php +++ b/tests/unit/Rules/PrimeNumberTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class PrimeNumberTest extends TestCase { protected $object; - protected function setUp() + protected function setUp(): void { $this->object = new PrimeNumber(); } @@ -30,7 +32,7 @@ class PrimeNumberTest extends TestCase /** * @dataProvider providerForPrimeNumber */ - public function testPrimeNumber($input) + public function testPrimeNumber($input): void { self::assertTrue($this->object->__invoke($input)); self::assertTrue($this->object->check($input)); @@ -41,7 +43,7 @@ class PrimeNumberTest extends TestCase * @dataProvider providerForNotPrimeNumber * @expectedException \Respect\Validation\Exceptions\PrimeNumberException */ - public function testNotPrimeNumber($input) + public function testNotPrimeNumber($input): void { self::assertFalse($this->object->__invoke($input)); self::assertFalse($this->object->assert($input)); diff --git a/tests/unit/Rules/PrntTest.php b/tests/unit/Rules/PrntTest.php index c46ca247..aa627af4 100644 --- a/tests/unit/Rules/PrntTest.php +++ b/tests/unit/Rules/PrntTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class PrntTest extends TestCase /** * @dataProvider providerForValidPrint */ - public function testValidDataWithPrintCharsShouldReturnTrue($validPrint, $additional = '') + public function testValidDataWithPrintCharsShouldReturnTrue($validPrint, $additional = ''): void { $validator = new Prnt($additional); self::assertTrue($validator->validate($validPrint)); @@ -33,7 +35,7 @@ class PrntTest extends TestCase * @dataProvider providerForInvalidPrint * @expectedException \Respect\Validation\Exceptions\PrntException */ - public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $additional = '') + public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $additional = ''): void { $validator = new Prnt($additional); self::assertFalse($validator->validate($invalidPrint)); @@ -44,7 +46,7 @@ class PrntTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Prnt($additional); } @@ -52,7 +54,7 @@ class PrntTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Prnt($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/PunctTest.php b/tests/unit/Rules/PunctTest.php index eae731f9..27fb0322 100644 --- a/tests/unit/Rules/PunctTest.php +++ b/tests/unit/Rules/PunctTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class PunctTest extends TestCase /** * @dataProvider providerForValidPunct */ - public function testValidDataWithPunctShouldReturnTrue($validPunct, $additional = '') + public function testValidDataWithPunctShouldReturnTrue($validPunct, $additional = ''): void { $validator = new Punct($additional); self::assertTrue($validator->validate($validPunct)); @@ -33,7 +35,7 @@ class PunctTest extends TestCase * @dataProvider providerForInvalidPunct * @expectedException \Respect\Validation\Exceptions\PunctException */ - public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct, $additional = '') + public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct, $additional = ''): void { $validator = new Punct($additional); self::assertFalse($validator->validate($invalidPunct)); @@ -44,7 +46,7 @@ class PunctTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Punct($additional); } @@ -52,7 +54,7 @@ class PunctTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Punct($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/ReadableTest.php b/tests/unit/Rules/ReadableTest.php index 5856eebe..75a85afd 100644 --- a/tests/unit/Rules/ReadableTest.php +++ b/tests/unit/Rules/ReadableTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -36,7 +38,7 @@ class ReadableTest extends TestCase /** * @covers \Respect\Validation\Rules\Readable::validate */ - public function testValidReadableFileShouldReturnTrue() + public function testValidReadableFileShouldReturnTrue(): void { $GLOBALS['is_readable'] = true; @@ -48,7 +50,7 @@ class ReadableTest extends TestCase /** * @covers \Respect\Validation\Rules\Readable::validate */ - public function testInvalidReadableFileShouldReturnFalse() + public function testInvalidReadableFileShouldReturnFalse(): void { $GLOBALS['is_readable'] = false; @@ -60,7 +62,7 @@ class ReadableTest extends TestCase /** * @covers \Respect\Validation\Rules\Readable::validate */ - public function testShouldValidateObjects() + public function testShouldValidateObjects(): void { $rule = new Readable(); $object = $this->createMock('SplFileInfo', ['isReadable'], ['somefile.txt']); diff --git a/tests/unit/Rules/RegexTest.php b/tests/unit/Rules/RegexTest.php index 03eb41a0..59d084c4 100644 --- a/tests/unit/Rules/RegexTest.php +++ b/tests/unit/Rules/RegexTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/ResourceTypeTest.php b/tests/unit/Rules/ResourceTypeTest.php index 5d561c26..385a7980 100644 --- a/tests/unit/Rules/ResourceTypeTest.php +++ b/tests/unit/Rules/ResourceTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class ResourceTypeTest extends TestCase { protected $rule; - protected function setUp() + protected function setUp(): void { $this->rule = new ResourceType(); } @@ -30,7 +32,7 @@ class ResourceTypeTest extends TestCase /** * @dataProvider providerForResource */ - public function testShouldValidateResourceNumbers($input) + public function testShouldValidateResourceNumbers($input): void { self::assertTrue($this->rule->validate($input)); } @@ -38,7 +40,7 @@ class ResourceTypeTest extends TestCase /** * @dataProvider providerForNonResource */ - public function testShouldNotValidateNonResourceNumbers($input) + public function testShouldNotValidateNonResourceNumbers($input): void { self::assertFalse($this->rule->validate($input)); } @@ -47,7 +49,7 @@ class ResourceTypeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ResourceTypeException * @expectedExceptionMessage "Something" must be a resource */ - public function testShouldThrowResourceExceptionWhenChecking() + public function testShouldThrowResourceExceptionWhenChecking(): void { $this->rule->check('Something'); } @@ -67,7 +69,7 @@ class ResourceTypeTest extends TestCase ['String'], [123], [[]], - [function () { + [function (): void { }], [new \stdClass()], [null], diff --git a/tests/unit/Rules/RomanTest.php b/tests/unit/Rules/RomanTest.php index bddad67a..ad441d8f 100644 --- a/tests/unit/Rules/RomanTest.php +++ b/tests/unit/Rules/RomanTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class RomanTest extends TestCase { protected $romanValidator; - protected function setUp() + protected function setUp(): void { $this->romanValidator = new Roman(); } @@ -30,7 +32,7 @@ class RomanTest extends TestCase /** * @dataProvider providerForRoman */ - public function testValidRomansShouldReturnTrue($input) + public function testValidRomansShouldReturnTrue($input): void { self::assertTrue($this->romanValidator->__invoke($input)); self::assertTrue($this->romanValidator->assert($input)); @@ -41,7 +43,7 @@ class RomanTest extends TestCase * @dataProvider providerForNotRoman * @expectedException \Respect\Validation\Exceptions\RomanException */ - public function testInvalidRomansShouldThrowRomanException($input) + public function testInvalidRomansShouldThrowRomanException($input): void { self::assertFalse($this->romanValidator->__invoke($input)); self::assertFalse($this->romanValidator->assert($input)); diff --git a/tests/unit/Rules/ScalarValTest.php b/tests/unit/Rules/ScalarValTest.php index 9e6cc9ab..0afce2bc 100644 --- a/tests/unit/Rules/ScalarValTest.php +++ b/tests/unit/Rules/ScalarValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class ScalarValTest extends TestCase { protected $rule; - protected function setUp() + protected function setUp(): void { $this->rule = new ScalarVal(); } @@ -30,7 +32,7 @@ class ScalarValTest extends TestCase /** * @dataProvider providerForScalar */ - public function testShouldValidateScalarNumbers($input) + public function testShouldValidateScalarNumbers($input): void { self::assertTrue($this->rule->validate($input)); } @@ -38,7 +40,7 @@ class ScalarValTest extends TestCase /** * @dataProvider providerForNonScalar */ - public function testShouldNotValidateNonScalarNumbers($input) + public function testShouldNotValidateNonScalarNumbers($input): void { self::assertFalse($this->rule->validate($input)); } @@ -47,7 +49,7 @@ class ScalarValTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ScalarValException * @expectedExceptionMessage null must be a scalar value */ - public function testShouldThrowScalarExceptionWhenChecking() + public function testShouldThrowScalarExceptionWhenChecking(): void { $this->rule->check(null); } @@ -68,7 +70,7 @@ class ScalarValTest extends TestCase { return [ [[]], - [function () { + [function (): void { }], [new \stdClass()], [null], diff --git a/tests/unit/Rules/SfTest.php b/tests/unit/Rules/SfTest.php index daabafec..9f1fc74c 100644 --- a/tests/unit/Rules/SfTest.php +++ b/tests/unit/Rules/SfTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ use Respect\Validation\Validator as v; */ class SfTest extends TestCase { - public function testValidationWithAnExistingValidationConstraint() + public function testValidationWithAnExistingValidationConstraint(): void { $constraintName = 'Time'; $validConstraintValue = '04:20:00'; @@ -40,7 +42,7 @@ class SfTest extends TestCase /** * @depends testValidationWithAnExistingValidationConstraint */ - public function testAssertionWithAnExistingValidationConstraint() + public function testAssertionWithAnExistingValidationConstraint(): void { $constraintName = 'Time'; $validConstraintValue = '04:20:00'; @@ -78,7 +80,7 @@ EOF; * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage Symfony/Validator constraint "FluxCapacitor" does not exist. */ - public function testValidationWithNonExistingConstraint() + public function testValidationWithNonExistingConstraint(): void { $fantasyConstraintName = 'FluxCapacitor'; $fantasyValue = '8GW'; diff --git a/tests/unit/Rules/SizeTest.php b/tests/unit/Rules/SizeTest.php index 9b4ea93d..249e1845 100644 --- a/tests/unit/Rules/SizeTest.php +++ b/tests/unit/Rules/SizeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use org\bovigo\vfs\content\LargeFileContent; @@ -73,7 +75,7 @@ class SizeTest extends TestCase /** * @dataProvider validSizeProvider */ - public function testShouldConvertUnitonConstructor($size, $bytes) + public function testShouldConvertUnitonConstructor($size, $bytes): void { $rule = new Size($size); @@ -84,7 +86,7 @@ class SizeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "42jb" is not a recognized file size */ - public function testShouldThrowsAnExceptionWhenSizeIsNotValid() + public function testShouldThrowsAnExceptionWhenSizeIsNotValid(): void { new Size('42jb'); } @@ -92,14 +94,14 @@ class SizeTest extends TestCase /** * @dataProvider validFileProvider */ - public function testShouldValidateFile($filename, $minSize, $maxSize, $expectedValidation) + public function testShouldValidateFile($filename, $minSize, $maxSize, $expectedValidation): void { $rule = new Size($minSize, $maxSize); self::assertEquals($expectedValidation, $rule->validate($filename)); } - public function testShouldValidateSplFileInfo() + public function testShouldValidateSplFileInfo(): void { $root = vfsStream::setup(); $file1Gb = vfsStream::newFile('1gb.txt')->withContent(LargeFileContent::withGigabytes(1))->at($root); @@ -114,7 +116,7 @@ class SizeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\SizeException * @expectedExceptionMessageRegExp #"vfs:.?/.?/root.?/1gb.txt" must be greater than "2pb"# */ - public function testShouldThrowsSizeExceptionWhenAsserting() + public function testShouldThrowsSizeExceptionWhenAsserting(): void { $root = vfsStream::setup(); $file1Gb = vfsStream::newFile('1gb.txt')->withContent(LargeFileContent::withGigabytes(1))->at($root); diff --git a/tests/unit/Rules/SlugTest.php b/tests/unit/Rules/SlugTest.php index ddaa7326..4087276e 100644 --- a/tests/unit/Rules/SlugTest.php +++ b/tests/unit/Rules/SlugTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class SlugTest extends TestCase /** * @dataProvider providerValidSlug */ - public function testValidSlug($input) + public function testValidSlug($input): void { $rule = new Slug(); @@ -32,7 +34,7 @@ class SlugTest extends TestCase /** * @dataProvider providerInvalidSlug */ - public function testInvalidSlug($input) + public function testInvalidSlug($input): void { $rule = new Slug(); diff --git a/tests/unit/Rules/SortedTest.php b/tests/unit/Rules/SortedTest.php index b0d342ea..02ffe170 100644 --- a/tests/unit/Rules/SortedTest.php +++ b/tests/unit/Rules/SortedTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class SortedTest extends TestCase { - public function testPasses() + public function testPasses(): void { $arr = [1, 2, 3]; $rule = new Sorted(); @@ -30,7 +32,7 @@ class SortedTest extends TestCase self::assertTrue($rule->check($arr)); } - public function testPassesWithEqualValues() + public function testPassesWithEqualValues(): void { $arr = [1, 2, 2, 3]; $rule = new Sorted(); @@ -43,7 +45,7 @@ class SortedTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\SortedException */ - public function testNotPasses() + public function testNotPasses(): void { $arr = [1, 2, 4, 3]; $rule = new Sorted(); @@ -52,7 +54,7 @@ class SortedTest extends TestCase self::assertFalse($rule->check($arr)); } - public function testPassesDescending() + public function testPassesDescending(): void { $arr = [10, 9, 8]; $rule = new Sorted(null, false); @@ -62,7 +64,7 @@ class SortedTest extends TestCase self::assertTrue($rule->check($arr)); } - public function testPassesDescendingWithEqualValues() + public function testPassesDescendingWithEqualValues(): void { $arr = [10, 9, 9, 8]; $rule = new Sorted(null, false); @@ -72,7 +74,7 @@ class SortedTest extends TestCase self::assertTrue($rule->check($arr)); } - public function testPassesByFunction() + public function testPassesByFunction(): void { $arr = [ [ @@ -97,7 +99,7 @@ class SortedTest extends TestCase /** * @expectedException \Respect\Validation\Exceptions\SortedException */ - public function testNotPassesByFunction() + public function testNotPassesByFunction(): void { $arr = [ [ diff --git a/tests/unit/Rules/SpaceTest.php b/tests/unit/Rules/SpaceTest.php index dcf6554c..4d65adcb 100644 --- a/tests/unit/Rules/SpaceTest.php +++ b/tests/unit/Rules/SpaceTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class SpaceTest extends TestCase /** * @dataProvider providerForValidSpace */ - public function testValidDataWithSpaceShouldReturnTrue($validSpace, $additional = '') + public function testValidDataWithSpaceShouldReturnTrue($validSpace, $additional = ''): void { $validator = new Space($additional); self::assertTrue($validator->validate($validSpace)); @@ -33,7 +35,7 @@ class SpaceTest extends TestCase * @dataProvider providerForInvalidSpace * @expectedException \Respect\Validation\Exceptions\SpaceException */ - public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace, $additional = '') + public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace, $additional = ''): void { $validator = new Space($additional); self::assertFalse($validator->validate($invalidSpace)); @@ -44,7 +46,7 @@ class SpaceTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Space($additional); } @@ -52,7 +54,7 @@ class SpaceTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Space($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/StartsWithTest.php b/tests/unit/Rules/StartsWithTest.php index 31282d91..6b638a2f 100644 --- a/tests/unit/Rules/StartsWithTest.php +++ b/tests/unit/Rules/StartsWithTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class StartsWithTest extends TestCase /** * @dataProvider providerForStartsWith */ - public function testStartsWith($start, $input) + public function testStartsWith($start, $input): void { $v = new StartsWith($start); self::assertTrue($v->__invoke($input)); @@ -35,7 +37,7 @@ class StartsWithTest extends TestCase * @dataProvider providerForNotStartsWith * @expectedException \Respect\Validation\Exceptions\StartsWithException */ - public function testNotStartsWith($start, $input, $caseSensitive = false) + public function testNotStartsWith($start, $input, $caseSensitive = false): void { $v = new StartsWith($start, $caseSensitive); self::assertFalse($v->__invoke($input)); diff --git a/tests/unit/Rules/StringTypeTest.php b/tests/unit/Rules/StringTypeTest.php index a0b5f4cb..4c4f227c 100644 --- a/tests/unit/Rules/StringTypeTest.php +++ b/tests/unit/Rules/StringTypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class StringTypeTest extends TestCase /** * @dataProvider providerForString */ - public function testString($input) + public function testString($input): void { $rule = new StringType(); @@ -33,7 +35,7 @@ class StringTypeTest extends TestCase /** * @dataProvider providerForNotString */ - public function testNotString($input) + public function testNotString($input): void { $rule = new StringType(); diff --git a/tests/unit/Rules/StringValTest.php b/tests/unit/Rules/StringValTest.php index a2ea4d75..41382f01 100644 --- a/tests/unit/Rules/StringValTest.php +++ b/tests/unit/Rules/StringValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use stdClass; @@ -40,7 +42,7 @@ class StringValTest extends RuleTestCase return [ [$rule, []], - [$rule, function () { + [$rule, function (): void { }], [$rule, new stdClass()], [$rule, null], diff --git a/tests/unit/Rules/SubdivisionCodeTest.php b/tests/unit/Rules/SubdivisionCodeTest.php index a1ab63d5..62155e2a 100644 --- a/tests/unit/Rules/SubdivisionCodeTest.php +++ b/tests/unit/Rules/SubdivisionCodeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class SubdivisionCodeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "whatever" is not a valid country code in ISO 3166-2 */ - public function testShouldThrowsExceptionWhenInvalidFormat() + public function testShouldThrowsExceptionWhenInvalidFormat(): void { new SubdivisionCode('whatever'); } @@ -32,12 +34,12 @@ class SubdivisionCodeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "JK" is not a valid country code in ISO 3166-2 */ - public function testShouldNotAcceptWrongNamesOnConstructor() + public function testShouldNotAcceptWrongNamesOnConstructor(): void { new SubdivisionCode('JK'); } - public function testShouldDefineASubdivisionCodeFormatOnConstructor() + public function testShouldDefineASubdivisionCodeFormatOnConstructor(): void { $countrySubdivision = new SubdivisionCode('US'); @@ -58,7 +60,7 @@ class SubdivisionCodeTest extends TestCase /** * @dataProvider providerForValidSubdivisionCodeInformation */ - public function testShouldValidateValidSubdivisionCodeInformation($countryCode, $input) + public function testShouldValidateValidSubdivisionCodeInformation($countryCode, $input): void { $countrySubdivision = new SubdivisionCode($countryCode); @@ -77,7 +79,7 @@ class SubdivisionCodeTest extends TestCase /** * @dataProvider providerForInvalidSubdivisionCodeInformation */ - public function testShouldNotValidateInvalidSubdivisionCodeInformation($countryCode, $input) + public function testShouldNotValidateInvalidSubdivisionCodeInformation($countryCode, $input): void { $countrySubdivision = new SubdivisionCode($countryCode); @@ -88,7 +90,7 @@ class SubdivisionCodeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\SubdivisionCode\BrSubdivisionCodeException * @expectedExceptionMessage "CA" must be a subdivision code of Brazil */ - public function testShouldThrowsSubdivisionCodeException() + public function testShouldThrowsSubdivisionCodeException(): void { $countrySubdivision = new SubdivisionCode('BR'); $countrySubdivision->assert('CA'); diff --git a/tests/unit/Rules/SymbolicLinkTest.php b/tests/unit/Rules/SymbolicLinkTest.php index 9edaca1e..57d730af 100644 --- a/tests/unit/Rules/SymbolicLinkTest.php +++ b/tests/unit/Rules/SymbolicLinkTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -36,7 +38,7 @@ class SymbolicLinkTest extends TestCase /** * @covers \Respect\Validation\Rules\SymbolicLink::validate */ - public function testValidSymbolicLinkShouldReturnTrue() + public function testValidSymbolicLinkShouldReturnTrue(): void { $GLOBALS['is_link'] = true; @@ -48,7 +50,7 @@ class SymbolicLinkTest extends TestCase /** * @covers \Respect\Validation\Rules\SymbolicLink::validate */ - public function testInvalidSymbolicLinkShouldThrowException() + public function testInvalidSymbolicLinkShouldThrowException(): void { $GLOBALS['is_link'] = false; @@ -60,7 +62,7 @@ class SymbolicLinkTest extends TestCase /** * @covers \Respect\Validation\Rules\SymbolicLink::validate */ - public function testShouldValidateObjects() + public function testShouldValidateObjects(): void { $rule = new SymbolicLink(); $object = $this->createMock('SplFileInfo', ['isLink'], ['somelink.lnk']); diff --git a/tests/unit/Rules/TldTest.php b/tests/unit/Rules/TldTest.php index 6ccd5b09..58959871 100644 --- a/tests/unit/Rules/TldTest.php +++ b/tests/unit/Rules/TldTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -35,7 +37,7 @@ class TldTest extends TestCase /** * @dataProvider providerForValidTld */ - public function testShouldValidateInputWhenItIsAValidTld($input) + public function testShouldValidateInputWhenItIsAValidTld($input): void { $rule = new Tld(); @@ -55,7 +57,7 @@ class TldTest extends TestCase /** * @dataProvider providerForInvalidTld */ - public function testShouldInvalidateInputWhenItIsNotAValidTld($input) + public function testShouldInvalidateInputWhenItIsNotAValidTld($input): void { $rule = new Tld(); diff --git a/tests/unit/Rules/TrueValTest.php b/tests/unit/Rules/TrueValTest.php index 812966ab..9be82334 100644 --- a/tests/unit/Rules/TrueValTest.php +++ b/tests/unit/Rules/TrueValTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class TrueValTest extends TestCase /** * @dataProvider validTrueProvider */ - public function testShouldValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new TrueVal(); @@ -51,7 +53,7 @@ class TrueValTest extends TestCase /** * @dataProvider invalidTrueProvider */ - public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new TrueVal(); diff --git a/tests/unit/Rules/TypeTest.php b/tests/unit/Rules/TypeTest.php index 22060502..0811acfd 100644 --- a/tests/unit/Rules/TypeTest.php +++ b/tests/unit/Rules/TypeTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -21,7 +23,7 @@ use stdClass; */ class TypeTest extends TestCase { - public function testShouldDefineTypeOnConstructor() + public function testShouldDefineTypeOnConstructor(): void { $type = 'int'; $rule = new Type($type); @@ -29,7 +31,7 @@ class TypeTest extends TestCase self::assertSame($type, $rule->type); } - public function testShouldNotBeCaseSensitive() + public function testShouldNotBeCaseSensitive(): void { $rule = new Type('InTeGeR'); @@ -40,7 +42,7 @@ class TypeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "whatever" is not a valid type */ - public function testShouldThrowExceptionWhenTypeIsNotValid() + public function testShouldThrowExceptionWhenTypeIsNotValid(): void { new Type('whatever'); } @@ -48,7 +50,7 @@ class TypeTest extends TestCase /** * @dataProvider providerForValidType */ - public function testShouldValidateValidTypes($type, $input) + public function testShouldValidateValidTypes($type, $input): void { $rule = new Type($type); @@ -58,7 +60,7 @@ class TypeTest extends TestCase /** * @dataProvider providerForInvalidType */ - public function testShouldNotValidateInvalidTypes($type, $input) + public function testShouldNotValidateInvalidTypes($type, $input): void { $rule = new Type($type); @@ -69,7 +71,7 @@ class TypeTest extends TestCase * @expectedException \Respect\Validation\Exceptions\TypeException * @expectedExceptionMessage "Something" must be "integer" */ - public function testShouldThrowTypeExceptionWhenCheckingAnInvalidInput() + public function testShouldThrowTypeExceptionWhenCheckingAnInvalidInput(): void { $rule = new Type('integer'); $rule->check('Something'); @@ -81,7 +83,7 @@ class TypeTest extends TestCase ['array', []], ['bool', true], ['boolean', false], - ['callable', function () { + ['callable', function (): void { }], ['double', 0.8], ['float', 1.0], diff --git a/tests/unit/Rules/UniqueTest.php b/tests/unit/Rules/UniqueTest.php index a2c59765..ef0874b7 100644 --- a/tests/unit/Rules/UniqueTest.php +++ b/tests/unit/Rules/UniqueTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/UploadedTest.php b/tests/unit/Rules/UploadedTest.php index c85d49f0..42e73acd 100644 --- a/tests/unit/Rules/UploadedTest.php +++ b/tests/unit/Rules/UploadedTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -36,7 +38,7 @@ class UploadedTest extends TestCase /** * @covers \Respect\Validation\Rules\Uploaded::validate */ - public function testValidUploadedFileShouldReturnTrue() + public function testValidUploadedFileShouldReturnTrue(): void { $GLOBALS['is_uploaded_file'] = true; @@ -48,7 +50,7 @@ class UploadedTest extends TestCase /** * @covers \Respect\Validation\Rules\Uploaded::validate */ - public function testInvalidUploadedFileShouldReturnFalse() + public function testInvalidUploadedFileShouldReturnFalse(): void { $GLOBALS['is_uploaded_file'] = false; @@ -60,7 +62,7 @@ class UploadedTest extends TestCase /** * @covers \Respect\Validation\Rules\Uploaded::validate */ - public function testShouldValidateObjects() + public function testShouldValidateObjects(): void { $GLOBALS['is_uploaded_file'] = true; diff --git a/tests/unit/Rules/UppercaseTest.php b/tests/unit/Rules/UppercaseTest.php index bc2f3a0e..da07dcca 100644 --- a/tests/unit/Rules/UppercaseTest.php +++ b/tests/unit/Rules/UppercaseTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class UppercaseTest extends TestCase /** * @dataProvider providerForValidUppercase */ - public function testValidUppercaseShouldReturnTrue($input) + public function testValidUppercaseShouldReturnTrue($input): void { $uppercase = new Uppercase(); self::assertTrue($uppercase->validate($input)); @@ -35,7 +37,7 @@ class UppercaseTest extends TestCase * @dataProvider providerForInvalidUppercase * @expectedException \Respect\Validation\Exceptions\UppercaseException */ - public function testInvalidUppercaseShouldThrowException($input) + public function testInvalidUppercaseShouldThrowException($input): void { $lowercase = new Uppercase(); self::assertFalse($lowercase->validate($input)); diff --git a/tests/unit/Rules/UrlTest.php b/tests/unit/Rules/UrlTest.php index fd34cb14..8c798e6b 100644 --- a/tests/unit/Rules/UrlTest.php +++ b/tests/unit/Rules/UrlTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class UrlTest extends TestCase /** * @dataProvider providerForValidUrl */ - public function testShouldValidateValidUrls($validUrl) + public function testShouldValidateValidUrls($validUrl): void { $validator = new Url(); @@ -33,7 +35,7 @@ class UrlTest extends TestCase /** * @dataProvider providerForInvalidUrl */ - public function testShouldNotValidateInvalidUrls($invalidUrl) + public function testShouldNotValidateInvalidUrls($invalidUrl): void { $validator = new Url(); diff --git a/tests/unit/Rules/UuidTest.php b/tests/unit/Rules/UuidTest.php index 1a64dcce..3a71461e 100644 --- a/tests/unit/Rules/UuidTest.php +++ b/tests/unit/Rules/UuidTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** diff --git a/tests/unit/Rules/VatinTest.php b/tests/unit/Rules/VatinTest.php index 3ad3ad2c..958d003c 100644 --- a/tests/unit/Rules/VatinTest.php +++ b/tests/unit/Rules/VatinTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use Respect\Validation\Validatable; */ final class VatinTest extends TestCase { - public function testShouldAcceptCountryCodeOnConstructor() + public function testShouldAcceptCountryCodeOnConstructor(): void { $countryCode = 'PL'; $rule = new Vatin($countryCode); @@ -32,7 +34,7 @@ final class VatinTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage There is no support for VAT identification number from "BR" */ - public function testShouldThrowAnExceptionWhenCountryCodeIsNotSupported() + public function testShouldThrowAnExceptionWhenCountryCodeIsNotSupported(): void { new Vatin('BR'); } diff --git a/tests/unit/Rules/VersionTest.php b/tests/unit/Rules/VersionTest.php index 7412636c..febd1c4a 100644 --- a/tests/unit/Rules/VersionTest.php +++ b/tests/unit/Rules/VersionTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class VersionTest extends TestCase /** * @dataProvider providerForValidVersion */ - public function testValidVersionShouldReturnTrue($input) + public function testValidVersionShouldReturnTrue($input): void { $rule = new Version(); self::assertTrue($rule->__invoke($input)); @@ -35,7 +37,7 @@ class VersionTest extends TestCase * @dataProvider providerForInvalidVersion * @expectedException \Respect\Validation\Exceptions\VersionException */ - public function testInvalidVersionShouldThrowException($input) + public function testInvalidVersionShouldThrowException($input): void { $rule = new Version(); self::assertFalse($rule->__invoke($input)); diff --git a/tests/unit/Rules/VideoUrlTest.php b/tests/unit/Rules/VideoUrlTest.php index 01150f92..91e80258 100644 --- a/tests/unit/Rules/VideoUrlTest.php +++ b/tests/unit/Rules/VideoUrlTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -24,7 +26,7 @@ class VideoUrlTest extends TestCase * @expectedException \Respect\Validation\Exceptions\ComponentException * @expectedExceptionMessage "teste" is not a recognized video service. */ - public function testShouldThrowsAnExceptionWhenProviderIsNotValid() + public function testShouldThrowsAnExceptionWhenProviderIsNotValid(): void { new VideoUrl('teste'); } @@ -65,7 +67,7 @@ class VideoUrlTest extends TestCase /** * @dataProvider validVideoUrlProvider */ - public function testShouldValidateVideoUrl($service, $input) + public function testShouldValidateVideoUrl($service, $input): void { $rule = new VideoUrl($service); @@ -75,7 +77,7 @@ class VideoUrlTest extends TestCase /** * @dataProvider invalidVideoUrlProvider */ - public function testShouldInvalidateNonVideoUrl($service, $input) + public function testShouldInvalidateNonVideoUrl($service, $input): void { $rule = new VideoUrl($service); @@ -86,7 +88,7 @@ class VideoUrlTest extends TestCase * @expectedException \Respect\Validation\Exceptions\VideoUrlException * @expectedExceptionMessage "exemplo.com" must be a valid video URL */ - public function testUseAProperExceptionMessageWhenVideoUrlIsNotValid() + public function testUseAProperExceptionMessageWhenVideoUrlIsNotValid(): void { $rule = new VideoUrl(); $rule->check('exemplo.com'); @@ -96,7 +98,7 @@ class VideoUrlTest extends TestCase * @expectedException \Respect\Validation\Exceptions\VideoUrlException * @expectedExceptionMessage "exemplo.com" must be a valid "YouTube" video URL */ - public function testUseAProperExceptionMessageWhenVideoUrlIsNotValidForTheDefinedProvider() + public function testUseAProperExceptionMessageWhenVideoUrlIsNotValidForTheDefinedProvider(): void { $rule = new VideoUrl('YouTube'); $rule->check('exemplo.com'); diff --git a/tests/unit/Rules/VowelTest.php b/tests/unit/Rules/VowelTest.php index 972020b0..58cf6190 100644 --- a/tests/unit/Rules/VowelTest.php +++ b/tests/unit/Rules/VowelTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -23,7 +25,7 @@ class VowelTest extends TestCase /** * @dataProvider providerForValidVowels */ - public function testValidDataWithVowelsShouldReturnTrue($validVowels, $additional = '') + public function testValidDataWithVowelsShouldReturnTrue($validVowels, $additional = ''): void { $validator = new Vowel($additional); self::assertTrue($validator->validate($validVowels)); @@ -33,7 +35,7 @@ class VowelTest extends TestCase * @dataProvider providerForInvalidVowels * @expectedException \Respect\Validation\Exceptions\VowelException */ - public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels, $additional = '') + public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels, $additional = ''): void { $validator = new Vowel($additional); self::assertFalse($validator->validate($invalidVowels)); @@ -44,7 +46,7 @@ class VowelTest extends TestCase * @dataProvider providerForInvalidParams * @expectedException \Respect\Validation\Exceptions\ComponentException */ - public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional) + public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional): void { $validator = new Vowel($additional); } @@ -52,7 +54,7 @@ class VowelTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Vowel($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/WhenTest.php b/tests/unit/Rules/WhenTest.php index d11726dd..672f3bc0 100644 --- a/tests/unit/Rules/WhenTest.php +++ b/tests/unit/Rules/WhenTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; /** @@ -17,14 +19,14 @@ namespace Respect\Validation\Rules; */ class WhenTest extends RuleTestCase { - public function testShouldConstructAnObjectWithoutElseRule() + public function testShouldConstructAnObjectWithoutElseRule(): void { $rule = new When($this->getRuleMock(true), $this->getRuleMock(true)); self::assertInstanceOf(AlwaysInvalid::class, $rule->else); } - public function testShouldConstructAnObjectWithElseRule() + public function testShouldConstructAnObjectWithElseRule(): void { $rule = new When($this->getRuleMock(true), $this->getRuleMock(true), $this->getRuleMock(true)); @@ -35,7 +37,7 @@ class WhenTest extends RuleTestCase * @expectedException \Respect\Validation\Exceptions\ValidationException * @expectedExceptionMessage Exception for ThenNotValid:assert() method */ - public function testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnAssertMethod() + public function testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnAssertMethod(): void { $if = $this->getRuleMock(true); $then = $this->getRuleMock(false, 'ThenNotValid'); @@ -49,7 +51,7 @@ class WhenTest extends RuleTestCase * @expectedException \Respect\Validation\Exceptions\ValidationException * @expectedExceptionMessage Exception for ThenNotValid:check() method */ - public function testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnCheckMethod() + public function testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnCheckMethod(): void { $if = $this->getRuleMock(true); $then = $this->getRuleMock(false, 'ThenNotValid'); @@ -63,7 +65,7 @@ class WhenTest extends RuleTestCase * @expectedException \Respect\Validation\Exceptions\ValidationException * @expectedExceptionMessage Exception for ElseNotValid:assert() method */ - public function testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnAssertMethod() + public function testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnAssertMethod(): void { $if = $this->getRuleMock(false); $then = $this->getRuleMock(false); @@ -77,7 +79,7 @@ class WhenTest extends RuleTestCase * @expectedException \Respect\Validation\Exceptions\ValidationException * @expectedExceptionMessage Exception for ElseNotValid:check() method */ - public function testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnCheckMethod() + public function testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnCheckMethod(): void { $if = $this->getRuleMock(false); $then = $this->getRuleMock(false); @@ -123,7 +125,6 @@ class WhenTest extends RuleTestCase new When($this->getRuleMock(true), $this->getRuleMock(true), $this->getRuleMock(false)), false, ], - ]; } diff --git a/tests/unit/Rules/WritableTest.php b/tests/unit/Rules/WritableTest.php index 84344177..a48ddbe4 100644 --- a/tests/unit/Rules/WritableTest.php +++ b/tests/unit/Rules/WritableTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -36,7 +38,7 @@ class WritableTest extends TestCase /** * @covers \Respect\Validation\Rules\Writable::validate */ - public function testValidWritableFileShouldReturnTrue() + public function testValidWritableFileShouldReturnTrue(): void { $GLOBALS['is_writable'] = true; @@ -48,7 +50,7 @@ class WritableTest extends TestCase /** * @covers \Respect\Validation\Rules\Writable::validate */ - public function testInvalidWritableFileShouldReturnFalse() + public function testInvalidWritableFileShouldReturnFalse(): void { $GLOBALS['is_writable'] = false; @@ -60,7 +62,7 @@ class WritableTest extends TestCase /** * @covers \Respect\Validation\Rules\Writable::validate */ - public function testShouldValidateObjects() + public function testShouldValidateObjects(): void { $rule = new Writable(); $object = $this->createMock('SplFileInfo', ['isWritable'], ['somefile.txt']); diff --git a/tests/unit/Rules/XdigitTest.php b/tests/unit/Rules/XdigitTest.php index afce31d0..b46bf93c 100644 --- a/tests/unit/Rules/XdigitTest.php +++ b/tests/unit/Rules/XdigitTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -22,7 +24,7 @@ class XdigitTest extends TestCase { protected $xdigitsValidator; - protected function setUp() + protected function setUp(): void { $this->xdigitsValidator = new Xdigit(); } @@ -30,7 +32,7 @@ class XdigitTest extends TestCase /** * @dataProvider providerForXdigit */ - public function testValidateValidHexasdecimalDigits($input) + public function testValidateValidHexasdecimalDigits($input): void { self::assertTrue($this->xdigitsValidator->assert($input)); self::assertTrue($this->xdigitsValidator->check($input)); @@ -41,7 +43,7 @@ class XdigitTest extends TestCase * @dataProvider providerForNotXdigit * @expectedException \Respect\Validation\Exceptions\XdigitException */ - public function testInvalidHexadecimalDigitsShouldThrowXdigitException($input) + public function testInvalidHexadecimalDigitsShouldThrowXdigitException($input): void { self::assertFalse($this->xdigitsValidator->validate($input)); self::assertFalse($this->xdigitsValidator->assert($input)); @@ -50,7 +52,7 @@ class XdigitTest extends TestCase /** * @dataProvider providerAdditionalChars */ - public function testAdditionalCharsShouldBeRespected($additional, $query) + public function testAdditionalCharsShouldBeRespected($additional, $query): void { $validator = new Xdigit($additional); self::assertTrue($validator->validate($query)); diff --git a/tests/unit/Rules/YesTest.php b/tests/unit/Rules/YesTest.php index 6908311b..c564613d 100644 --- a/tests/unit/Rules/YesTest.php +++ b/tests/unit/Rules/YesTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use PHPUnit\Framework\TestCase; @@ -20,7 +22,7 @@ use PHPUnit\Framework\TestCase; */ class YesTest extends TestCase { - public function testShouldUseDefaultPattern() + public function testShouldUseDefaultPattern(): void { $rule = new Yes(); @@ -30,7 +32,7 @@ class YesTest extends TestCase self::assertEquals($expectedPattern, $actualPattern); } - public function testShouldUseLocalPatternForYesExpressionWhenDefined() + public function testShouldUseLocalPatternForYesExpressionWhenDefined(): void { if (!defined('YESEXPR')) { $this->markTestSkipped('Constant YESEXPR is not defined'); @@ -49,7 +51,7 @@ class YesTest extends TestCase /** * @dataProvider validYesProvider */ - public function testShouldValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new Yes(); @@ -70,7 +72,7 @@ class YesTest extends TestCase /** * @dataProvider invalidYesProvider */ - public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input) + public function testShouldNotValidatePatternAccordingToTheDefinedLocale($input): void { $rule = new Yes(); diff --git a/tests/unit/Rules/ZendTest.php b/tests/unit/Rules/ZendTest.php index 71ca1337..ad7996f9 100644 --- a/tests/unit/Rules/ZendTest.php +++ b/tests/unit/Rules/ZendTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation\Rules; use DateTime; @@ -23,7 +25,7 @@ use Zend\Validator\ValidatorInterface; */ class ZendTest extends TestCase { - public function testConstructorWithValidatorName() + public function testConstructorWithValidatorName(): void { $v = new Zend('Date'); self::assertAttributeInstanceOf( @@ -36,7 +38,7 @@ class ZendTest extends TestCase /** * @depends testConstructorWithValidatorName */ - public function testConstructorWithValidatorClassName() + public function testConstructorWithValidatorClassName(): void { $v = new Zend(ZendDate::class); self::assertAttributeInstanceOf( @@ -46,7 +48,7 @@ class ZendTest extends TestCase ); } - public function testConstructorWithZendValidatorInstance() + public function testConstructorWithZendValidatorInstance(): void { $zendInstance = new ZendDate(); $v = new Zend($zendInstance); @@ -60,7 +62,7 @@ class ZendTest extends TestCase /** * @depends testConstructorWithZendValidatorInstance */ - public function testUserlandValidatorExtendingZendInterface() + public function testUserlandValidatorExtendingZendInterface(): void { $v = new Zend(new MyValidator()); self::assertAttributeInstanceOf( @@ -70,7 +72,7 @@ class ZendTest extends TestCase ); } - public function testConstructorWithZendValidatorPartialNamespace() + public function testConstructorWithZendValidatorPartialNamespace(): void { $v = new Zend('Sitemap\Lastmod'); self::assertAttributeInstanceOf( @@ -84,7 +86,7 @@ class ZendTest extends TestCase * @depends testConstructorWithValidatorName * @depends testConstructorWithZendValidatorPartialNamespace */ - public function testConstructorWithValidatorName_and_params() + public function testConstructorWithValidatorName_and_params(): void { $zendValidatorName = 'StringLength'; $zendValidatorParams = ['min' => 10, 'max' => 25]; @@ -98,7 +100,7 @@ class ZendTest extends TestCase /** * @depends testConstructorWithValidatorName */ - public function testZendDateValidatorWithRespectMethods() + public function testZendDateValidatorWithRespectMethods(): void { $v = new Zend('Date'); $date = new DateTime(); @@ -111,7 +113,7 @@ class ZendTest extends TestCase * @depends testZendDateValidatorWithRespectMethods * @expectedException \Respect\Validation\Exceptions\ZendException */ - public function testRespectExceptionForFailedValidation() + public function testRespectExceptionForFailedValidation(): void { $v = new Zend('Date'); $notValid = 'a'; @@ -130,7 +132,7 @@ class ZendTest extends TestCase * @depends testZendDateValidatorWithRespectMethods * @expectedException \Respect\Validation\Exceptions\ZendException */ - public function testParamsNot() + public function testParamsNot(): void { $v = new Zend('StringLength', ['min' => 10, 'max' => 25]); self::assertFalse($v->assert('aw')); diff --git a/tests/unit/ValidatorTest.php b/tests/unit/ValidatorTest.php index 24aa6ea0..8d82f535 100644 --- a/tests/unit/ValidatorTest.php +++ b/tests/unit/ValidatorTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Respect\Validation; use PHPUnit\Framework\TestCase; @@ -16,12 +18,12 @@ use Respect\Validation\Exceptions\ComponentException; class ValidatorTest extends TestCase { - public function testStaticCreateShouldReturnNewValidator() + public function testStaticCreateShouldReturnNewValidator(): void { self::assertInstanceOf(Validator::class, Validator::create()); } - public function testInvalidRuleClassShouldThrowComponentException() + public function testInvalidRuleClassShouldThrowComponentException(): void { $this->expectException(ComponentException::class); Validator::iDoNotExistSoIShouldThrowException(); @@ -30,7 +32,7 @@ class ValidatorTest extends TestCase /** * Regression test #174. */ - public function testShouldReturnValidatorInstanceWhenTheNotRuleIsCalledWithArguments() + public function testShouldReturnValidatorInstanceWhenTheNotRuleIsCalledWithArguments(): void { $validator = new Validator();