From 15f148da24263e17fdcf00bf365c77caa411ed62 Mon Sep 17 00:00:00 2001 From: Alexandre Gomes Gaigalas Date: Mon, 13 Feb 2023 01:59:06 -0300 Subject: [PATCH] Dusting off. See CHANGELOG.md for more details on this commit --- .docheader | 2 +- .github/workflows/continuous-integration.yml | 37 ++- .gitignore | 1 + CHANGELOG.md | 22 ++ CONTRIBUTING.md | 6 +- LICENSE | 2 +- bin/update-currency-codes | 2 +- bin/update-iso-codes | 52 +-- composer.json | 24 +- docs/feature-guide.md | 5 +- docs/list-of-rules.md | 2 - docs/rules/Email.md | 2 +- docs/rules/Sf.md | 4 - docs/rules/Zend.md | 27 -- library/ChainedValidator.php | 9 +- library/Exceptions/AllOfException.php | 4 +- library/Exceptions/AlnumException.php | 4 +- library/Exceptions/AlphaException.php | 4 +- library/Exceptions/AlwaysInvalidException.php | 4 +- library/Exceptions/AlwaysValidException.php | 4 +- library/Exceptions/AnyOfException.php | 4 +- library/Exceptions/ArrayTypeException.php | 4 +- library/Exceptions/ArrayValException.php | 4 +- library/Exceptions/AttributeException.php | 4 +- library/Exceptions/Base64Exception.php | 2 +- library/Exceptions/BaseException.php | 2 +- library/Exceptions/BetweenException.php | 4 +- library/Exceptions/BoolTypeException.php | 2 +- library/Exceptions/BoolValException.php | 2 +- library/Exceptions/BsnException.php | 2 +- library/Exceptions/CallException.php | 4 +- library/Exceptions/CallableTypeException.php | 2 +- library/Exceptions/CallbackException.php | 4 +- library/Exceptions/CharsetException.php | 4 +- library/Exceptions/CnhException.php | 2 +- library/Exceptions/CnpjException.php | 2 +- library/Exceptions/ComponentException.php | 4 +- library/Exceptions/ConsonantException.php | 2 +- library/Exceptions/ContainsAnyException.php | 2 +- library/Exceptions/ContainsException.php | 4 +- library/Exceptions/ControlException.php | 2 +- library/Exceptions/CountableException.php | 2 +- library/Exceptions/CountryCodeException.php | 4 +- library/Exceptions/CpfException.php | 2 +- library/Exceptions/CreditCardException.php | 2 +- library/Exceptions/CurrencyCodeException.php | 2 +- library/Exceptions/DateException.php | 2 +- library/Exceptions/DateTimeException.php | 4 +- library/Exceptions/DecimalException.php | 2 +- library/Exceptions/DigitException.php | 4 +- library/Exceptions/DirectoryException.php | 2 +- library/Exceptions/DomainException.php | 4 +- library/Exceptions/EachException.php | 4 +- library/Exceptions/EmailException.php | 4 +- library/Exceptions/EndsWithException.php | 4 +- library/Exceptions/EqualsException.php | 4 +- library/Exceptions/EquivalentException.php | 2 +- library/Exceptions/EvenException.php | 2 +- library/Exceptions/Exception.php | 2 +- library/Exceptions/ExecutableException.php | 2 +- library/Exceptions/ExistsException.php | 2 +- library/Exceptions/ExtensionException.php | 2 +- library/Exceptions/FactorException.php | 2 +- library/Exceptions/FalseValException.php | 2 +- library/Exceptions/FibonacciException.php | 2 +- library/Exceptions/FileException.php | 2 +- library/Exceptions/FilterVarException.php | 2 +- .../FilteredValidationException.php | 2 +- library/Exceptions/FiniteException.php | 2 +- library/Exceptions/FloatTypeException.php | 2 +- library/Exceptions/FloatValException.php | 4 +- library/Exceptions/GraphException.php | 2 +- library/Exceptions/GreaterThanException.php | 2 +- .../Exceptions/GroupedValidationException.php | 4 +- library/Exceptions/HexRgbColorException.php | 2 +- library/Exceptions/IbanException.php | 2 +- library/Exceptions/IdenticalException.php | 2 +- library/Exceptions/ImageException.php | 2 +- library/Exceptions/ImeiException.php | 2 +- library/Exceptions/InException.php | 4 +- library/Exceptions/InfiniteException.php | 2 +- library/Exceptions/InstanceException.php | 4 +- library/Exceptions/IntTypeException.php | 2 +- library/Exceptions/IntValException.php | 4 +- library/Exceptions/InvalidClassException.php | 2 +- library/Exceptions/IpException.php | 4 +- library/Exceptions/IsbnException.php | 2 +- library/Exceptions/IterableTypeException.php | 2 +- library/Exceptions/JsonException.php | 4 +- library/Exceptions/KeyException.php | 4 +- library/Exceptions/KeyNestedException.php | 2 +- library/Exceptions/KeySetException.php | 2 +- library/Exceptions/KeyValueException.php | 2 +- library/Exceptions/LanguageCodeException.php | 2 +- library/Exceptions/LeapDateException.php | 2 +- library/Exceptions/LeapYearException.php | 2 +- library/Exceptions/LengthException.php | 4 +- library/Exceptions/LessThanException.php | 2 +- library/Exceptions/LowercaseException.php | 2 +- library/Exceptions/LuhnException.php | 2 +- library/Exceptions/MacAddressException.php | 2 +- library/Exceptions/MaxAgeException.php | 2 +- library/Exceptions/MaxException.php | 4 +- library/Exceptions/MimetypeException.php | 2 +- library/Exceptions/MinAgeException.php | 2 +- library/Exceptions/MinException.php | 4 +- library/Exceptions/MultipleException.php | 2 +- library/Exceptions/NegativeException.php | 4 +- .../Exceptions/NestedValidationException.php | 4 +- library/Exceptions/NfeAccessKeyException.php | 2 +- library/Exceptions/NifException.php | 2 +- library/Exceptions/NipException.php | 2 +- library/Exceptions/NoException.php | 2 +- library/Exceptions/NoWhitespaceException.php | 4 +- library/Exceptions/NonOmissibleException.php | 2 +- library/Exceptions/NoneOfException.php | 4 +- library/Exceptions/NotBlankException.php | 2 +- library/Exceptions/NotEmojiException.php | 2 +- library/Exceptions/NotEmptyException.php | 4 +- library/Exceptions/NotException.php | 4 +- library/Exceptions/NotOptionalException.php | 2 +- library/Exceptions/NullTypeException.php | 4 +- library/Exceptions/NullableException.php | 2 +- library/Exceptions/NumberException.php | 2 +- library/Exceptions/NumericValException.php | 4 +- library/Exceptions/ObjectTypeException.php | 4 +- library/Exceptions/OddException.php | 2 +- library/Exceptions/OneOfException.php | 2 +- library/Exceptions/OptionalException.php | 2 +- library/Exceptions/PerfectSquareException.php | 2 +- library/Exceptions/PeselException.php | 2 +- library/Exceptions/PhoneException.php | 2 +- library/Exceptions/PhpLabelException.php | 2 +- library/Exceptions/PisException.php | 2 +- library/Exceptions/PolishIdCardException.php | 2 +- library/Exceptions/PositiveException.php | 4 +- library/Exceptions/PostalCodeException.php | 2 +- library/Exceptions/PrimeNumberException.php | 2 +- library/Exceptions/PrintableException.php | 4 +- library/Exceptions/PunctException.php | 2 +- library/Exceptions/ReadableException.php | 2 +- .../Exceptions/RecursiveExceptionIterator.php | 2 +- library/Exceptions/RegexException.php | 4 +- library/Exceptions/ResourceTypeException.php | 2 +- library/Exceptions/RomanException.php | 2 +- library/Exceptions/ScalarValException.php | 2 +- library/Exceptions/SfException.php | 4 +- library/Exceptions/SizeException.php | 2 +- library/Exceptions/SlugException.php | 2 +- library/Exceptions/SortedException.php | 2 +- library/Exceptions/SpaceException.php | 2 +- library/Exceptions/StartsWithException.php | 4 +- library/Exceptions/StringTypeException.php | 4 +- library/Exceptions/StringValException.php | 2 +- .../Exceptions/SubdivisionCodeException.php | 2 +- library/Exceptions/SubsetException.php | 2 +- library/Exceptions/SymbolicLinkException.php | 2 +- library/Exceptions/TimeException.php | 2 +- library/Exceptions/TldException.php | 4 +- library/Exceptions/TrueValException.php | 2 +- library/Exceptions/TypeException.php | 2 +- library/Exceptions/UniqueException.php | 2 +- library/Exceptions/UploadedException.php | 2 +- library/Exceptions/UppercaseException.php | 2 +- library/Exceptions/UrlException.php | 2 +- library/Exceptions/UuidException.php | 2 +- library/Exceptions/ValidationException.php | 4 +- library/Exceptions/ValidatorException.php | 2 +- library/Exceptions/VersionException.php | 2 +- library/Exceptions/VideoUrlException.php | 2 +- library/Exceptions/VowelException.php | 2 +- library/Exceptions/WhenException.php | 2 +- library/Exceptions/WritableException.php | 2 +- library/Exceptions/XdigitException.php | 2 +- library/Exceptions/YesException.php | 2 +- library/Exceptions/ZendException.php | 23 -- library/Factory.php | 2 +- library/Helpers/CanCompareValues.php | 2 +- library/Helpers/CanValidateDateTime.php | 4 +- library/Helpers/CanValidateIterable.php | 2 +- library/Helpers/CanValidateUndefined.php | 2 +- library/Helpers/Subdivisions.php | 2 +- library/Message/Formatter.php | 2 +- library/Message/ParameterStringifier.php | 2 +- .../Stringifier/KeepOriginalStringName.php | 2 +- library/Rules/AbstractAge.php | 2 +- library/Rules/AbstractComparison.php | 2 +- library/Rules/AbstractComposite.php | 4 +- library/Rules/AbstractEnvelope.php | 2 +- library/Rules/AbstractFilterRule.php | 2 +- library/Rules/AbstractRelated.php | 4 +- library/Rules/AbstractRule.php | 4 +- library/Rules/AbstractSearcher.php | 2 +- library/Rules/AbstractWrapper.php | 2 +- library/Rules/AllOf.php | 4 +- library/Rules/Alnum.php | 4 +- library/Rules/Alpha.php | 4 +- library/Rules/AlwaysInvalid.php | 4 +- library/Rules/AlwaysValid.php | 4 +- library/Rules/AnyOf.php | 4 +- library/Rules/ArrayType.php | 4 +- library/Rules/ArrayVal.php | 4 +- library/Rules/Attribute.php | 4 +- library/Rules/Base.php | 2 +- library/Rules/Base64.php | 2 +- library/Rules/Between.php | 4 +- library/Rules/BoolType.php | 2 +- library/Rules/BoolVal.php | 2 +- library/Rules/Bsn.php | 10 +- library/Rules/Call.php | 4 +- library/Rules/CallableType.php | 2 +- library/Rules/Callback.php | 4 +- library/Rules/Charset.php | 4 +- library/Rules/Cnh.php | 2 +- library/Rules/Cnpj.php | 4 +- library/Rules/Consonant.php | 2 +- library/Rules/Contains.php | 4 +- library/Rules/ContainsAny.php | 2 +- library/Rules/Control.php | 2 +- library/Rules/Countable.php | 2 +- library/Rules/CountryCode.php | 8 +- library/Rules/Cpf.php | 9 +- library/Rules/CreditCard.php | 2 +- library/Rules/CurrencyCode.php | 5 +- library/Rules/Date.php | 4 +- library/Rules/DateTime.php | 6 +- library/Rules/Decimal.php | 2 +- library/Rules/Digit.php | 4 +- library/Rules/Directory.php | 2 +- library/Rules/Domain.php | 4 +- library/Rules/Each.php | 4 +- library/Rules/Email.php | 2 +- library/Rules/EndsWith.php | 4 +- library/Rules/Equals.php | 4 +- library/Rules/Equivalent.php | 2 +- library/Rules/Even.php | 2 +- library/Rules/Executable.php | 2 +- library/Rules/Exists.php | 2 +- library/Rules/Extension.php | 2 +- library/Rules/Factor.php | 2 +- library/Rules/FalseVal.php | 2 +- library/Rules/Fibonacci.php | 2 +- library/Rules/File.php | 2 +- library/Rules/FilterVar.php | 2 +- library/Rules/Finite.php | 2 +- library/Rules/FloatType.php | 2 +- library/Rules/FloatVal.php | 4 +- library/Rules/Graph.php | 2 +- library/Rules/GreaterThan.php | 2 +- library/Rules/HexRgbColor.php | 2 +- library/Rules/Iban.php | 11 +- library/Rules/Identical.php | 2 +- library/Rules/Image.php | 2 +- library/Rules/Imei.php | 2 +- library/Rules/In.php | 4 +- library/Rules/Infinite.php | 2 +- library/Rules/Instance.php | 4 +- library/Rules/IntType.php | 2 +- library/Rules/IntVal.php | 4 +- library/Rules/Ip.php | 6 +- library/Rules/Isbn.php | 2 +- library/Rules/IterableType.php | 2 +- library/Rules/Json.php | 5 +- library/Rules/Key.php | 4 +- library/Rules/KeyNested.php | 4 +- library/Rules/KeySet.php | 5 +- library/Rules/KeyValue.php | 2 +- library/Rules/LanguageCode.php | 2 +- library/Rules/LeapDate.php | 2 +- library/Rules/LeapYear.php | 2 +- library/Rules/Length.php | 4 +- library/Rules/LessThan.php | 2 +- library/Rules/Lowercase.php | 4 +- library/Rules/Luhn.php | 2 +- library/Rules/MacAddress.php | 4 +- library/Rules/Max.php | 4 +- library/Rules/MaxAge.php | 2 +- library/Rules/Mimetype.php | 2 +- library/Rules/Min.php | 4 +- library/Rules/MinAge.php | 2 +- library/Rules/Multiple.php | 2 +- library/Rules/Negative.php | 4 +- library/Rules/NfeAccessKey.php | 2 +- library/Rules/Nif.php | 2 +- library/Rules/Nip.php | 2 +- library/Rules/No.php | 2 +- library/Rules/NoWhitespace.php | 4 +- library/Rules/NoneOf.php | 4 +- library/Rules/Not.php | 4 +- library/Rules/NotBlank.php | 2 +- library/Rules/NotEmoji.php | 2 +- library/Rules/NotEmpty.php | 4 +- library/Rules/NotOptional.php | 2 +- library/Rules/NullType.php | 4 +- library/Rules/Nullable.php | 2 +- library/Rules/Number.php | 2 +- library/Rules/NumericVal.php | 4 +- library/Rules/ObjectType.php | 4 +- library/Rules/Odd.php | 2 +- library/Rules/OneOf.php | 2 +- library/Rules/Optional.php | 2 +- library/Rules/PerfectSquare.php | 2 +- library/Rules/Pesel.php | 2 +- library/Rules/Phone.php | 2 +- library/Rules/PhpLabel.php | 2 +- library/Rules/Pis.php | 2 +- library/Rules/PolishIdCard.php | 2 +- library/Rules/Positive.php | 4 +- library/Rules/PostalCode.php | 2 +- library/Rules/PrimeNumber.php | 4 +- library/Rules/Printable.php | 4 +- library/Rules/Punct.php | 2 +- library/Rules/Readable.php | 2 +- library/Rules/Regex.php | 4 +- library/Rules/ResourceType.php | 2 +- library/Rules/Roman.php | 2 +- library/Rules/ScalarVal.php | 2 +- library/Rules/Sf.php | 4 +- library/Rules/Size.php | 9 +- library/Rules/Slug.php | 2 +- library/Rules/Sorted.php | 2 +- library/Rules/Space.php | 2 +- library/Rules/StartsWith.php | 4 +- library/Rules/StringType.php | 4 +- library/Rules/StringVal.php | 2 +- library/Rules/SubdivisionCode.php | 4 +- library/Rules/Subset.php | 2 +- library/Rules/SymbolicLink.php | 2 +- library/Rules/Time.php | 4 +- library/Rules/Tld.php | 306 +++++++++--------- library/Rules/TrueVal.php | 2 +- library/Rules/Type.php | 2 +- library/Rules/Unique.php | 2 +- library/Rules/Uploaded.php | 2 +- library/Rules/Uppercase.php | 4 +- library/Rules/Url.php | 2 +- library/Rules/Uuid.php | 2 +- library/Rules/Version.php | 2 +- library/Rules/VideoUrl.php | 2 +- library/Rules/Vowel.php | 2 +- library/Rules/When.php | 4 +- library/Rules/Writable.php | 2 +- library/Rules/Xdigit.php | 2 +- library/Rules/Yes.php | 2 +- library/Rules/Zend.php | 143 -------- library/StaticValidator.php | 9 +- library/Validatable.php | 4 +- library/Validator.php | 4 +- tests/integration/rules/keyNested_1.phpt | 2 +- tests/integration/rules/zend.phpt | 44 --- .../DataProvider/UndefinedProvider.php | 2 +- tests/library/Exceptions/StubException.php | 2 +- tests/library/RuleTestCase.php | 2 +- tests/library/Rules/AbstractClass.php | 2 +- tests/library/Rules/CustomRule.php | 2 +- tests/library/Rules/Invalid.php | 2 +- tests/library/Rules/Stub.php | 2 +- tests/library/Rules/Valid.php | 2 +- tests/library/Stubs/CountableStub.php | 2 +- tests/library/Stubs/ToStringStub.php | 2 +- tests/library/Stubs/ZendValidator.php | 37 --- tests/library/TestCase.php | 2 +- tests/unit/Exceptions/CheckExceptionsTest.php | 2 +- .../NestedValidationExceptionTest.php | 4 +- .../Exceptions/ValidationExceptionTest.php | 4 +- tests/unit/FactoryTest.php | 2 +- .../unit/Helpers/CanValidateDateTimeTest.php | 2 +- .../unit/Helpers/CanValidateUndefinedTest.php | 2 +- tests/unit/Rules/AbstractCompositeTest.php | 2 +- tests/unit/Rules/AbstractEnvelopeTest.php | 2 +- tests/unit/Rules/AbstractRuleTest.php | 4 +- tests/unit/Rules/AbstractSearcherTest.php | 2 +- tests/unit/Rules/AbstractWrapperTest.php | 2 +- tests/unit/Rules/AllOfTest.php | 4 +- tests/unit/Rules/AlnumTest.php | 4 +- tests/unit/Rules/AlphaTest.php | 4 +- tests/unit/Rules/AlwaysInvalidTest.php | 2 +- tests/unit/Rules/AlwaysValidTest.php | 2 +- tests/unit/Rules/AnyOfTest.php | 4 +- tests/unit/Rules/ArrayTypeTest.php | 2 +- tests/unit/Rules/ArrayValTest.php | 4 +- tests/unit/Rules/AttributeTest.php | 6 +- tests/unit/Rules/Base64Test.php | 2 +- tests/unit/Rules/BaseTest.php | 2 +- tests/unit/Rules/BetweenTest.php | 4 +- tests/unit/Rules/BoolTypeTest.php | 2 +- tests/unit/Rules/BoolValTest.php | 2 +- tests/unit/Rules/BsnTest.php | 2 +- tests/unit/Rules/CallTest.php | 4 +- tests/unit/Rules/CallableTypeTest.php | 2 +- tests/unit/Rules/CallbackTest.php | 4 +- tests/unit/Rules/CharsetTest.php | 4 +- tests/unit/Rules/CnhTest.php | 2 +- tests/unit/Rules/CnpjTest.php | 2 +- tests/unit/Rules/ConsonantTest.php | 2 +- tests/unit/Rules/ContainsAnyTest.php | 2 +- tests/unit/Rules/ContainsTest.php | 4 +- tests/unit/Rules/ControlTest.php | 2 +- tests/unit/Rules/CountableTest.php | 2 +- tests/unit/Rules/CountryCodeTest.php | 2 +- tests/unit/Rules/CpfTest.php | 4 +- tests/unit/Rules/CreditCardTest.php | 2 +- tests/unit/Rules/CurrencyCodeTest.php | 2 +- tests/unit/Rules/DateTest.php | 2 +- tests/unit/Rules/DateTimeTest.php | 5 +- tests/unit/Rules/DecimalTest.php | 2 +- tests/unit/Rules/DigitTest.php | 4 +- tests/unit/Rules/DirectoryTest.php | 2 +- tests/unit/Rules/DomainTest.php | 4 +- tests/unit/Rules/EachTest.php | 8 +- tests/unit/Rules/EmailTest.php | 2 +- tests/unit/Rules/EndsWithTest.php | 4 +- tests/unit/Rules/EqualsTest.php | 4 +- tests/unit/Rules/EquivalentTest.php | 2 +- tests/unit/Rules/EvenTest.php | 2 +- tests/unit/Rules/ExecutableTest.php | 2 +- tests/unit/Rules/ExistsTest.php | 2 +- tests/unit/Rules/ExtensionTest.php | 2 +- tests/unit/Rules/FactorTest.php | 2 +- tests/unit/Rules/FalseValTest.php | 2 +- tests/unit/Rules/FibonacciTest.php | 2 +- tests/unit/Rules/FileTest.php | 2 +- tests/unit/Rules/FilterVarTest.php | 2 +- tests/unit/Rules/FiniteTest.php | 2 +- tests/unit/Rules/FloatTypeTest.php | 2 +- tests/unit/Rules/FloatValTest.php | 4 +- tests/unit/Rules/GraphTest.php | 2 +- tests/unit/Rules/GreaterThanTest.php | 2 +- tests/unit/Rules/HexRgbColorTest.php | 2 +- tests/unit/Rules/IbanTest.php | 2 +- tests/unit/Rules/IdenticalTest.php | 2 +- tests/unit/Rules/ImageTest.php | 2 +- tests/unit/Rules/ImeiTest.php | 2 +- tests/unit/Rules/InTest.php | 4 +- tests/unit/Rules/InfiniteTest.php | 2 +- tests/unit/Rules/InstanceTest.php | 4 +- tests/unit/Rules/IntTypeTest.php | 2 +- tests/unit/Rules/IntValTest.php | 4 +- tests/unit/Rules/IpTest.php | 4 +- tests/unit/Rules/IsbnTest.php | 2 +- tests/unit/Rules/IterableTypeTest.php | 2 +- tests/unit/Rules/JsonTest.php | 4 +- tests/unit/Rules/KeyNestedTest.php | 4 +- tests/unit/Rules/KeySetTest.php | 2 +- tests/unit/Rules/KeyTest.php | 4 +- tests/unit/Rules/KeyValueTest.php | 2 +- tests/unit/Rules/LanguageCodeTest.php | 2 +- tests/unit/Rules/LeapDateTest.php | 4 +- tests/unit/Rules/LeapYearTest.php | 2 +- tests/unit/Rules/LengthTest.php | 4 +- tests/unit/Rules/LessThanTest.php | 2 +- tests/unit/Rules/LowercaseTest.php | 2 +- tests/unit/Rules/LuhnTest.php | 2 +- tests/unit/Rules/MacAddressTest.php | 2 +- tests/unit/Rules/MaxAgeTest.php | 2 +- tests/unit/Rules/MaxTest.php | 4 +- tests/unit/Rules/MimetypeTest.php | 4 +- tests/unit/Rules/MinAgeTest.php | 2 +- tests/unit/Rules/MinTest.php | 4 +- tests/unit/Rules/MultipleTest.php | 2 +- tests/unit/Rules/NegativeTest.php | 4 +- tests/unit/Rules/NfeAccessKeyTest.php | 2 +- tests/unit/Rules/NifTest.php | 2 +- tests/unit/Rules/NipTest.php | 2 +- tests/unit/Rules/NoTest.php | 2 +- tests/unit/Rules/NoWhitespaceTest.php | 4 +- tests/unit/Rules/NoneOfTest.php | 4 +- tests/unit/Rules/NotBlankTest.php | 2 +- tests/unit/Rules/NotEmojiTest.php | 2 +- tests/unit/Rules/NotEmptyTest.php | 4 +- tests/unit/Rules/NotOptionalTest.php | 2 +- tests/unit/Rules/NotTest.php | 4 +- tests/unit/Rules/NullTypeTest.php | 4 +- tests/unit/Rules/NullableTest.php | 2 +- tests/unit/Rules/NumberTest.php | 2 +- tests/unit/Rules/NumericValTest.php | 4 +- tests/unit/Rules/ObjectTypeTest.php | 4 +- tests/unit/Rules/OddTest.php | 2 +- tests/unit/Rules/OneOfTest.php | 2 +- tests/unit/Rules/OptionalTest.php | 2 +- tests/unit/Rules/PerfectSquareTest.php | 2 +- tests/unit/Rules/PeselTest.php | 2 +- tests/unit/Rules/PhoneTest.php | 2 +- tests/unit/Rules/PhpLabelTest.php | 2 +- tests/unit/Rules/PisTest.php | 2 +- tests/unit/Rules/PolishIdCardTest.php | 2 +- tests/unit/Rules/PositiveTest.php | 4 +- tests/unit/Rules/PostalCodeTest.php | 2 +- tests/unit/Rules/PrimeNumberTest.php | 2 +- tests/unit/Rules/PrintableTest.php | 2 +- tests/unit/Rules/PunctTest.php | 2 +- tests/unit/Rules/ReadableTest.php | 2 +- tests/unit/Rules/RegexTest.php | 4 +- tests/unit/Rules/ResourceTypeTest.php | 2 +- tests/unit/Rules/RomanTest.php | 2 +- tests/unit/Rules/ScalarValTest.php | 2 +- tests/unit/Rules/SfTest.php | 2 +- tests/unit/Rules/SizeTest.php | 2 +- tests/unit/Rules/SlugTest.php | 2 +- tests/unit/Rules/SortedTest.php | 2 +- tests/unit/Rules/SpaceTest.php | 2 +- tests/unit/Rules/StartsWithTest.php | 4 +- tests/unit/Rules/StringTypeTest.php | 4 +- tests/unit/Rules/StringValTest.php | 2 +- tests/unit/Rules/SubdivisionCodeTest.php | 2 +- tests/unit/Rules/SubsetTest.php | 2 +- tests/unit/Rules/SymbolicLinkTest.php | 2 +- tests/unit/Rules/TimeTest.php | 2 +- tests/unit/Rules/TldTest.php | 4 +- tests/unit/Rules/TrueValTest.php | 2 +- tests/unit/Rules/TypeTest.php | 2 +- tests/unit/Rules/UniqueTest.php | 2 +- tests/unit/Rules/UploadedTest.php | 2 +- tests/unit/Rules/UppercaseTest.php | 2 +- tests/unit/Rules/UrlTest.php | 2 +- tests/unit/Rules/UuidTest.php | 2 +- tests/unit/Rules/VersionTest.php | 2 +- tests/unit/Rules/VideoUrlTest.php | 2 +- tests/unit/Rules/VowelTest.php | 2 +- tests/unit/Rules/WhenTest.php | 4 +- tests/unit/Rules/WritableTest.php | 2 +- tests/unit/Rules/XdigitTest.php | 2 +- tests/unit/Rules/YesTest.php | 2 +- tests/unit/Rules/ZendTest.php | 117 ------- tests/unit/ValidatorTest.php | 4 +- 525 files changed, 920 insertions(+), 1337 deletions(-) delete mode 100644 docs/rules/Zend.md delete mode 100644 library/Exceptions/ZendException.php delete mode 100644 library/Rules/Zend.php delete mode 100644 tests/integration/rules/zend.phpt delete mode 100644 tests/library/Stubs/ZendValidator.php delete mode 100644 tests/unit/Rules/ZendTest.php diff --git a/.docheader b/.docheader index f10d60c2..c2a81438 100644 --- a/.docheader +++ b/.docheader @@ -1,7 +1,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a59f1543..305c6d49 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -19,11 +19,10 @@ jobs: strategy: matrix: php-version: - - "7.3" - "7.4" - include: - - php-version: "8.0" - composer-extra-arguments: --ignore-platform-reqs + - "8.0" + - "8.1" + - "8.2" steps: - name: Checkout @@ -37,20 +36,20 @@ jobs: extensions: uopz tools: pecl - - name: Install localisation files + - name: Install Localisation Files run: | sudo locale-gen --no-purge --lang nl_NL.UTF-8 sudo locale-gen --no-purge --lang pt_BR.UTF-8 sudo locale-gen --no-purge --lang ru_RU.UTF-8 - - name: Install dependencies + - name: Install Dependencies run: composer install --prefer-dist ${{ matrix.composer-extra-arguments }} - - name: Run unit tests - run: vendor/bin/phpunit --testsuite=unit + - name: Run Unit Tests + run: ./vendor/phpunit/phpunit/phpunit --testsuite=unit - - name: Run integration tests - run: vendor/bin/phpunit --testsuite=integration + - name: Run Integration Tests + run: ./vendor/phpunit/phpunit/phpunit --testsuite=integration code-coverage: name: Code coverage @@ -64,30 +63,30 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.1 coverage: pcov extensions: uopz tools: pecl - - name: Install localisation files + - name: Install Localisation Files run: | sudo locale-gen --no-purge --lang nl_NL.UTF-8 sudo locale-gen --no-purge --lang pt_BR.UTF-8 sudo locale-gen --no-purge --lang ru_RU.UTF-8 - - name: Install dependencies - run: composer install --prefer-dist + - name: Install Dependencies + run: composer install --prefer-dist ${{ matrix.composer-extra-arguments }} - - name: Generating code coverage report - run: vendor/bin/phpunit --coverage-clover=coverage.xml + - name: Generating Code Coverage Report + run: ./vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.xml - - name: Send code coverage report to Codecov.io + - name: Send Code Coverage Report to Codecov.io uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} static-analysis: - name: Static analysis + name: Static Analysis runs-on: ubuntu-latest @@ -98,7 +97,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.1 coverage: none - name: Install dependencies diff --git a/.gitignore b/.gitignore index b39342ff..a704173b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .couscous/ +.iso-codes-cache/ .phpcs.cache .phpunit.result.cache composer.lock diff --git a/CHANGELOG.md b/CHANGELOG.md index c2e8de2a..851e232e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +# Changes in Respect\Validation 2.x + +## 2.2.4 + + - CHANGELOG.md is being written once again to provide an overview + of active changes to the API and codebase. + - Dropped PHP 7.3 support. + - Added support for PHP 8.0 and PHP 8.1. This will be the + last release with PHP 7.4 support. Support for PHP 8.2 is considered + experimental, local development should be done at 8.1. + - Zend Framework façade validators are no longer supported and were + removed. + - Symfony façade validators are no longer suggested, and will be + removed in release 2.3. + - Updated bin/update-currency-codes to fetch XML from another source. + - Updated bin/update-iso-codes to new file format. + - Updated regionals (CountryCode.php, CurrencyCode.php, Tld.php) (2023-02-13). + - Updated licensing email for @alganet. + - Added ignores for phpstan template variables without getters. + - Fixed misc phpstan and phpcs errors. + - v::dateTime('z') is not supported anymore in PHP8, and should not be relied upon + # Changes in Respect\Validation 1.0 All notable changes of the Respect\Validation releases are documented in this file. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bd208bcd..e1eeb4b2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -56,7 +56,7 @@ and will natively have support for chaining and everything else. /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -96,7 +96,7 @@ library will show the appropriate message. /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -145,7 +145,7 @@ first item of the arrays: /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/LICENSE b/LICENSE index 12abe605..1b92eaf1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) Alexandre Gomes Gaigalas +Copyright (c) Alexandre Gomes Gaigalas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/bin/update-currency-codes b/bin/update-currency-codes index 837b3fe4..6b0ea19d 100755 --- a/bin/update-currency-codes +++ b/bin/update-currency-codes @@ -6,7 +6,7 @@ set -euo pipefail declare -r IFS=$'\n' -declare -r LIST_URL="https://www.currency-iso.org/dam/downloads/lists/list_one.xml" +declare -r LIST_URL="https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml" declare -r LIST_FILENAME=$(mktemp) declare -r RULE_FILENAME=$(dirname "${BASH_SOURCE}")/../library/Rules/CurrencyCode.php diff --git a/bin/update-iso-codes b/bin/update-iso-codes index 725d36ed..ab593bf9 100755 --- a/bin/update-iso-codes +++ b/bin/update-iso-codes @@ -6,13 +6,16 @@ set -euo pipefail declare -r IFS=$'\n' declare -r REPOSITORY_URL="https://salsa.debian.org/iso-codes-team/iso-codes.git" -declare -r REPOSITORY_DIRECTORY=$(mktemp --directory) -declare -r LIBRARY_DIRECTORY="${1}" +declare -r REPOSITORY_DIRECTORY=".iso-codes-cache" +declare -r LIBRARY_DIRECTORY="library" clone_repository() { - echo "Cloning repository ${REPOSITORY_URL}" - git clone --quiet "${REPOSITORY_URL}" "${REPOSITORY_DIRECTORY}" + if ! test -d "$REPOSITORY_DIRECTORY" + then + echo "Cloning repository ${REPOSITORY_URL}" + git clone --quiet "${REPOSITORY_URL}" "${REPOSITORY_DIRECTORY}" + fi } list_iso_3166() @@ -41,12 +44,12 @@ update_country_codes() echo "Updating country codes using ISO 3166-1 and ISO 3166-3" { - sed -n '/^ "${temporary_filename}" mv "${temporary_filename}" "${country_rule_filename}" } @@ -58,41 +61,6 @@ rule_from_country_code() echo "${LIBRARY_DIRECTORY}/Rules/SubdivisionCode/${country_code^}SubdivisionCode.php" } -update_subdivision_codes() -{ - local -r iso_3166_2_filename="${REPOSITORY_DIRECTORY}/data/iso_3166-2.json" - local -r iso_3166_2_count=$(grep --word-regexp "code" "${iso_3166_2_filename}" | wc --lines) - local -r temporary_filename=$(mktemp) - local last_country_code="" - local last_country_rule="" - - echo "Updating subdivision codes using ISO 3166-2" - - for index in $(seq 0 $[iso_3166_2_count - 1]); do - local json=$(jq ".[][${index}]" < "${iso_3166_2_filename}") - local code=$(jq -r ".code" <<< "${json}") - local name=$(jq -r ".name" <<< "${json}") - - local current_country_code=$(cut --delimiter "-" --fields 1 <<< "${code}") - local current_country_rule=$(rule_from_country_code ${current_country_code}) - - if [[ ${last_country_code} != ${current_country_code} ]] && [[ ! -z "${last_country_code}" ]]; then - sed -n '/^ \]/,/^}/p' "${last_country_rule}" >> "${temporary_filename}" - cat "${temporary_filename}" > "${last_country_rule}" - fi - - if [[ ${last_country_code} != ${current_country_code} ]]; then - echo "- Updating ${current_country_code}" - sed -n '/^ "${temporary_filename}" - fi - - echo " '$(cut --delimiter "-" --fields 2 <<< ${code})', // ${name}" >> "${temporary_filename}" - - last_country_code=${current_country_code} - last_country_rule=${current_country_rule} - done -} - clone_repository update_country_codes -update_subdivision_codes + diff --git a/composer.json b/composer.json index a2737f2b..408ea028 100644 --- a/composer.json +++ b/composer.json @@ -12,10 +12,13 @@ } ], "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } }, "require": { - "php": "^7.3 || ^8.0", + "php": "^7.4 || ^8.0 || ^8.1 || ^8.2", "respect/stringifier": "^0.2.0", "symfony/polyfill-mbstring": "^1.2" }, @@ -23,23 +26,20 @@ "egulias/email-validator": "^3.0", "malukenho/docheader": "^0.1", "mikey179/vfsstream": "^1.6", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-deprecation-rules": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpunit/phpunit": "^9.3", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.6", "psr/http-message": "^1.0", "respect/coding-standard": "^3.0", - "squizlabs/php_codesniffer": "^3.5", - "symfony/validator": "^3.0||^4.0", - "zendframework/zend-validator": "^2.1" + "squizlabs/php_codesniffer": "^3.7", + "symfony/validator": "^3.0||^4.0" }, "suggest": { "ext-bcmath": "Arbitrary Precision Mathematics", "ext-fileinfo": "File Information", "ext-mbstring": "Multibyte String Functions", - "egulias/email-validator": "Strict (RFC compliant) email validation", - "symfony/validator": "Use Symfony validator through Respect\\Validation", - "zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation" + "egulias/email-validator": "Strict (RFC compliant) email validation" }, "autoload": { "psr-4": { diff --git a/docs/feature-guide.md b/docs/feature-guide.md index 698d9f5f..4be1a2ce 100644 --- a/docs/feature-guide.md +++ b/docs/feature-guide.md @@ -237,12 +237,11 @@ is the same as the input. You can customize a validator name using: v::dateTime('Y-m-d')->between('1980-02-02', 'now')->setName('Member Since'); ``` -## Zend/Symfony validators +## Symfony validators -It is also possible to reuse validators from other frameworks if they are installed: +It is also possible to reuse validators from Symfony if they are installed: ```php -$hostnameValidator = v::zend('Hostname')->assert('google.com'); $timeValidator = v::sf('Time')->assert('22:00:01'); ``` diff --git a/docs/list-of-rules.md b/docs/list-of-rules.md index 8e8644c3..c6fee8bc 100644 --- a/docs/list-of-rules.md +++ b/docs/list-of-rules.md @@ -116,7 +116,6 @@ ## Integrations - [Sf](rules/Sf.md) -- [Zend](rules/Zend.md) ## Internet @@ -420,4 +419,3 @@ - [Writable](rules/Writable.md) - [Xdigit](rules/Xdigit.md) - [Yes](rules/Yes.md) -- [Zend](rules/Zend.md) diff --git a/docs/rules/Email.md b/docs/rules/Email.md index b0c01426..6a742338 100644 --- a/docs/rules/Email.md +++ b/docs/rules/Email.md @@ -5,7 +5,7 @@ Validates an email address. ```php -v::email()->validate('alexandre@gaigalas.net'); // true +v::email()->validate('alganet@gmail.com'); // true ``` ## Categorization diff --git a/docs/rules/Sf.md b/docs/rules/Sf.md index e8c7dadd..815acb0a 100644 --- a/docs/rules/Sf.md +++ b/docs/rules/Sf.md @@ -25,7 +25,3 @@ Version | Description 2.0.0 | Upgraded support to version >=4.0 or >=3.0 of Symfony Validator 0.3.9 | Created -*** -See also: - -- [Zend](Zend.md) diff --git a/docs/rules/Zend.md b/docs/rules/Zend.md deleted file mode 100644 index aaafe51c..00000000 --- a/docs/rules/Zend.md +++ /dev/null @@ -1,27 +0,0 @@ -# Zend - -- `Zend(mixed $validatorName)` - -Use Zend validators inside Respect\Validation flow. Messages -are preserved. - -```php -v::zend('Hostname')->validate('google.com'); -``` - -Respect\Validation supports version >=2.0.3 of Zend\Validator. - -## Categorization - -- Integrations - -## Changelog - -Version | Description ---------|------------- - 0.3.9 | Created - -*** -See also: - -- [Sf](Sf.md) diff --git a/library/ChainedValidator.php b/library/ChainedValidator.php index d3e20601..e738b7e9 100644 --- a/library/ChainedValidator.php +++ b/library/ChainedValidator.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -17,7 +17,6 @@ use finfo; use Respect\Validation\Rules\Key; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Validator\ValidatorInterface as SymfonyValidator; -use Zend\Validator\ValidatorInterface as ZendValidator; interface ChainedValidator extends Validatable { @@ -380,10 +379,4 @@ interface ChainedValidator extends Validatable public function xdigit(string ...$additionalChars): ChainedValidator; public function yes(bool $useLocale = false): ChainedValidator; - - /** - * @param string|ZendValidator $validator - * @param mixed[] $params - */ - public function zend($validator, ?array $params = null): ChainedValidator; } diff --git a/library/Exceptions/AllOfException.php b/library/Exceptions/AllOfException.php index 3922d1f9..ffd4ad14 100644 --- a/library/Exceptions/AllOfException.php +++ b/library/Exceptions/AllOfException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ class AllOfException extends GroupedValidationException diff --git a/library/Exceptions/AlnumException.php b/library/Exceptions/AlnumException.php index 7136745c..903956a3 100644 --- a/library/Exceptions/AlnumException.php +++ b/library/Exceptions/AlnumException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class AlnumException extends FilteredValidationException diff --git a/library/Exceptions/AlphaException.php b/library/Exceptions/AlphaException.php index be5cf376..ab53a9f9 100644 --- a/library/Exceptions/AlphaException.php +++ b/library/Exceptions/AlphaException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class AlphaException extends FilteredValidationException diff --git a/library/Exceptions/AlwaysInvalidException.php b/library/Exceptions/AlwaysInvalidException.php index ec7984c1..dd15a5ad 100644 --- a/library/Exceptions/AlwaysInvalidException.php +++ b/library/Exceptions/AlwaysInvalidException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/AlwaysValidException.php b/library/Exceptions/AlwaysValidException.php index 7f6f59ab..32caaeaa 100644 --- a/library/Exceptions/AlwaysValidException.php +++ b/library/Exceptions/AlwaysValidException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/AnyOfException.php b/library/Exceptions/AnyOfException.php index cd7751e7..7061df5a 100644 --- a/library/Exceptions/AnyOfException.php +++ b/library/Exceptions/AnyOfException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class AnyOfException extends NestedValidationException diff --git a/library/Exceptions/ArrayTypeException.php b/library/Exceptions/ArrayTypeException.php index 27ea5dad..c31efbb7 100644 --- a/library/Exceptions/ArrayTypeException.php +++ b/library/Exceptions/ArrayTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody * @author João Torquato diff --git a/library/Exceptions/ArrayValException.php b/library/Exceptions/ArrayValException.php index 21a43a05..5832b75c 100644 --- a/library/Exceptions/ArrayValException.php +++ b/library/Exceptions/ArrayValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/library/Exceptions/AttributeException.php b/library/Exceptions/AttributeException.php index d9a56611..1ab59a5b 100644 --- a/library/Exceptions/AttributeException.php +++ b/library/Exceptions/AttributeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; /** * Exceptions to be thrown by the Attribute Rule. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/library/Exceptions/Base64Exception.php b/library/Exceptions/Base64Exception.php index 42157f03..e157f86f 100644 --- a/library/Exceptions/Base64Exception.php +++ b/library/Exceptions/Base64Exception.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/BaseException.php b/library/Exceptions/BaseException.php index dcd58944..4acb9eac 100644 --- a/library/Exceptions/BaseException.php +++ b/library/Exceptions/BaseException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/BetweenException.php b/library/Exceptions/BetweenException.php index 13503b89..808f216a 100644 --- a/library/Exceptions/BetweenException.php +++ b/library/Exceptions/BetweenException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class BetweenException extends NestedValidationException diff --git a/library/Exceptions/BoolTypeException.php b/library/Exceptions/BoolTypeException.php index a0df1179..bda6a606 100644 --- a/library/Exceptions/BoolTypeException.php +++ b/library/Exceptions/BoolTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/BoolValException.php b/library/Exceptions/BoolValException.php index 9f1d3f1d..4e14d009 100644 --- a/library/Exceptions/BoolValException.php +++ b/library/Exceptions/BoolValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/BsnException.php b/library/Exceptions/BsnException.php index 851b7274..0d575db3 100644 --- a/library/Exceptions/BsnException.php +++ b/library/Exceptions/BsnException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/CallException.php b/library/Exceptions/CallException.php index b74e606a..a9a4e389 100644 --- a/library/Exceptions/CallException.php +++ b/library/Exceptions/CallException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class CallException extends NestedValidationException diff --git a/library/Exceptions/CallableTypeException.php b/library/Exceptions/CallableTypeException.php index 28062115..d9fb2e05 100644 --- a/library/Exceptions/CallableTypeException.php +++ b/library/Exceptions/CallableTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/CallbackException.php b/library/Exceptions/CallbackException.php index 66f26d4f..47164e8c 100644 --- a/library/Exceptions/CallbackException.php +++ b/library/Exceptions/CallbackException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/CharsetException.php b/library/Exceptions/CharsetException.php index 7e3066ae..0d5152f9 100644 --- a/library/Exceptions/CharsetException.php +++ b/library/Exceptions/CharsetException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/CnhException.php b/library/Exceptions/CnhException.php index 86b7995a..77800cb7 100644 --- a/library/Exceptions/CnhException.php +++ b/library/Exceptions/CnhException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/CnpjException.php b/library/Exceptions/CnpjException.php index c1d1c1da..47ae65a0 100644 --- a/library/Exceptions/CnpjException.php +++ b/library/Exceptions/CnpjException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ComponentException.php b/library/Exceptions/ComponentException.php index 0f430327..1475a9d5 100644 --- a/library/Exceptions/ComponentException.php +++ b/library/Exceptions/ComponentException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -17,7 +17,7 @@ use Exception; use Throwable; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ class ComponentException extends Exception implements Throwable diff --git a/library/Exceptions/ConsonantException.php b/library/Exceptions/ConsonantException.php index d04f5760..a6fc94d8 100644 --- a/library/Exceptions/ConsonantException.php +++ b/library/Exceptions/ConsonantException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ContainsAnyException.php b/library/Exceptions/ContainsAnyException.php index 6f88c0ae..6aae1ab3 100644 --- a/library/Exceptions/ContainsAnyException.php +++ b/library/Exceptions/ContainsAnyException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ContainsException.php b/library/Exceptions/ContainsException.php index af2ef607..86378da2 100644 --- a/library/Exceptions/ContainsException.php +++ b/library/Exceptions/ContainsException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/ControlException.php b/library/Exceptions/ControlException.php index da73250d..fd2e5355 100644 --- a/library/Exceptions/ControlException.php +++ b/library/Exceptions/ControlException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/CountableException.php b/library/Exceptions/CountableException.php index 070cb2e8..582de186 100644 --- a/library/Exceptions/CountableException.php +++ b/library/Exceptions/CountableException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/CountryCodeException.php b/library/Exceptions/CountryCodeException.php index 3b496a52..c6f7dfd6 100644 --- a/library/Exceptions/CountryCodeException.php +++ b/library/Exceptions/CountryCodeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/CpfException.php b/library/Exceptions/CpfException.php index 7233fc3f..4137b5f3 100644 --- a/library/Exceptions/CpfException.php +++ b/library/Exceptions/CpfException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/CreditCardException.php b/library/Exceptions/CreditCardException.php index 10e785b5..9d044cb8 100644 --- a/library/Exceptions/CreditCardException.php +++ b/library/Exceptions/CreditCardException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/CurrencyCodeException.php b/library/Exceptions/CurrencyCodeException.php index 33855805..9d9aa8ef 100644 --- a/library/Exceptions/CurrencyCodeException.php +++ b/library/Exceptions/CurrencyCodeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/DateException.php b/library/Exceptions/DateException.php index 0cf18744..8b3014d2 100644 --- a/library/Exceptions/DateException.php +++ b/library/Exceptions/DateException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/DateTimeException.php b/library/Exceptions/DateTimeException.php index 92039cfc..25c180b4 100644 --- a/library/Exceptions/DateTimeException.php +++ b/library/Exceptions/DateTimeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class DateTimeException extends ValidationException diff --git a/library/Exceptions/DecimalException.php b/library/Exceptions/DecimalException.php index 464d2b9c..3b27ddaf 100644 --- a/library/Exceptions/DecimalException.php +++ b/library/Exceptions/DecimalException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/DigitException.php b/library/Exceptions/DigitException.php index 321842a8..adeb48bc 100644 --- a/library/Exceptions/DigitException.php +++ b/library/Exceptions/DigitException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class DigitException extends FilteredValidationException diff --git a/library/Exceptions/DirectoryException.php b/library/Exceptions/DirectoryException.php index c6f0dd02..7c2961d6 100644 --- a/library/Exceptions/DirectoryException.php +++ b/library/Exceptions/DirectoryException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/DomainException.php b/library/Exceptions/DomainException.php index 27001aa2..2c3592ef 100644 --- a/library/Exceptions/DomainException.php +++ b/library/Exceptions/DomainException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class DomainException extends NestedValidationException diff --git a/library/Exceptions/EachException.php b/library/Exceptions/EachException.php index f506b906..3a888abe 100644 --- a/library/Exceptions/EachException.php +++ b/library/Exceptions/EachException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/EmailException.php b/library/Exceptions/EmailException.php index 5c75a501..cd749a55 100644 --- a/library/Exceptions/EmailException.php +++ b/library/Exceptions/EmailException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; /** * Exceptions thrown by email rule. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Andrey Kolyshkin * @author Eduardo Gulias Davis * @author Henrique Moody diff --git a/library/Exceptions/EndsWithException.php b/library/Exceptions/EndsWithException.php index 82c03e80..70a0d3c3 100644 --- a/library/Exceptions/EndsWithException.php +++ b/library/Exceptions/EndsWithException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Exceptions/EqualsException.php b/library/Exceptions/EqualsException.php index f3e2d39c..ae9c4dc7 100644 --- a/library/Exceptions/EqualsException.php +++ b/library/Exceptions/EqualsException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Ian Nisbet */ diff --git a/library/Exceptions/EquivalentException.php b/library/Exceptions/EquivalentException.php index 8a40fe3c..16452c94 100644 --- a/library/Exceptions/EquivalentException.php +++ b/library/Exceptions/EquivalentException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/EvenException.php b/library/Exceptions/EvenException.php index 233ff32e..77a1dc1f 100644 --- a/library/Exceptions/EvenException.php +++ b/library/Exceptions/EvenException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/Exception.php b/library/Exceptions/Exception.php index 14c09305..89a3f09a 100644 --- a/library/Exceptions/Exception.php +++ b/library/Exceptions/Exception.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ExecutableException.php b/library/Exceptions/ExecutableException.php index bd2ab8ad..83142544 100644 --- a/library/Exceptions/ExecutableException.php +++ b/library/Exceptions/ExecutableException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ExistsException.php b/library/Exceptions/ExistsException.php index 368c63c0..4bce1c72 100644 --- a/library/Exceptions/ExistsException.php +++ b/library/Exceptions/ExistsException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ExtensionException.php b/library/Exceptions/ExtensionException.php index 920dd86d..6d828a67 100644 --- a/library/Exceptions/ExtensionException.php +++ b/library/Exceptions/ExtensionException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FactorException.php b/library/Exceptions/FactorException.php index b2b7bb00..2c494f07 100644 --- a/library/Exceptions/FactorException.php +++ b/library/Exceptions/FactorException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FalseValException.php b/library/Exceptions/FalseValException.php index afbc668b..61d82d6c 100644 --- a/library/Exceptions/FalseValException.php +++ b/library/Exceptions/FalseValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FibonacciException.php b/library/Exceptions/FibonacciException.php index 77efe0ab..f30d27a4 100644 --- a/library/Exceptions/FibonacciException.php +++ b/library/Exceptions/FibonacciException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FileException.php b/library/Exceptions/FileException.php index c734a2b0..d2270736 100644 --- a/library/Exceptions/FileException.php +++ b/library/Exceptions/FileException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FilterVarException.php b/library/Exceptions/FilterVarException.php index 07d52ee7..c572fe8f 100644 --- a/library/Exceptions/FilterVarException.php +++ b/library/Exceptions/FilterVarException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FilteredValidationException.php b/library/Exceptions/FilteredValidationException.php index e11cea8e..1fe67f8d 100644 --- a/library/Exceptions/FilteredValidationException.php +++ b/library/Exceptions/FilteredValidationException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FiniteException.php b/library/Exceptions/FiniteException.php index 1cc35592..73c244dc 100644 --- a/library/Exceptions/FiniteException.php +++ b/library/Exceptions/FiniteException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FloatTypeException.php b/library/Exceptions/FloatTypeException.php index 61a036ba..3a7221c5 100644 --- a/library/Exceptions/FloatTypeException.php +++ b/library/Exceptions/FloatTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/FloatValException.php b/library/Exceptions/FloatValException.php index 3b40010f..c6fd198b 100644 --- a/library/Exceptions/FloatValException.php +++ b/library/Exceptions/FloatValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Exceptions/GraphException.php b/library/Exceptions/GraphException.php index 9ed98210..ff329843 100644 --- a/library/Exceptions/GraphException.php +++ b/library/Exceptions/GraphException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/GreaterThanException.php b/library/Exceptions/GreaterThanException.php index 86fae6f1..6e462abc 100644 --- a/library/Exceptions/GreaterThanException.php +++ b/library/Exceptions/GreaterThanException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/GroupedValidationException.php b/library/Exceptions/GroupedValidationException.php index 8223f336..5d432f49 100644 --- a/library/Exceptions/GroupedValidationException.php +++ b/library/Exceptions/GroupedValidationException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; use function count; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ class GroupedValidationException extends NestedValidationException diff --git a/library/Exceptions/HexRgbColorException.php b/library/Exceptions/HexRgbColorException.php index a4548aaa..8c59a7ce 100644 --- a/library/Exceptions/HexRgbColorException.php +++ b/library/Exceptions/HexRgbColorException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/IbanException.php b/library/Exceptions/IbanException.php index 8c490327..2fa74a6b 100644 --- a/library/Exceptions/IbanException.php +++ b/library/Exceptions/IbanException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/IdenticalException.php b/library/Exceptions/IdenticalException.php index 65e77552..d1a0a9dc 100644 --- a/library/Exceptions/IdenticalException.php +++ b/library/Exceptions/IdenticalException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ImageException.php b/library/Exceptions/ImageException.php index dff34999..25bd3ffb 100644 --- a/library/Exceptions/ImageException.php +++ b/library/Exceptions/ImageException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ImeiException.php b/library/Exceptions/ImeiException.php index 9c3a1a5c..b4e8e321 100644 --- a/library/Exceptions/ImeiException.php +++ b/library/Exceptions/ImeiException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/InException.php b/library/Exceptions/InException.php index 09f49b21..e5a7c28f 100644 --- a/library/Exceptions/InException.php +++ b/library/Exceptions/InException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Exceptions/InfiniteException.php b/library/Exceptions/InfiniteException.php index c75fd57a..7cbf18fc 100644 --- a/library/Exceptions/InfiniteException.php +++ b/library/Exceptions/InfiniteException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/InstanceException.php b/library/Exceptions/InstanceException.php index a506764a..769997e0 100644 --- a/library/Exceptions/InstanceException.php +++ b/library/Exceptions/InstanceException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Exceptions/IntTypeException.php b/library/Exceptions/IntTypeException.php index e0bd0e00..75d92ea2 100644 --- a/library/Exceptions/IntTypeException.php +++ b/library/Exceptions/IntTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/IntValException.php b/library/Exceptions/IntValException.php index 2c9e6fb9..2498ecc2 100644 --- a/library/Exceptions/IntValException.php +++ b/library/Exceptions/IntValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Exceptions/InvalidClassException.php b/library/Exceptions/InvalidClassException.php index 015c8ea3..c4680882 100644 --- a/library/Exceptions/InvalidClassException.php +++ b/library/Exceptions/InvalidClassException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/IpException.php b/library/Exceptions/IpException.php index 88db1911..c6ca2d30 100644 --- a/library/Exceptions/IpException.php +++ b/library/Exceptions/IpException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody * @author Luís Otávio Cobucci Oblonczyk diff --git a/library/Exceptions/IsbnException.php b/library/Exceptions/IsbnException.php index 71b73c15..a4a81b1a 100644 --- a/library/Exceptions/IsbnException.php +++ b/library/Exceptions/IsbnException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/IterableTypeException.php b/library/Exceptions/IterableTypeException.php index 3673230f..2ad86111 100644 --- a/library/Exceptions/IterableTypeException.php +++ b/library/Exceptions/IterableTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/JsonException.php b/library/Exceptions/JsonException.php index 261b6609..44e30bfb 100644 --- a/library/Exceptions/JsonException.php +++ b/library/Exceptions/JsonException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Exceptions/KeyException.php b/library/Exceptions/KeyException.php index 9b4f6fdd..654f49e5 100644 --- a/library/Exceptions/KeyException.php +++ b/library/Exceptions/KeyException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; /** * Exceptions to be thrown by the Attribute Rule. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/library/Exceptions/KeyNestedException.php b/library/Exceptions/KeyNestedException.php index a2be3903..61720344 100644 --- a/library/Exceptions/KeyNestedException.php +++ b/library/Exceptions/KeyNestedException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/KeySetException.php b/library/Exceptions/KeySetException.php index 2cf4ee3d..cc45aad6 100644 --- a/library/Exceptions/KeySetException.php +++ b/library/Exceptions/KeySetException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/KeyValueException.php b/library/Exceptions/KeyValueException.php index e8c69707..78b98dee 100644 --- a/library/Exceptions/KeyValueException.php +++ b/library/Exceptions/KeyValueException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/LanguageCodeException.php b/library/Exceptions/LanguageCodeException.php index 1f49483e..d8fd7011 100644 --- a/library/Exceptions/LanguageCodeException.php +++ b/library/Exceptions/LanguageCodeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/LeapDateException.php b/library/Exceptions/LeapDateException.php index d545b8b7..3a74212c 100644 --- a/library/Exceptions/LeapDateException.php +++ b/library/Exceptions/LeapDateException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/LeapYearException.php b/library/Exceptions/LeapYearException.php index f2d9ebe6..04b71c8e 100644 --- a/library/Exceptions/LeapYearException.php +++ b/library/Exceptions/LeapYearException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/LengthException.php b/library/Exceptions/LengthException.php index cc31a337..48fc28f5 100644 --- a/library/Exceptions/LengthException.php +++ b/library/Exceptions/LengthException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Henrique Moody * @author Mazen Touati diff --git a/library/Exceptions/LessThanException.php b/library/Exceptions/LessThanException.php index 01d7bada..60c1b61b 100644 --- a/library/Exceptions/LessThanException.php +++ b/library/Exceptions/LessThanException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/LowercaseException.php b/library/Exceptions/LowercaseException.php index 8caabd4e..5e62de37 100644 --- a/library/Exceptions/LowercaseException.php +++ b/library/Exceptions/LowercaseException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/LuhnException.php b/library/Exceptions/LuhnException.php index 83c6493f..92b8fd11 100644 --- a/library/Exceptions/LuhnException.php +++ b/library/Exceptions/LuhnException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/MacAddressException.php b/library/Exceptions/MacAddressException.php index d8c0852a..3fe2e08c 100644 --- a/library/Exceptions/MacAddressException.php +++ b/library/Exceptions/MacAddressException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/MaxAgeException.php b/library/Exceptions/MaxAgeException.php index f8607aa1..83b2bf67 100644 --- a/library/Exceptions/MaxAgeException.php +++ b/library/Exceptions/MaxAgeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/MaxException.php b/library/Exceptions/MaxException.php index 1995005e..0b09b370 100644 --- a/library/Exceptions/MaxException.php +++ b/library/Exceptions/MaxException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Andrew Peters * @author Henrique Moody */ diff --git a/library/Exceptions/MimetypeException.php b/library/Exceptions/MimetypeException.php index b2efc46a..bb58e2cd 100644 --- a/library/Exceptions/MimetypeException.php +++ b/library/Exceptions/MimetypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/MinAgeException.php b/library/Exceptions/MinAgeException.php index fdc365cc..066578a3 100644 --- a/library/Exceptions/MinAgeException.php +++ b/library/Exceptions/MinAgeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/MinException.php b/library/Exceptions/MinException.php index b828beaa..54cdc05f 100644 --- a/library/Exceptions/MinException.php +++ b/library/Exceptions/MinException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class MinException extends ValidationException diff --git a/library/Exceptions/MultipleException.php b/library/Exceptions/MultipleException.php index b12cffc3..1a7be4db 100644 --- a/library/Exceptions/MultipleException.php +++ b/library/Exceptions/MultipleException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NegativeException.php b/library/Exceptions/NegativeException.php index 17c1d0fc..b013325e 100644 --- a/library/Exceptions/NegativeException.php +++ b/library/Exceptions/NegativeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Ismael Elias */ diff --git a/library/Exceptions/NestedValidationException.php b/library/Exceptions/NestedValidationException.php index ffcc2a4b..63ab0042 100644 --- a/library/Exceptions/NestedValidationException.php +++ b/library/Exceptions/NestedValidationException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -36,7 +36,7 @@ use const PHP_EOL; * to handle them and to retrieve nested messages based on itself and its * children. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Jonathan Stewmon * @author Wojciech Frącz diff --git a/library/Exceptions/NfeAccessKeyException.php b/library/Exceptions/NfeAccessKeyException.php index 3c8725bd..c9456e22 100644 --- a/library/Exceptions/NfeAccessKeyException.php +++ b/library/Exceptions/NfeAccessKeyException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NifException.php b/library/Exceptions/NifException.php index 9f4297ed..963df917 100644 --- a/library/Exceptions/NifException.php +++ b/library/Exceptions/NifException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NipException.php b/library/Exceptions/NipException.php index e48d941d..f497b7af 100644 --- a/library/Exceptions/NipException.php +++ b/library/Exceptions/NipException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NoException.php b/library/Exceptions/NoException.php index 1e09bae7..fc3783e9 100644 --- a/library/Exceptions/NoException.php +++ b/library/Exceptions/NoException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NoWhitespaceException.php b/library/Exceptions/NoWhitespaceException.php index ce498fe2..eb6ccce5 100644 --- a/library/Exceptions/NoWhitespaceException.php +++ b/library/Exceptions/NoWhitespaceException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Exceptions/NonOmissibleException.php b/library/Exceptions/NonOmissibleException.php index ca32efcb..26ed44b6 100644 --- a/library/Exceptions/NonOmissibleException.php +++ b/library/Exceptions/NonOmissibleException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NoneOfException.php b/library/Exceptions/NoneOfException.php index 7e6c66f6..4fb590d3 100644 --- a/library/Exceptions/NoneOfException.php +++ b/library/Exceptions/NoneOfException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class NoneOfException extends NestedValidationException diff --git a/library/Exceptions/NotBlankException.php b/library/Exceptions/NotBlankException.php index 46c324ae..c42ae108 100644 --- a/library/Exceptions/NotBlankException.php +++ b/library/Exceptions/NotBlankException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NotEmojiException.php b/library/Exceptions/NotEmojiException.php index ca980010..418e8f11 100644 --- a/library/Exceptions/NotEmojiException.php +++ b/library/Exceptions/NotEmojiException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NotEmptyException.php b/library/Exceptions/NotEmptyException.php index 1871ec03..316479cc 100644 --- a/library/Exceptions/NotEmptyException.php +++ b/library/Exceptions/NotEmptyException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Bram Van der Sype * @author Henrique Moody */ diff --git a/library/Exceptions/NotException.php b/library/Exceptions/NotException.php index a9f4cb6d..53d2e648 100644 --- a/library/Exceptions/NotException.php +++ b/library/Exceptions/NotException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class NotException extends GroupedValidationException diff --git a/library/Exceptions/NotOptionalException.php b/library/Exceptions/NotOptionalException.php index 2da161ef..684e7ed8 100644 --- a/library/Exceptions/NotOptionalException.php +++ b/library/Exceptions/NotOptionalException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NullTypeException.php b/library/Exceptions/NullTypeException.php index 61ca9cfa..99939374 100644 --- a/library/Exceptions/NullTypeException.php +++ b/library/Exceptions/NullTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; /** * Exception class for NullType. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class NullTypeException extends ValidationException diff --git a/library/Exceptions/NullableException.php b/library/Exceptions/NullableException.php index d918a8f0..d49541f4 100644 --- a/library/Exceptions/NullableException.php +++ b/library/Exceptions/NullableException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NumberException.php b/library/Exceptions/NumberException.php index 25eb7787..ed0163c7 100644 --- a/library/Exceptions/NumberException.php +++ b/library/Exceptions/NumberException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/NumericValException.php b/library/Exceptions/NumericValException.php index 81665b67..53f64691 100644 --- a/library/Exceptions/NumericValException.php +++ b/library/Exceptions/NumericValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Henrique Moody */ diff --git a/library/Exceptions/ObjectTypeException.php b/library/Exceptions/ObjectTypeException.php index d9b8910c..426297be 100644 --- a/library/Exceptions/ObjectTypeException.php +++ b/library/Exceptions/ObjectTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; /** * Exception class for ObjectType rule. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class ObjectTypeException extends ValidationException diff --git a/library/Exceptions/OddException.php b/library/Exceptions/OddException.php index 6f66028a..6b0fc319 100644 --- a/library/Exceptions/OddException.php +++ b/library/Exceptions/OddException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/OneOfException.php b/library/Exceptions/OneOfException.php index 255ca440..0512c039 100644 --- a/library/Exceptions/OneOfException.php +++ b/library/Exceptions/OneOfException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/OptionalException.php b/library/Exceptions/OptionalException.php index a52eaa14..45f39851 100644 --- a/library/Exceptions/OptionalException.php +++ b/library/Exceptions/OptionalException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PerfectSquareException.php b/library/Exceptions/PerfectSquareException.php index f8f70f77..4403f061 100644 --- a/library/Exceptions/PerfectSquareException.php +++ b/library/Exceptions/PerfectSquareException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PeselException.php b/library/Exceptions/PeselException.php index 840fd30a..77c30a3a 100644 --- a/library/Exceptions/PeselException.php +++ b/library/Exceptions/PeselException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PhoneException.php b/library/Exceptions/PhoneException.php index 5b7fb89c..1cc90fe6 100644 --- a/library/Exceptions/PhoneException.php +++ b/library/Exceptions/PhoneException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PhpLabelException.php b/library/Exceptions/PhpLabelException.php index 9b589e20..1c945821 100644 --- a/library/Exceptions/PhpLabelException.php +++ b/library/Exceptions/PhpLabelException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PisException.php b/library/Exceptions/PisException.php index 5f2d1992..74564b7a 100644 --- a/library/Exceptions/PisException.php +++ b/library/Exceptions/PisException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PolishIdCardException.php b/library/Exceptions/PolishIdCardException.php index 5dde58fe..94c9107b 100644 --- a/library/Exceptions/PolishIdCardException.php +++ b/library/Exceptions/PolishIdCardException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PositiveException.php b/library/Exceptions/PositiveException.php index 9d562303..e4ac5eb1 100644 --- a/library/Exceptions/PositiveException.php +++ b/library/Exceptions/PositiveException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Ismael Elias */ diff --git a/library/Exceptions/PostalCodeException.php b/library/Exceptions/PostalCodeException.php index 776c5c85..aa86f0fc 100644 --- a/library/Exceptions/PostalCodeException.php +++ b/library/Exceptions/PostalCodeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PrimeNumberException.php b/library/Exceptions/PrimeNumberException.php index b780d60a..5d27405a 100644 --- a/library/Exceptions/PrimeNumberException.php +++ b/library/Exceptions/PrimeNumberException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/PrintableException.php b/library/Exceptions/PrintableException.php index 534fb0da..bb5a5085 100644 --- a/library/Exceptions/PrintableException.php +++ b/library/Exceptions/PrintableException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; /** * Exceptions to be thrown by the Printable Rule. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Andre Ramaciotti * @author Emmerson Siqueira * @author Henrique Moody diff --git a/library/Exceptions/PunctException.php b/library/Exceptions/PunctException.php index 71c7328a..a127a366 100644 --- a/library/Exceptions/PunctException.php +++ b/library/Exceptions/PunctException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ReadableException.php b/library/Exceptions/ReadableException.php index 4f1dce6d..ce543ffb 100644 --- a/library/Exceptions/ReadableException.php +++ b/library/Exceptions/ReadableException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/RecursiveExceptionIterator.php b/library/Exceptions/RecursiveExceptionIterator.php index 5ee53ff5..35afa787 100644 --- a/library/Exceptions/RecursiveExceptionIterator.php +++ b/library/Exceptions/RecursiveExceptionIterator.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/RegexException.php b/library/Exceptions/RegexException.php index e49b4559..fd9db082 100644 --- a/library/Exceptions/RegexException.php +++ b/library/Exceptions/RegexException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Henrique Moody */ diff --git a/library/Exceptions/ResourceTypeException.php b/library/Exceptions/ResourceTypeException.php index 47a424e1..9ece6ba2 100644 --- a/library/Exceptions/ResourceTypeException.php +++ b/library/Exceptions/ResourceTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/RomanException.php b/library/Exceptions/RomanException.php index c7f925ab..69b48c05 100644 --- a/library/Exceptions/RomanException.php +++ b/library/Exceptions/RomanException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ScalarValException.php b/library/Exceptions/ScalarValException.php index 0232e53c..2ebb56a4 100644 --- a/library/Exceptions/ScalarValException.php +++ b/library/Exceptions/ScalarValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/SfException.php b/library/Exceptions/SfException.php index 2cb31efd..9ff2a346 100644 --- a/library/Exceptions/SfException.php +++ b/library/Exceptions/SfException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class SfException extends ValidationException diff --git a/library/Exceptions/SizeException.php b/library/Exceptions/SizeException.php index 416a7850..00ceeca1 100644 --- a/library/Exceptions/SizeException.php +++ b/library/Exceptions/SizeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/SlugException.php b/library/Exceptions/SlugException.php index 4a2440af..0e3159b1 100644 --- a/library/Exceptions/SlugException.php +++ b/library/Exceptions/SlugException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/SortedException.php b/library/Exceptions/SortedException.php index 0bf8fad9..e6b5e75e 100644 --- a/library/Exceptions/SortedException.php +++ b/library/Exceptions/SortedException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/SpaceException.php b/library/Exceptions/SpaceException.php index f56abc84..2018a12a 100644 --- a/library/Exceptions/SpaceException.php +++ b/library/Exceptions/SpaceException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/StartsWithException.php b/library/Exceptions/StartsWithException.php index 7a9afa14..cab25da6 100644 --- a/library/Exceptions/StartsWithException.php +++ b/library/Exceptions/StartsWithException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class StartsWithException extends ValidationException diff --git a/library/Exceptions/StringTypeException.php b/library/Exceptions/StringTypeException.php index 3bdf2bfa..9327da8a 100644 --- a/library/Exceptions/StringTypeException.php +++ b/library/Exceptions/StringTypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Respect\Validation\Exceptions; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class StringTypeException extends ValidationException diff --git a/library/Exceptions/StringValException.php b/library/Exceptions/StringValException.php index 19920780..69e9372e 100644 --- a/library/Exceptions/StringValException.php +++ b/library/Exceptions/StringValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/SubdivisionCodeException.php b/library/Exceptions/SubdivisionCodeException.php index efb089d9..dfb27102 100644 --- a/library/Exceptions/SubdivisionCodeException.php +++ b/library/Exceptions/SubdivisionCodeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/SubsetException.php b/library/Exceptions/SubsetException.php index d1d3c0e5..f6c59c39 100644 --- a/library/Exceptions/SubsetException.php +++ b/library/Exceptions/SubsetException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/SymbolicLinkException.php b/library/Exceptions/SymbolicLinkException.php index c6384428..db66c092 100644 --- a/library/Exceptions/SymbolicLinkException.php +++ b/library/Exceptions/SymbolicLinkException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/TimeException.php b/library/Exceptions/TimeException.php index e819131b..96526191 100644 --- a/library/Exceptions/TimeException.php +++ b/library/Exceptions/TimeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/TldException.php b/library/Exceptions/TldException.php index 9baab8a8..79e3a495 100644 --- a/library/Exceptions/TldException.php +++ b/library/Exceptions/TldException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Exceptions; /** * Exceptions thrown by Tld Rule. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Nick Lombard * @author Paul Karikari diff --git a/library/Exceptions/TrueValException.php b/library/Exceptions/TrueValException.php index 67d57506..8bdc0af1 100644 --- a/library/Exceptions/TrueValException.php +++ b/library/Exceptions/TrueValException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/TypeException.php b/library/Exceptions/TypeException.php index fd03c202..86f62c87 100644 --- a/library/Exceptions/TypeException.php +++ b/library/Exceptions/TypeException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/UniqueException.php b/library/Exceptions/UniqueException.php index 9a87ed16..0832d271 100644 --- a/library/Exceptions/UniqueException.php +++ b/library/Exceptions/UniqueException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/UploadedException.php b/library/Exceptions/UploadedException.php index e0823ca9..8a826f3a 100644 --- a/library/Exceptions/UploadedException.php +++ b/library/Exceptions/UploadedException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/UppercaseException.php b/library/Exceptions/UppercaseException.php index c0f53569..0d942f23 100644 --- a/library/Exceptions/UppercaseException.php +++ b/library/Exceptions/UppercaseException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/UrlException.php b/library/Exceptions/UrlException.php index 74c054da..e3d454ae 100644 --- a/library/Exceptions/UrlException.php +++ b/library/Exceptions/UrlException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/UuidException.php b/library/Exceptions/UuidException.php index b969ea94..32069e60 100644 --- a/library/Exceptions/UuidException.php +++ b/library/Exceptions/UuidException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ValidationException.php b/library/Exceptions/ValidationException.php index 6eab7dd6..e9641aec 100644 --- a/library/Exceptions/ValidationException.php +++ b/library/Exceptions/ValidationException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function key; /** * Default exception class for rule validations. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ class ValidationException extends InvalidArgumentException implements Exception diff --git a/library/Exceptions/ValidatorException.php b/library/Exceptions/ValidatorException.php index 49903e65..11a58341 100644 --- a/library/Exceptions/ValidatorException.php +++ b/library/Exceptions/ValidatorException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/VersionException.php b/library/Exceptions/VersionException.php index 7c7113be..e4c1dc59 100644 --- a/library/Exceptions/VersionException.php +++ b/library/Exceptions/VersionException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/VideoUrlException.php b/library/Exceptions/VideoUrlException.php index 40484973..c8e36cff 100644 --- a/library/Exceptions/VideoUrlException.php +++ b/library/Exceptions/VideoUrlException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/VowelException.php b/library/Exceptions/VowelException.php index d3ed7a5e..eb0a047f 100644 --- a/library/Exceptions/VowelException.php +++ b/library/Exceptions/VowelException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/WhenException.php b/library/Exceptions/WhenException.php index d75fdd9c..5d3d5456 100644 --- a/library/Exceptions/WhenException.php +++ b/library/Exceptions/WhenException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/WritableException.php b/library/Exceptions/WritableException.php index f304be6a..5fe1d280 100644 --- a/library/Exceptions/WritableException.php +++ b/library/Exceptions/WritableException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/XdigitException.php b/library/Exceptions/XdigitException.php index f6b8086a..27a55228 100644 --- a/library/Exceptions/XdigitException.php +++ b/library/Exceptions/XdigitException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/YesException.php b/library/Exceptions/YesException.php index 2f8fb950..10ccba51 100644 --- a/library/Exceptions/YesException.php +++ b/library/Exceptions/YesException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Exceptions/ZendException.php b/library/Exceptions/ZendException.php deleted file mode 100644 index 7ed9ef29..00000000 --- a/library/Exceptions/ZendException.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE file - * that was distributed with this source code. - */ - -declare(strict_types=1); - -namespace Respect\Validation\Exceptions; - -/** - * @author Alexandre Gomes Gaigalas - * @author Danilo Correa - * @author Henrique Moody - */ -final class ZendException extends NestedValidationException -{ -} diff --git a/library/Factory.php b/library/Factory.php index 86102fe3..d46002b8 100644 --- a/library/Factory.php +++ b/library/Factory.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Helpers/CanCompareValues.php b/library/Helpers/CanCompareValues.php index ba24efc3..8a98003c 100644 --- a/library/Helpers/CanCompareValues.php +++ b/library/Helpers/CanCompareValues.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Helpers/CanValidateDateTime.php b/library/Helpers/CanValidateDateTime.php index 054a4ad1..4392359f 100644 --- a/library/Helpers/CanValidateDateTime.php +++ b/library/Helpers/CanValidateDateTime.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -48,7 +48,7 @@ trait CanValidateDateTime } /** - * @param int[] $info + * @param mixed[] $info */ private function isDateTimeParsable(array $info): bool { diff --git a/library/Helpers/CanValidateIterable.php b/library/Helpers/CanValidateIterable.php index 3730b652..8b9fcb71 100644 --- a/library/Helpers/CanValidateIterable.php +++ b/library/Helpers/CanValidateIterable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Helpers/CanValidateUndefined.php b/library/Helpers/CanValidateUndefined.php index f85922ce..a9c05727 100644 --- a/library/Helpers/CanValidateUndefined.php +++ b/library/Helpers/CanValidateUndefined.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Helpers/Subdivisions.php b/library/Helpers/Subdivisions.php index 95fc8bb7..7d620eba 100644 --- a/library/Helpers/Subdivisions.php +++ b/library/Helpers/Subdivisions.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Message/Formatter.php b/library/Message/Formatter.php index 640dcc09..d249c371 100644 --- a/library/Message/Formatter.php +++ b/library/Message/Formatter.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Message/ParameterStringifier.php b/library/Message/ParameterStringifier.php index 0255905f..be0afa65 100644 --- a/library/Message/ParameterStringifier.php +++ b/library/Message/ParameterStringifier.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Message/Stringifier/KeepOriginalStringName.php b/library/Message/Stringifier/KeepOriginalStringName.php index 44c835c9..b66cc81e 100644 --- a/library/Message/Stringifier/KeepOriginalStringName.php +++ b/library/Message/Stringifier/KeepOriginalStringName.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/AbstractAge.php b/library/Rules/AbstractAge.php index 3360287c..d3c52d95 100644 --- a/library/Rules/AbstractAge.php +++ b/library/Rules/AbstractAge.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/AbstractComparison.php b/library/Rules/AbstractComparison.php index 6498f9fd..c1bf42f9 100644 --- a/library/Rules/AbstractComparison.php +++ b/library/Rules/AbstractComparison.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/AbstractComposite.php b/library/Rules/AbstractComposite.php index 5ea9c0cb..4f244d96 100644 --- a/library/Rules/AbstractComposite.php +++ b/library/Rules/AbstractComposite.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use function array_map; /** * Abstract class for rules that are composed by other rules. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Wojciech Frącz */ diff --git a/library/Rules/AbstractEnvelope.php b/library/Rules/AbstractEnvelope.php index bc2c877d..fa1a12d4 100644 --- a/library/Rules/AbstractEnvelope.php +++ b/library/Rules/AbstractEnvelope.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/AbstractFilterRule.php b/library/Rules/AbstractFilterRule.php index 40374bea..6e6e590a 100644 --- a/library/Rules/AbstractFilterRule.php +++ b/library/Rules/AbstractFilterRule.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/AbstractRelated.php b/library/Rules/AbstractRelated.php index e8046ffc..147fea47 100644 --- a/library/Rules/AbstractRelated.php +++ b/library/Rules/AbstractRelated.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Validatable; use function is_scalar; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody * @author Nick Lombard diff --git a/library/Rules/AbstractRule.php b/library/Rules/AbstractRule.php index 4d3bc825..af9a6d89 100644 --- a/library/Rules/AbstractRule.php +++ b/library/Rules/AbstractRule.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use Respect\Validation\Factory; use Respect\Validation\Validatable; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Nick Lombard * @author Vicente Mendoza diff --git a/library/Rules/AbstractSearcher.php b/library/Rules/AbstractSearcher.php index bc456a08..f47b0846 100644 --- a/library/Rules/AbstractSearcher.php +++ b/library/Rules/AbstractSearcher.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/AbstractWrapper.php b/library/Rules/AbstractWrapper.php index 6267ba49..d26d3bc6 100644 --- a/library/Rules/AbstractWrapper.php +++ b/library/Rules/AbstractWrapper.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/AllOf.php b/library/Rules/AllOf.php index dd9038da..d9fd4511 100644 --- a/library/Rules/AllOf.php +++ b/library/Rules/AllOf.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use Respect\Validation\Exceptions\AllOfException; use function count; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ class AllOf extends AbstractComposite diff --git a/library/Rules/Alnum.php b/library/Rules/Alnum.php index 792c4baa..eab99df7 100644 --- a/library/Rules/Alnum.php +++ b/library/Rules/Alnum.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function ctype_alnum; * Alphanumeric is a combination of alphabetic (a-z and A-Z) and numeric (0-9) * characters. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Nick Lombard */ diff --git a/library/Rules/Alpha.php b/library/Rules/Alpha.php index cd4d23db..f6e82be1 100644 --- a/library/Rules/Alpha.php +++ b/library/Rules/Alpha.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function ctype_alpha; /** * Validates whether the input contains only alphabetic characters. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Nick Lombard */ diff --git a/library/Rules/AlwaysInvalid.php b/library/Rules/AlwaysInvalid.php index f241d07a..9a960451 100644 --- a/library/Rules/AlwaysInvalid.php +++ b/library/Rules/AlwaysInvalid.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Rules; /** * Validates any input as invalid. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Rules/AlwaysValid.php b/library/Rules/AlwaysValid.php index 79359355..d489ef50 100644 --- a/library/Rules/AlwaysValid.php +++ b/library/Rules/AlwaysValid.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Rules; /** * Validates any input as valid. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Rules/AnyOf.php b/library/Rules/AnyOf.php index 47941a4d..2501bc2b 100644 --- a/library/Rules/AnyOf.php +++ b/library/Rules/AnyOf.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use Respect\Validation\Exceptions\ValidationException; use function count; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class AnyOf extends AbstractComposite diff --git a/library/Rules/ArrayType.php b/library/Rules/ArrayType.php index b3492213..e064e7a8 100644 --- a/library/Rules/ArrayType.php +++ b/library/Rules/ArrayType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function is_array; /** * Validates whether the type of an input is array. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody * @author João Torquato diff --git a/library/Rules/ArrayVal.php b/library/Rules/ArrayVal.php index c06c200e..43be9648 100644 --- a/library/Rules/ArrayVal.php +++ b/library/Rules/ArrayVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use function is_array; * * Instance of `ArrayAccess` or `SimpleXMLElement` are also considered as valid. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/library/Rules/Attribute.php b/library/Rules/Attribute.php index 2d74df13..e2dfa7b1 100644 --- a/library/Rules/Attribute.php +++ b/library/Rules/Attribute.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use function property_exists; /** * Validates an object attribute, event private ones. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/library/Rules/Base.php b/library/Rules/Base.php index cc8c606c..a15e20cd 100644 --- a/library/Rules/Base.php +++ b/library/Rules/Base.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Base64.php b/library/Rules/Base64.php index 36c5cf90..df0ed504 100644 --- a/library/Rules/Base64.php +++ b/library/Rules/Base64.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Between.php b/library/Rules/Between.php index a35faa49..61e968ca 100644 --- a/library/Rules/Between.php +++ b/library/Rules/Between.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use Respect\Validation\Helpers\CanCompareValues; /** * Validates whether the input is between two other values. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class Between extends AbstractEnvelope diff --git a/library/Rules/BoolType.php b/library/Rules/BoolType.php index 8c0111d1..3ae21a3d 100644 --- a/library/Rules/BoolType.php +++ b/library/Rules/BoolType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/BoolVal.php b/library/Rules/BoolVal.php index cda1fcfb..ac266268 100644 --- a/library/Rules/BoolVal.php +++ b/library/Rules/BoolVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Bsn.php b/library/Rules/Bsn.php index b6c29160..780526d1 100644 --- a/library/Rules/Bsn.php +++ b/library/Rules/Bsn.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -14,7 +14,9 @@ declare(strict_types=1); namespace Respect\Validation\Rules; use function ctype_digit; +use function intval; use function mb_strlen; +use function strval; /** * Validates a Dutch citizen service number (BSN). @@ -36,13 +38,13 @@ final class Bsn extends AbstractRule return false; } - if (mb_strlen($input) !== 9) { + if (mb_strlen(strval($input)) !== 9) { return false; } - $sum = -1 * $input[8]; + $sum = -1 * intval($input[8]); /** @phpstan-ignore-line */ for ($i = 9; $i > 1; --$i) { - $sum += $i * $input[9 - $i]; + $sum += $i * intval($input[9 - $i]); /** @phpstan-ignore-line */ } return $sum !== 0 && $sum % 11 === 0; diff --git a/library/Rules/Call.php b/library/Rules/Call.php index 4396744f..36273e6f 100644 --- a/library/Rules/Call.php +++ b/library/Rules/Call.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -24,7 +24,7 @@ use function set_error_handler; /** * Validates the return of a callable for a given input. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/library/Rules/CallableType.php b/library/Rules/CallableType.php index 1eb37719..a6fdf7ed 100644 --- a/library/Rules/CallableType.php +++ b/library/Rules/CallableType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Callback.php b/library/Rules/Callback.php index 066a1139..23de3179 100644 --- a/library/Rules/Callback.php +++ b/library/Rules/Callback.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use function count; /** * Validates the input using the return of a given callable. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Rules/Charset.php b/library/Rules/Charset.php index 40492c9b..89ddae67 100644 --- a/library/Rules/Charset.php +++ b/library/Rules/Charset.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use function mb_list_encodings; /** * Validates if a string is in a specific charset. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author William Espindola */ diff --git a/library/Rules/Cnh.php b/library/Rules/Cnh.php index faa86cfd..de859125 100644 --- a/library/Rules/Cnh.php +++ b/library/Rules/Cnh.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Cnpj.php b/library/Rules/Cnpj.php index 56ea48c5..734d42db 100644 --- a/library/Rules/Cnpj.php +++ b/library/Rules/Cnpj.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use function str_split; /** * Validates if the input is a Brazilian National Registry of Legal Entities (CNPJ) number. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Jayson Reis * @author Nick Lombard diff --git a/library/Rules/Consonant.php b/library/Rules/Consonant.php index 43b57af5..fb7f6273 100644 --- a/library/Rules/Consonant.php +++ b/library/Rules/Consonant.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Contains.php b/library/Rules/Contains.php index b4103427..fcac5749 100644 --- a/library/Rules/Contains.php +++ b/library/Rules/Contains.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use function mb_strpos; /** * Validates if the input contains some value. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Marcelo Araujo * @author William Espindola diff --git a/library/Rules/ContainsAny.php b/library/Rules/ContainsAny.php index 5f2d1158..8596babb 100644 --- a/library/Rules/ContainsAny.php +++ b/library/Rules/ContainsAny.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Control.php b/library/Rules/Control.php index f588d71c..568da997 100644 --- a/library/Rules/Control.php +++ b/library/Rules/Control.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Countable.php b/library/Rules/Countable.php index 94f4cb17..f4b18853 100644 --- a/library/Rules/Countable.php +++ b/library/Rules/Countable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/CountryCode.php b/library/Rules/CountryCode.php index 7b3bfa6d..3f8136b1 100644 --- a/library/Rules/CountryCode.php +++ b/library/Rules/CountryCode.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -25,7 +25,7 @@ use function sprintf; * * This rule supports the three sets of country codes (alpha-2, alpha-3, and numeric). * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Felipe Martins * @author Henrique Moody * @author William Espindola @@ -60,6 +60,7 @@ final class CountryCode extends AbstractSearcher * @see https://salsa.debian.org/iso-codes-team/iso-codes */ private const COUNTRY_CODES = [ + // begin of auto-generated code ['AD', 'AND', '020'], // Andorra ['AE', 'ARE', '784'], // United Arab Emirates ['AF', 'AFG', '004'], // Afghanistan @@ -310,7 +311,7 @@ final class CountryCode extends AbstractSearcher ['TN', 'TUN', '788'], // Tunisia ['TO', 'TON', '776'], // Tonga ['TP', 'TMP', '626'], // East Timor - ['TR', 'TUR', '792'], // Turkey + ['TR', 'TUR', '792'], // Türkiye ['TT', 'TTO', '780'], // Trinidad and Tobago ['TV', 'TUV', '798'], // Tuvalu ['TW', 'TWN', '158'], // Taiwan, Province of China @@ -340,6 +341,7 @@ final class CountryCode extends AbstractSearcher ['ZM', 'ZMB', '894'], // Zambia ['ZR', 'ZAR', '180'], // Zaire, Republic of ['ZW', 'ZWE', '716'], // Zimbabwe + // end of auto-generated code ]; /** diff --git a/library/Rules/Cpf.php b/library/Rules/Cpf.php index 22f0d079..ab515174 100644 --- a/library/Rules/Cpf.php +++ b/library/Rules/Cpf.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -13,6 +13,7 @@ declare(strict_types=1); namespace Respect\Validation\Rules; +use function intval; use function mb_strlen; use function preg_match; use function preg_replace; @@ -20,7 +21,7 @@ use function preg_replace; /** * Validates whether the input is a CPF (Brazilian Natural Persons Register) number. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Jair Henrique * @author Jayson Reis @@ -43,7 +44,7 @@ final class Cpf extends AbstractRule $n = 0; for ($s = 10, $i = 0; $s >= 2; ++$i, --$s) { - $n += $c[$i] * $s; + $n += intval($c[$i]) * $s; } if ($c[9] != (($n %= 11) < 2 ? 0 : 11 - $n)) { @@ -52,7 +53,7 @@ final class Cpf extends AbstractRule $n = 0; for ($s = 11, $i = 0; $s >= 2; ++$i, --$s) { - $n += $c[$i] * $s; + $n += intval($c[$i]) * $s; } $check = ($n %= 11) < 2 ? 0 : 11 - $n; diff --git a/library/Rules/CreditCard.php b/library/Rules/CreditCard.php index 8a3d7633..38c9f4e1 100644 --- a/library/Rules/CreditCard.php +++ b/library/Rules/CreditCard.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/CurrencyCode.php b/library/Rules/CurrencyCode.php index db3fcd48..b219522e 100644 --- a/library/Rules/CurrencyCode.php +++ b/library/Rules/CurrencyCode.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -92,7 +92,6 @@ final class CurrencyCode extends AbstractSearcher 'GYD', // Guyana Dollar 'HKD', // Hong Kong Dollar 'HNL', // Lempira - 'HRK', // Kuna 'HTG', // Gourde 'HUF', // Forint 'IDR', // Rupiah @@ -160,6 +159,7 @@ final class CurrencyCode extends AbstractSearcher 'SEK', // Swedish Krona 'SGD', // Singapore Dollar 'SHP', // Saint Helena Pound + 'SLE', // Leone 'SLL', // Leone 'SOS', // Somali Shilling 'SRD', // Surinam Dollar @@ -185,6 +185,7 @@ final class CurrencyCode extends AbstractSearcher 'UYU', // Peso Uruguayo 'UYW', // Unidad Previsional 'UZS', // Uzbekistan Sum + 'VED', // Bolívar Soberano 'VES', // Bolívar Soberano 'VND', // Dong 'VUV', // Vatu diff --git a/library/Rules/Date.php b/library/Rules/Date.php index 7bad2b4c..c628d9ae 100644 --- a/library/Rules/Date.php +++ b/library/Rules/Date.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -40,7 +40,7 @@ final class Date extends AbstractRule /** * @var string */ - private $sample; + private $sample; /** @phpstan-ignore-line */ /** * Initializes the rule. diff --git a/library/Rules/DateTime.php b/library/Rules/DateTime.php index b0a8ee6c..655f1129 100644 --- a/library/Rules/DateTime.php +++ b/library/Rules/DateTime.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function is_scalar; use function strtotime; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ @@ -37,7 +37,7 @@ final class DateTime extends AbstractRule /** * @var string */ - private $sample; + private $sample; /** @phpstan-ignore-line */ /** * Initializes the rule. diff --git a/library/Rules/Decimal.php b/library/Rules/Decimal.php index f0ca2847..ef0249da 100644 --- a/library/Rules/Decimal.php +++ b/library/Rules/Decimal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Digit.php b/library/Rules/Digit.php index b189d7a2..3ae8743d 100644 --- a/library/Rules/Digit.php +++ b/library/Rules/Digit.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function ctype_digit; /** * Validates whether the input contains only digits. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Nick Lombard */ diff --git a/library/Rules/Directory.php b/library/Rules/Directory.php index 52a6098f..46a9caba 100644 --- a/library/Rules/Directory.php +++ b/library/Rules/Directory.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Domain.php b/library/Rules/Domain.php index 6100ac0f..d300256d 100644 --- a/library/Rules/Domain.php +++ b/library/Rules/Domain.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -28,7 +28,7 @@ use function mb_substr_count; /** * Validates whether the input is a valid domain name or not. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Mehmet Tolga Avcioglu * @author Nick Lombard diff --git a/library/Rules/Each.php b/library/Rules/Each.php index a469955e..49a2e20f 100644 --- a/library/Rules/Each.php +++ b/library/Rules/Each.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use Respect\Validation\Validatable; /** * Validates whether each value in the input is valid according to another rule. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Nick Lombard * @author William Espindola diff --git a/library/Rules/Email.php b/library/Rules/Email.php index 8ef7d702..dd3405bc 100644 --- a/library/Rules/Email.php +++ b/library/Rules/Email.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/EndsWith.php b/library/Rules/EndsWith.php index 90326785..8ab6bdea 100644 --- a/library/Rules/EndsWith.php +++ b/library/Rules/EndsWith.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use function mb_strrpos; /** * Validates only if the value is at the end of the input. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Hugo Hamon * @author William Espindola diff --git a/library/Rules/Equals.php b/library/Rules/Equals.php index 6bac4a12..509d6113 100644 --- a/library/Rules/Equals.php +++ b/library/Rules/Equals.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Rules; /** * Validates if the input is equal to some value. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Hugo Hamon */ diff --git a/library/Rules/Equivalent.php b/library/Rules/Equivalent.php index 2ca060db..8dc1c838 100644 --- a/library/Rules/Equivalent.php +++ b/library/Rules/Equivalent.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Even.php b/library/Rules/Even.php index b1deaf33..7f688466 100644 --- a/library/Rules/Even.php +++ b/library/Rules/Even.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Executable.php b/library/Rules/Executable.php index c52476b9..51ff3796 100644 --- a/library/Rules/Executable.php +++ b/library/Rules/Executable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Exists.php b/library/Rules/Exists.php index dcb5879a..b3232cec 100644 --- a/library/Rules/Exists.php +++ b/library/Rules/Exists.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Extension.php b/library/Rules/Extension.php index 31631e8c..a8fc2c25 100644 --- a/library/Rules/Extension.php +++ b/library/Rules/Extension.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Factor.php b/library/Rules/Factor.php index 64ec48af..1ddb0b81 100644 --- a/library/Rules/Factor.php +++ b/library/Rules/Factor.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/FalseVal.php b/library/Rules/FalseVal.php index c935c572..c4588365 100644 --- a/library/Rules/FalseVal.php +++ b/library/Rules/FalseVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Fibonacci.php b/library/Rules/Fibonacci.php index a63bdf37..c2e8d85f 100644 --- a/library/Rules/Fibonacci.php +++ b/library/Rules/Fibonacci.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/File.php b/library/Rules/File.php index cd11df07..b0967cb4 100644 --- a/library/Rules/File.php +++ b/library/Rules/File.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/FilterVar.php b/library/Rules/FilterVar.php index 19211f06..08935568 100644 --- a/library/Rules/FilterVar.php +++ b/library/Rules/FilterVar.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Finite.php b/library/Rules/Finite.php index 1ae4408a..deef89c9 100644 --- a/library/Rules/Finite.php +++ b/library/Rules/Finite.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/FloatType.php b/library/Rules/FloatType.php index 7a407579..6dc82244 100644 --- a/library/Rules/FloatType.php +++ b/library/Rules/FloatType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/FloatVal.php b/library/Rules/FloatVal.php index 8551499f..fdbb1f17 100644 --- a/library/Rules/FloatVal.php +++ b/library/Rules/FloatVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use const FILTER_VALIDATE_FLOAT; /** * Validate whether the input value is float. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody * @author Jayson Reis diff --git a/library/Rules/Graph.php b/library/Rules/Graph.php index 00e78575..a091e699 100644 --- a/library/Rules/Graph.php +++ b/library/Rules/Graph.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/GreaterThan.php b/library/Rules/GreaterThan.php index cb820c4b..2169713f 100644 --- a/library/Rules/GreaterThan.php +++ b/library/Rules/GreaterThan.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/HexRgbColor.php b/library/Rules/HexRgbColor.php index 321b2eb2..629ceb6a 100644 --- a/library/Rules/HexRgbColor.php +++ b/library/Rules/HexRgbColor.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Iban.php b/library/Rules/Iban.php index b71e6518..2e1733e5 100644 --- a/library/Rules/Iban.php +++ b/library/Rules/Iban.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,6 +20,7 @@ use function preg_match; use function preg_replace_callback; use function str_replace; use function strlen; +use function strval; use function substr; /** @@ -127,7 +128,7 @@ final class Iban extends AbstractRule $bban = substr($iban, 4); $rearranged = $bban . $countryCode . $checkDigits; - return bcmod($this->convertToInteger($rearranged), '97') === '1'; + return bcmod($this->convertToIntegerAsString($rearranged), '97') === '1'; } private function hasValidCountryLength(string $iban, string $countryCode): bool @@ -139,12 +140,12 @@ final class Iban extends AbstractRule return strlen($iban) === self::COUNTRIES_LENGTHS[$countryCode]; } - private function convertToInteger(string $reArrangedIban): string + private function convertToIntegerAsString(string $reArrangedIban): string { return (string) preg_replace_callback( '/[A-Z]/', - static function (array $match): int { - return ord($match[0]) - 55; + static function (array $match): string { + return strval(ord($match[0]) - 55); }, $reArrangedIban ); diff --git a/library/Rules/Identical.php b/library/Rules/Identical.php index 1ef22a33..25fa7321 100644 --- a/library/Rules/Identical.php +++ b/library/Rules/Identical.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Image.php b/library/Rules/Image.php index ecdbd2cd..9f26d182 100644 --- a/library/Rules/Image.php +++ b/library/Rules/Image.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Imei.php b/library/Rules/Imei.php index b40cd309..d9c461e7 100644 --- a/library/Rules/Imei.php +++ b/library/Rules/Imei.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/In.php b/library/Rules/In.php index 1b3bb841..cb247442 100644 --- a/library/Rules/In.php +++ b/library/Rules/In.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function mb_strpos; /** * Validates if the input can be found in a defined array or string. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Rules/Infinite.php b/library/Rules/Infinite.php index ad2063e3..991c7591 100644 --- a/library/Rules/Infinite.php +++ b/library/Rules/Infinite.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Instance.php b/library/Rules/Instance.php index b4d19926..d867dfb8 100644 --- a/library/Rules/Instance.php +++ b/library/Rules/Instance.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Rules; /** * Validates if the input is an instance of the given class or interface. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody */ diff --git a/library/Rules/IntType.php b/library/Rules/IntType.php index ae528bbe..d245c738 100644 --- a/library/Rules/IntType.php +++ b/library/Rules/IntType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/IntVal.php b/library/Rules/IntVal.php index f5c87348..f41006dd 100644 --- a/library/Rules/IntVal.php +++ b/library/Rules/IntVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function is_string; * Validates if the input is an integer. * * @author Adam Benson - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Andrei Drulchenko * @author Danilo Benevides * @author Henrique Moody diff --git a/library/Rules/Ip.php b/library/Rules/Ip.php index c82c1951..f78b57d5 100644 --- a/library/Rules/Ip.php +++ b/library/Rules/Ip.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -35,7 +35,7 @@ use const FILTER_VALIDATE_IP; * * This validator uses the native filter_var() PHP function. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody * @author Luís Otávio Cobucci Oblonczyk @@ -45,7 +45,7 @@ final class Ip extends AbstractRule /** * @var string|null */ - private $range; + private $range; /** @phpstan-ignore-line */ /** * @var int|null diff --git a/library/Rules/Isbn.php b/library/Rules/Isbn.php index 4ad7cb33..26b8a947 100644 --- a/library/Rules/Isbn.php +++ b/library/Rules/Isbn.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/IterableType.php b/library/Rules/IterableType.php index ea717d9f..3f4483e4 100644 --- a/library/Rules/IterableType.php +++ b/library/Rules/IterableType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Json.php b/library/Rules/Json.php index 0b03fb93..957f0a4b 100644 --- a/library/Rules/Json.php +++ b/library/Rules/Json.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -13,6 +13,7 @@ declare(strict_types=1); namespace Respect\Validation\Rules; +use function function_exists; use function is_string; use function json_decode; use function json_last_error; @@ -20,7 +21,7 @@ use function json_last_error; use const JSON_ERROR_NONE; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Emmerson Siqueira * @author Henrique Moody diff --git a/library/Rules/Key.php b/library/Rules/Key.php index 59d6714f..95c444a5 100644 --- a/library/Rules/Key.php +++ b/library/Rules/Key.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function is_array; use function is_scalar; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/library/Rules/KeyNested.php b/library/Rules/KeyNested.php index 068af3d1..90b6c82f 100644 --- a/library/Rules/KeyNested.php +++ b/library/Rules/KeyNested.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -28,7 +28,7 @@ use function rtrim; use function sprintf; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody * @author Ivan Zinovyev diff --git a/library/Rules/KeySet.php b/library/Rules/KeySet.php index d5f2e02e..8580a568 100644 --- a/library/Rules/KeySet.php +++ b/library/Rules/KeySet.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -33,7 +33,7 @@ final class KeySet extends AbstractWrapper /** * @var mixed[] */ - private $keys; + private $keys; /** @phpstan-ignore-line */ /** * @var Key[] @@ -43,6 +43,7 @@ final class KeySet extends AbstractWrapper /** * Initializes the rule. * + * phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation * @param Validatable ...$validatables */ public function __construct(Validatable ...$validatables) diff --git a/library/Rules/KeyValue.php b/library/Rules/KeyValue.php index 740c6bd8..d9a119a2 100644 --- a/library/Rules/KeyValue.php +++ b/library/Rules/KeyValue.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/LanguageCode.php b/library/Rules/LanguageCode.php index 31f8880d..fc9febed 100644 --- a/library/Rules/LanguageCode.php +++ b/library/Rules/LanguageCode.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/LeapDate.php b/library/Rules/LeapDate.php index cf47097e..1ef0392c 100644 --- a/library/Rules/LeapDate.php +++ b/library/Rules/LeapDate.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/LeapYear.php b/library/Rules/LeapYear.php index b40fa550..760c1c12 100644 --- a/library/Rules/LeapYear.php +++ b/library/Rules/LeapYear.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Length.php b/library/Rules/Length.php index 5be52ae5..dcbe90fb 100644 --- a/library/Rules/Length.php +++ b/library/Rules/Length.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -28,7 +28,7 @@ use function sprintf; /** * Validates the length of the given input. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Blake Hair * @author Danilo Correa * @author Henrique Moody diff --git a/library/Rules/LessThan.php b/library/Rules/LessThan.php index e3948b07..e439f3e7 100644 --- a/library/Rules/LessThan.php +++ b/library/Rules/LessThan.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Lowercase.php b/library/Rules/Lowercase.php index 61e01d6d..ceed4d0e 100644 --- a/library/Rules/Lowercase.php +++ b/library/Rules/Lowercase.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use function mb_strtolower; /** * Validates whether the characters in the input are lowercase. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody * @author Jean Pimentel diff --git a/library/Rules/Luhn.php b/library/Rules/Luhn.php index 73957492..c688a6cd 100644 --- a/library/Rules/Luhn.php +++ b/library/Rules/Luhn.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/MacAddress.php b/library/Rules/MacAddress.php index 57baad69..180363fe 100644 --- a/library/Rules/MacAddress.php +++ b/library/Rules/MacAddress.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use function preg_match; /** * Validates whether the input is a valid MAC address. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Fábio da Silva Ribeiro * @author Henrique Moody diff --git a/library/Rules/Max.php b/library/Rules/Max.php index 6905790b..d5129b1b 100644 --- a/library/Rules/Max.php +++ b/library/Rules/Max.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Rules; /** * Validates whether the input is less than or equal to a value. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class Max extends AbstractComparison diff --git a/library/Rules/MaxAge.php b/library/Rules/MaxAge.php index 8a93221e..e7c64a8c 100644 --- a/library/Rules/MaxAge.php +++ b/library/Rules/MaxAge.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Mimetype.php b/library/Rules/Mimetype.php index 62d40a4d..4a1baabd 100644 --- a/library/Rules/Mimetype.php +++ b/library/Rules/Mimetype.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Min.php b/library/Rules/Min.php index fdeb47e6..6e788b7c 100644 --- a/library/Rules/Min.php +++ b/library/Rules/Min.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -16,7 +16,7 @@ namespace Respect\Validation\Rules; /** * Validates whether the input is greater than or equal to a value. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class Min extends AbstractComparison diff --git a/library/Rules/MinAge.php b/library/Rules/MinAge.php index 3815cd71..f89daf26 100644 --- a/library/Rules/MinAge.php +++ b/library/Rules/MinAge.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Multiple.php b/library/Rules/Multiple.php index 69adb42f..cefa86c1 100644 --- a/library/Rules/Multiple.php +++ b/library/Rules/Multiple.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Negative.php b/library/Rules/Negative.php index 9fd22203..54ac4869 100644 --- a/library/Rules/Negative.php +++ b/library/Rules/Negative.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function is_numeric; /** * Validates whether the input is a negative number. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Ismael Elias */ diff --git a/library/Rules/NfeAccessKey.php b/library/Rules/NfeAccessKey.php index 40dcb5a2..c2847887 100644 --- a/library/Rules/NfeAccessKey.php +++ b/library/Rules/NfeAccessKey.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Nif.php b/library/Rules/Nif.php index 5edcd86c..1f0857fc 100644 --- a/library/Rules/Nif.php +++ b/library/Rules/Nif.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Nip.php b/library/Rules/Nip.php index 9a9463f1..a0e33dce 100644 --- a/library/Rules/Nip.php +++ b/library/Rules/Nip.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/No.php b/library/Rules/No.php index d7fca934..428deee9 100644 --- a/library/Rules/No.php +++ b/library/Rules/No.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/NoWhitespace.php b/library/Rules/NoWhitespace.php index ccd32305..c2484dbd 100644 --- a/library/Rules/NoWhitespace.php +++ b/library/Rules/NoWhitespace.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use function preg_match; /** * Validates whether a string contains no whitespace (spaces, tabs and line breaks). * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Augusto Pascutti * @author Danilo Benevides * @author Henrique Moody diff --git a/library/Rules/NoneOf.php b/library/Rules/NoneOf.php index e18b33d0..a4add062 100644 --- a/library/Rules/NoneOf.php +++ b/library/Rules/NoneOf.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use Respect\Validation\Exceptions\NoneOfException; use function count; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class NoneOf extends AbstractComposite diff --git a/library/Rules/Not.php b/library/Rules/Not.php index 08ecd183..4d65ba91 100644 --- a/library/Rules/Not.php +++ b/library/Rules/Not.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function count; use function current; /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Caio César Tavares * @author Henrique Moody */ diff --git a/library/Rules/NotBlank.php b/library/Rules/NotBlank.php index 6f48d589..daf9147f 100644 --- a/library/Rules/NotBlank.php +++ b/library/Rules/NotBlank.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/NotEmoji.php b/library/Rules/NotEmoji.php index 036720fc..948ddab4 100644 --- a/library/Rules/NotEmoji.php +++ b/library/Rules/NotEmoji.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/NotEmpty.php b/library/Rules/NotEmpty.php index 578deb1e..bca15f8f 100644 --- a/library/Rules/NotEmpty.php +++ b/library/Rules/NotEmpty.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use function trim; /** * Validates whether the input is not empty * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Bram Van der Sype * @author Henrique Moody */ diff --git a/library/Rules/NotOptional.php b/library/Rules/NotOptional.php index 22b8130a..87d13404 100644 --- a/library/Rules/NotOptional.php +++ b/library/Rules/NotOptional.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/NullType.php b/library/Rules/NullType.php index f3c658e8..00bcabe1 100644 --- a/library/Rules/NullType.php +++ b/library/Rules/NullType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function is_null; /** * Validates whether the input is null. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class NullType extends AbstractRule diff --git a/library/Rules/Nullable.php b/library/Rules/Nullable.php index d845b970..892b3d0a 100644 --- a/library/Rules/Nullable.php +++ b/library/Rules/Nullable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Number.php b/library/Rules/Number.php index 8f9d12e4..af6bd64b 100644 --- a/library/Rules/Number.php +++ b/library/Rules/Number.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/NumericVal.php b/library/Rules/NumericVal.php index 8fe9161d..343450d8 100644 --- a/library/Rules/NumericVal.php +++ b/library/Rules/NumericVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function is_numeric; /** * Validates whether the input is numeric. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Henrique Moody */ diff --git a/library/Rules/ObjectType.php b/library/Rules/ObjectType.php index b7414abd..9ef9cda2 100644 --- a/library/Rules/ObjectType.php +++ b/library/Rules/ObjectType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function is_object; /** * Validates whether the input is an object. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class ObjectType extends AbstractRule diff --git a/library/Rules/Odd.php b/library/Rules/Odd.php index 8983727c..0d60f6a8 100644 --- a/library/Rules/Odd.php +++ b/library/Rules/Odd.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/OneOf.php b/library/Rules/OneOf.php index e31c66a2..f9ade6fa 100644 --- a/library/Rules/OneOf.php +++ b/library/Rules/OneOf.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Optional.php b/library/Rules/Optional.php index 6197ca67..76a4d42e 100644 --- a/library/Rules/Optional.php +++ b/library/Rules/Optional.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/PerfectSquare.php b/library/Rules/PerfectSquare.php index 0374ce74..4363b5de 100644 --- a/library/Rules/PerfectSquare.php +++ b/library/Rules/PerfectSquare.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Pesel.php b/library/Rules/Pesel.php index 9295c2a9..5db71c60 100644 --- a/library/Rules/Pesel.php +++ b/library/Rules/Pesel.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Phone.php b/library/Rules/Phone.php index ada2954b..f21284c6 100644 --- a/library/Rules/Phone.php +++ b/library/Rules/Phone.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/PhpLabel.php b/library/Rules/PhpLabel.php index 1c48a22d..de169574 100644 --- a/library/Rules/PhpLabel.php +++ b/library/Rules/PhpLabel.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Pis.php b/library/Rules/Pis.php index 65df8fa6..1791e749 100644 --- a/library/Rules/Pis.php +++ b/library/Rules/Pis.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/PolishIdCard.php b/library/Rules/PolishIdCard.php index 87cc9f72..d88fa020 100644 --- a/library/Rules/PolishIdCard.php +++ b/library/Rules/PolishIdCard.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Positive.php b/library/Rules/Positive.php index 583a4776..726d9ed4 100644 --- a/library/Rules/Positive.php +++ b/library/Rules/Positive.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function is_numeric; /** * Validates whether the input is a positive number. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Ismael Elias */ diff --git a/library/Rules/PostalCode.php b/library/Rules/PostalCode.php index 1fa4f87f..e4e1e213 100644 --- a/library/Rules/PostalCode.php +++ b/library/Rules/PostalCode.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/PrimeNumber.php b/library/Rules/PrimeNumber.php index cac3e46a..9bd4aa56 100644 --- a/library/Rules/PrimeNumber.php +++ b/library/Rules/PrimeNumber.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use function sqrt; /** * Validates whether the input is a prime number. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Camilo Teixeira de Melo * @author Henrique Moody * @author Ismael Elias diff --git a/library/Rules/Printable.php b/library/Rules/Printable.php index 5bf33013..47ee8f92 100644 --- a/library/Rules/Printable.php +++ b/library/Rules/Printable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function ctype_print; /** * Validates whether an input is printable character(s). * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Andre Ramaciotti * @author Emmerson Siqueira * @author Henrique Moody diff --git a/library/Rules/Punct.php b/library/Rules/Punct.php index d5b97883..aad415ed 100644 --- a/library/Rules/Punct.php +++ b/library/Rules/Punct.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Readable.php b/library/Rules/Readable.php index 89e1e98b..0ff6121f 100644 --- a/library/Rules/Readable.php +++ b/library/Rules/Readable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Regex.php b/library/Rules/Regex.php index 3496cd21..5b4f6fa2 100644 --- a/library/Rules/Regex.php +++ b/library/Rules/Regex.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use function preg_match; /** * Validates whether the input matches a defined regular expression. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Henrique Moody */ diff --git a/library/Rules/ResourceType.php b/library/Rules/ResourceType.php index d40869d9..0fce1e50 100644 --- a/library/Rules/ResourceType.php +++ b/library/Rules/ResourceType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Roman.php b/library/Rules/Roman.php index fc9a91b1..95ac46c3 100644 --- a/library/Rules/Roman.php +++ b/library/Rules/Roman.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/ScalarVal.php b/library/Rules/ScalarVal.php index d6c11429..313285e4 100644 --- a/library/Rules/ScalarVal.php +++ b/library/Rules/ScalarVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Sf.php b/library/Rules/Sf.php index 15b406d4..d4451e4f 100644 --- a/library/Rules/Sf.php +++ b/library/Rules/Sf.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -25,7 +25,7 @@ use function trim; /** * Validate the input with a Symfony Validator (>=4.0 or >=3.0) Constraint. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Augusto Pascutti * @author Henrique Moody * @author Hugo Hamon diff --git a/library/Rules/Size.php b/library/Rules/Size.php index e2900eb2..188445f8 100644 --- a/library/Rules/Size.php +++ b/library/Rules/Size.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,6 +19,7 @@ use Respect\Validation\Exceptions\ComponentException; use SplFileInfo; use function filesize; +use function floatval; use function is_numeric; use function is_string; use function preg_match; @@ -36,7 +37,7 @@ final class Size extends AbstractRule /** * @var string|int|null */ - private $minSize; + private $minSize; /** @phpstan-ignore-line */ /** * @var float|null @@ -46,7 +47,7 @@ final class Size extends AbstractRule /** * @var string|int|null */ - private $maxSize; + private $maxSize; /** @phpstan-ignore-line */ /** * @var float|null @@ -102,7 +103,7 @@ final class Size extends AbstractRule if (!preg_match('/^(\d+(.\d+)?)' . $unit . '$/i', (string) $size, $matches)) { continue; } - $value = $matches[1] * 1024 ** $exponent; + $value = floatval($matches[1]) * 1024 ** $exponent; break; } diff --git a/library/Rules/Slug.php b/library/Rules/Slug.php index ab24a4bd..ab55af57 100644 --- a/library/Rules/Slug.php +++ b/library/Rules/Slug.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Sorted.php b/library/Rules/Sorted.php index 354629a1..94fcaa07 100644 --- a/library/Rules/Sorted.php +++ b/library/Rules/Sorted.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Space.php b/library/Rules/Space.php index 1f812834..64b99960 100644 --- a/library/Rules/Space.php +++ b/library/Rules/Space.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/StartsWith.php b/library/Rules/StartsWith.php index bdb08894..38f53955 100644 --- a/library/Rules/StartsWith.php +++ b/library/Rules/StartsWith.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use function reset; /** * Validates whether the input starts with a given value. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody * @author Marcelo Araujo */ diff --git a/library/Rules/StringType.php b/library/Rules/StringType.php index 271f71a8..882e716b 100644 --- a/library/Rules/StringType.php +++ b/library/Rules/StringType.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -18,7 +18,7 @@ use function is_string; /** * Validates whether the type of an input is string or not. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class StringType extends AbstractRule diff --git a/library/Rules/StringVal.php b/library/Rules/StringVal.php index 515b4452..1ac6b206 100644 --- a/library/Rules/StringVal.php +++ b/library/Rules/StringVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/SubdivisionCode.php b/library/Rules/SubdivisionCode.php index ad6e36cf..131b0e3d 100644 --- a/library/Rules/SubdivisionCode.php +++ b/library/Rules/SubdivisionCode.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -31,7 +31,7 @@ final class SubdivisionCode extends AbstractSearcher /** * @var string */ - private $countryName; + private $countryName; /** @phpstan-ignore-line */ /** * @var string[] diff --git a/library/Rules/Subset.php b/library/Rules/Subset.php index 7804cdeb..c1727420 100644 --- a/library/Rules/Subset.php +++ b/library/Rules/Subset.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/SymbolicLink.php b/library/Rules/SymbolicLink.php index d5656154..7c2a7309 100644 --- a/library/Rules/SymbolicLink.php +++ b/library/Rules/SymbolicLink.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Time.php b/library/Rules/Time.php index 854c38de..9c7c90e8 100644 --- a/library/Rules/Time.php +++ b/library/Rules/Time.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -39,7 +39,7 @@ final class Time extends AbstractRule /** * @var string */ - private $sample; + private $sample; /** @phpstan-ignore-line */ /** * Initializes the rule. diff --git a/library/Rules/Tld.php b/library/Rules/Tld.php index 1f6ae09d..79a7ad11 100644 --- a/library/Rules/Tld.php +++ b/library/Rules/Tld.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use function mb_strtoupper; /** * Validates whether the input is a top-level domain. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Bogus * @author Henrique Moody * @author Paul Karikari @@ -29,167 +29,163 @@ final class Tld extends AbstractRule { /** * List extracted from https://data.iana.org/TLD/tlds-alpha-by-domain.txt - * Version 2021031301, Last Updated Sat Mar 13 07:07:01 2021 UTC + * Version 2023021200, Last Updated Sun Feb 12 07:07:01 2023 UTC */ private const TLD_LIST = [ 'AAA', 'AARP', 'ABARTH', 'ABB', 'ABBOTT', 'ABBVIE', 'ABC', 'ABLE', 'ABOGADO', 'ABUDHABI', 'AC', 'ACADEMY', 'ACCENTURE', 'ACCOUNTANT', - 'ACCOUNTANTS', 'ACO', 'ACTOR', 'AD', 'ADAC', 'ADS', 'ADULT', 'AE', - 'AEG', 'AERO', 'AETNA', 'AF', 'AFAMILYCOMPANY', 'AFL', 'AFRICA', 'AG', - 'AGAKHAN', 'AGENCY', 'AI', 'AIG', 'AIRBUS', 'AIRFORCE', 'AIRTEL', - 'AKDN', 'AL', 'ALFAROMEO', 'ALIBABA', 'ALIPAY', 'ALLFINANZ', - 'ALLSTATE', 'ALLY', 'ALSACE', 'ALSTOM', 'AM', 'AMAZON', - 'AMERICANEXPRESS', 'AMERICANFAMILY', 'AMEX', 'AMFAM', 'AMICA', - 'AMSTERDAM', 'ANALYTICS', 'ANDROID', 'ANQUAN', 'ANZ', 'AO', 'AOL', - 'APARTMENTS', 'APP', 'APPLE', 'AQ', 'AQUARELLE', 'AR', 'ARAB', - 'ARAMCO', 'ARCHI', 'ARMY', 'ARPA', 'ART', 'ARTE', 'AS', 'ASDA', 'ASIA', - 'ASSOCIATES', 'AT', 'ATHLETA', 'ATTORNEY', 'AU', 'AUCTION', 'AUDI', - 'AUDIBLE', 'AUDIO', 'AUSPOST', 'AUTHOR', 'AUTO', 'AUTOS', 'AVIANCA', - 'AW', 'AWS', 'AX', 'AXA', 'AZ', 'AZURE', 'BA', 'BABY', 'BAIDU', - 'BANAMEX', 'BANANAREPUBLIC', 'BAND', 'BANK', 'BAR', 'BARCELONA', - 'BARCLAYCARD', 'BARCLAYS', 'BAREFOOT', 'BARGAINS', 'BASEBALL', - 'BASKETBALL', 'BAUHAUS', 'BAYERN', 'BB', 'BBC', 'BBT', 'BBVA', 'BCG', - 'BCN', 'BD', 'BE', 'BEATS', 'BEAUTY', 'BEER', 'BENTLEY', 'BERLIN', - 'BEST', 'BESTBUY', 'BET', 'BF', 'BG', 'BH', 'BHARTI', 'BI', 'BIBLE', - 'BID', 'BIKE', 'BING', 'BINGO', 'BIO', 'BIZ', 'BJ', 'BLACK', + 'ACCOUNTANTS', 'ACO', 'ACTOR', 'AD', 'ADS', 'ADULT', 'AE', 'AEG', + 'AERO', 'AETNA', 'AF', 'AFL', 'AFRICA', 'AG', 'AGAKHAN', 'AGENCY', + 'AI', 'AIG', 'AIRBUS', 'AIRFORCE', 'AIRTEL', 'AKDN', 'AL', 'ALFAROMEO', + 'ALIBABA', 'ALIPAY', 'ALLFINANZ', 'ALLSTATE', 'ALLY', 'ALSACE', + 'ALSTOM', 'AM', 'AMAZON', 'AMERICANEXPRESS', 'AMERICANFAMILY', 'AMEX', + 'AMFAM', 'AMICA', 'AMSTERDAM', 'ANALYTICS', 'ANDROID', 'ANQUAN', 'ANZ', + 'AO', 'AOL', 'APARTMENTS', 'APP', 'APPLE', 'AQ', 'AQUARELLE', 'AR', + 'ARAB', 'ARAMCO', 'ARCHI', 'ARMY', 'ARPA', 'ART', 'ARTE', 'AS', 'ASDA', + 'ASIA', 'ASSOCIATES', 'AT', 'ATHLETA', 'ATTORNEY', 'AU', 'AUCTION', + 'AUDI', 'AUDIBLE', 'AUDIO', 'AUSPOST', 'AUTHOR', 'AUTO', 'AUTOS', + 'AVIANCA', 'AW', 'AWS', 'AX', 'AXA', 'AZ', 'AZURE', 'BA', 'BABY', + 'BAIDU', 'BANAMEX', 'BANANAREPUBLIC', 'BAND', 'BANK', 'BAR', + 'BARCELONA', 'BARCLAYCARD', 'BARCLAYS', 'BAREFOOT', 'BARGAINS', + 'BASEBALL', 'BASKETBALL', 'BAUHAUS', 'BAYERN', 'BB', 'BBC', 'BBT', + 'BBVA', 'BCG', 'BCN', 'BD', 'BE', 'BEATS', 'BEAUTY', 'BEER', 'BENTLEY', + 'BERLIN', 'BEST', 'BESTBUY', 'BET', 'BF', 'BG', 'BH', 'BHARTI', 'BI', + 'BIBLE', 'BID', 'BIKE', 'BING', 'BINGO', 'BIO', 'BIZ', 'BJ', 'BLACK', 'BLACKFRIDAY', 'BLOCKBUSTER', 'BLOG', 'BLOOMBERG', 'BLUE', 'BM', 'BMS', 'BMW', 'BN', 'BNPPARIBAS', 'BO', 'BOATS', 'BOEHRINGER', 'BOFA', 'BOM', 'BOND', 'BOO', 'BOOK', 'BOOKING', 'BOSCH', 'BOSTIK', 'BOSTON', 'BOT', 'BOUTIQUE', 'BOX', 'BR', 'BRADESCO', 'BRIDGESTONE', 'BROADWAY', - 'BROKER', 'BROTHER', 'BRUSSELS', 'BS', 'BT', 'BUDAPEST', 'BUGATTI', - 'BUILD', 'BUILDERS', 'BUSINESS', 'BUY', 'BUZZ', 'BV', 'BW', 'BY', 'BZ', - 'BZH', 'CA', 'CAB', 'CAFE', 'CAL', 'CALL', 'CALVINKLEIN', 'CAM', - 'CAMERA', 'CAMP', 'CANCERRESEARCH', 'CANON', 'CAPETOWN', 'CAPITAL', - 'CAPITALONE', 'CAR', 'CARAVAN', 'CARDS', 'CARE', 'CAREER', 'CAREERS', - 'CARS', 'CASA', 'CASE', 'CASH', 'CASINO', 'CAT', 'CATERING', - 'CATHOLIC', 'CBA', 'CBN', 'CBRE', 'CBS', 'CC', 'CD', 'CENTER', 'CEO', - 'CERN', 'CF', 'CFA', 'CFD', 'CG', 'CH', 'CHANEL', 'CHANNEL', 'CHARITY', - 'CHASE', 'CHAT', 'CHEAP', 'CHINTAI', 'CHRISTMAS', 'CHROME', 'CHURCH', - 'CI', 'CIPRIANI', 'CIRCLE', 'CISCO', 'CITADEL', 'CITI', 'CITIC', - 'CITY', 'CITYEATS', 'CK', 'CL', 'CLAIMS', 'CLEANING', 'CLICK', - 'CLINIC', 'CLINIQUE', 'CLOTHING', 'CLOUD', 'CLUB', 'CLUBMED', 'CM', - 'CN', 'CO', 'COACH', 'CODES', 'COFFEE', 'COLLEGE', 'COLOGNE', 'COM', - 'COMCAST', 'COMMBANK', 'COMMUNITY', 'COMPANY', 'COMPARE', 'COMPUTER', - 'COMSEC', 'CONDOS', 'CONSTRUCTION', 'CONSULTING', 'CONTACT', - 'CONTRACTORS', 'COOKING', 'COOKINGCHANNEL', 'COOL', 'COOP', 'CORSICA', - 'COUNTRY', 'COUPON', 'COUPONS', 'COURSES', 'CPA', 'CR', 'CREDIT', - 'CREDITCARD', 'CREDITUNION', 'CRICKET', 'CROWN', 'CRS', 'CRUISE', - 'CRUISES', 'CSC', 'CU', 'CUISINELLA', 'CV', 'CW', 'CX', 'CY', 'CYMRU', - 'CYOU', 'CZ', 'DABUR', 'DAD', 'DANCE', 'DATA', 'DATE', 'DATING', - 'DATSUN', 'DAY', 'DCLK', 'DDS', 'DE', 'DEAL', 'DEALER', 'DEALS', - 'DEGREE', 'DELIVERY', 'DELL', 'DELOITTE', 'DELTA', 'DEMOCRAT', + 'BROKER', 'BROTHER', 'BRUSSELS', 'BS', 'BT', 'BUILD', 'BUILDERS', + 'BUSINESS', 'BUY', 'BUZZ', 'BV', 'BW', 'BY', 'BZ', 'BZH', 'CA', 'CAB', + 'CAFE', 'CAL', 'CALL', 'CALVINKLEIN', 'CAM', 'CAMERA', 'CAMP', 'CANON', + 'CAPETOWN', 'CAPITAL', 'CAPITALONE', 'CAR', 'CARAVAN', 'CARDS', 'CARE', + 'CAREER', 'CAREERS', 'CARS', 'CASA', 'CASE', 'CASH', 'CASINO', 'CAT', + 'CATERING', 'CATHOLIC', 'CBA', 'CBN', 'CBRE', 'CBS', 'CC', 'CD', + 'CENTER', 'CEO', 'CERN', 'CF', 'CFA', 'CFD', 'CG', 'CH', 'CHANEL', + 'CHANNEL', 'CHARITY', 'CHASE', 'CHAT', 'CHEAP', 'CHINTAI', 'CHRISTMAS', + 'CHROME', 'CHURCH', 'CI', 'CIPRIANI', 'CIRCLE', 'CISCO', 'CITADEL', + 'CITI', 'CITIC', 'CITY', 'CITYEATS', 'CK', 'CL', 'CLAIMS', 'CLEANING', + 'CLICK', 'CLINIC', 'CLINIQUE', 'CLOTHING', 'CLOUD', 'CLUB', 'CLUBMED', + 'CM', 'CN', 'CO', 'COACH', 'CODES', 'COFFEE', 'COLLEGE', 'COLOGNE', + 'COM', 'COMCAST', 'COMMBANK', 'COMMUNITY', 'COMPANY', 'COMPARE', + 'COMPUTER', 'COMSEC', 'CONDOS', 'CONSTRUCTION', 'CONSULTING', + 'CONTACT', 'CONTRACTORS', 'COOKING', 'COOKINGCHANNEL', 'COOL', 'COOP', + 'CORSICA', 'COUNTRY', 'COUPON', 'COUPONS', 'COURSES', 'CPA', 'CR', + 'CREDIT', 'CREDITCARD', 'CREDITUNION', 'CRICKET', 'CROWN', 'CRS', + 'CRUISE', 'CRUISES', 'CU', 'CUISINELLA', 'CV', 'CW', 'CX', 'CY', + 'CYMRU', 'CYOU', 'CZ', 'DABUR', 'DAD', 'DANCE', 'DATA', 'DATE', + 'DATING', 'DATSUN', 'DAY', 'DCLK', 'DDS', 'DE', 'DEAL', 'DEALER', + 'DEALS', 'DEGREE', 'DELIVERY', 'DELL', 'DELOITTE', 'DELTA', 'DEMOCRAT', 'DENTAL', 'DENTIST', 'DESI', 'DESIGN', 'DEV', 'DHL', 'DIAMONDS', 'DIET', 'DIGITAL', 'DIRECT', 'DIRECTORY', 'DISCOUNT', 'DISCOVER', 'DISH', 'DIY', 'DJ', 'DK', 'DM', 'DNP', 'DO', 'DOCS', 'DOCTOR', 'DOG', - 'DOMAINS', 'DOT', 'DOWNLOAD', 'DRIVE', 'DTV', 'DUBAI', 'DUCK', - 'DUNLOP', 'DUPONT', 'DURBAN', 'DVAG', 'DVR', 'DZ', 'EARTH', 'EAT', - 'EC', 'ECO', 'EDEKA', 'EDU', 'EDUCATION', 'EE', 'EG', 'EMAIL', - 'EMERCK', 'ENERGY', 'ENGINEER', 'ENGINEERING', 'ENTERPRISES', 'EPSON', - 'EQUIPMENT', 'ER', 'ERICSSON', 'ERNI', 'ES', 'ESQ', 'ESTATE', 'ET', - 'ETISALAT', 'EU', 'EUROVISION', 'EUS', 'EVENTS', 'EXCHANGE', 'EXPERT', - 'EXPOSED', 'EXPRESS', 'EXTRASPACE', 'FAGE', 'FAIL', 'FAIRWINDS', - 'FAITH', 'FAMILY', 'FAN', 'FANS', 'FARM', 'FARMERS', 'FASHION', 'FAST', - 'FEDEX', 'FEEDBACK', 'FERRARI', 'FERRERO', 'FI', 'FIAT', 'FIDELITY', - 'FIDO', 'FILM', 'FINAL', 'FINANCE', 'FINANCIAL', 'FIRE', 'FIRESTONE', + 'DOMAINS', 'DOT', 'DOWNLOAD', 'DRIVE', 'DTV', 'DUBAI', 'DUNLOP', + 'DUPONT', 'DURBAN', 'DVAG', 'DVR', 'DZ', 'EARTH', 'EAT', 'EC', 'ECO', + 'EDEKA', 'EDU', 'EDUCATION', 'EE', 'EG', 'EMAIL', 'EMERCK', 'ENERGY', + 'ENGINEER', 'ENGINEERING', 'ENTERPRISES', 'EPSON', 'EQUIPMENT', 'ER', + 'ERICSSON', 'ERNI', 'ES', 'ESQ', 'ESTATE', 'ET', 'ETISALAT', 'EU', + 'EUROVISION', 'EUS', 'EVENTS', 'EXCHANGE', 'EXPERT', 'EXPOSED', + 'EXPRESS', 'EXTRASPACE', 'FAGE', 'FAIL', 'FAIRWINDS', 'FAITH', + 'FAMILY', 'FAN', 'FANS', 'FARM', 'FARMERS', 'FASHION', 'FAST', 'FEDEX', + 'FEEDBACK', 'FERRARI', 'FERRERO', 'FI', 'FIAT', 'FIDELITY', 'FIDO', + 'FILM', 'FINAL', 'FINANCE', 'FINANCIAL', 'FIRE', 'FIRESTONE', 'FIRMDALE', 'FISH', 'FISHING', 'FIT', 'FITNESS', 'FJ', 'FK', 'FLICKR', 'FLIGHTS', 'FLIR', 'FLORIST', 'FLOWERS', 'FLY', 'FM', 'FO', 'FOO', 'FOOD', 'FOODNETWORK', 'FOOTBALL', 'FORD', 'FOREX', 'FORSALE', 'FORUM', 'FOUNDATION', 'FOX', 'FR', 'FREE', 'FRESENIUS', 'FRL', 'FROGANS', - 'FRONTDOOR', 'FRONTIER', 'FTR', 'FUJITSU', 'FUJIXEROX', 'FUN', 'FUND', - 'FURNITURE', 'FUTBOL', 'FYI', 'GA', 'GAL', 'GALLERY', 'GALLO', - 'GALLUP', 'GAME', 'GAMES', 'GAP', 'GARDEN', 'GAY', 'GB', 'GBIZ', 'GD', - 'GDN', 'GE', 'GEA', 'GENT', 'GENTING', 'GEORGE', 'GF', 'GG', 'GGEE', - 'GH', 'GI', 'GIFT', 'GIFTS', 'GIVES', 'GIVING', 'GL', 'GLADE', 'GLASS', - 'GLE', 'GLOBAL', 'GLOBO', 'GM', 'GMAIL', 'GMBH', 'GMO', 'GMX', 'GN', - 'GODADDY', 'GOLD', 'GOLDPOINT', 'GOLF', 'GOO', 'GOODYEAR', 'GOOG', - 'GOOGLE', 'GOP', 'GOT', 'GOV', 'GP', 'GQ', 'GR', 'GRAINGER', - 'GRAPHICS', 'GRATIS', 'GREEN', 'GRIPE', 'GROCERY', 'GROUP', 'GS', 'GT', - 'GU', 'GUARDIAN', 'GUCCI', 'GUGE', 'GUIDE', 'GUITARS', 'GURU', 'GW', - 'GY', 'HAIR', 'HAMBURG', 'HANGOUT', 'HAUS', 'HBO', 'HDFC', 'HDFCBANK', - 'HEALTH', 'HEALTHCARE', 'HELP', 'HELSINKI', 'HERE', 'HERMES', 'HGTV', - 'HIPHOP', 'HISAMITSU', 'HITACHI', 'HIV', 'HK', 'HKT', 'HM', 'HN', - 'HOCKEY', 'HOLDINGS', 'HOLIDAY', 'HOMEDEPOT', 'HOMEGOODS', 'HOMES', - 'HOMESENSE', 'HONDA', 'HORSE', 'HOSPITAL', 'HOST', 'HOSTING', 'HOT', - 'HOTELES', 'HOTELS', 'HOTMAIL', 'HOUSE', 'HOW', 'HR', 'HSBC', 'HT', - 'HU', 'HUGHES', 'HYATT', 'HYUNDAI', 'IBM', 'ICBC', 'ICE', 'ICU', 'ID', - 'IE', 'IEEE', 'IFM', 'IKANO', 'IL', 'IM', 'IMAMAT', 'IMDB', 'IMMO', - 'IMMOBILIEN', 'IN', 'INC', 'INDUSTRIES', 'INFINITI', 'INFO', 'ING', - 'INK', 'INSTITUTE', 'INSURANCE', 'INSURE', 'INT', 'INTERNATIONAL', - 'INTUIT', 'INVESTMENTS', 'IO', 'IPIRANGA', 'IQ', 'IR', 'IRISH', 'IS', - 'ISMAILI', 'IST', 'ISTANBUL', 'IT', 'ITAU', 'ITV', 'IVECO', 'JAGUAR', - 'JAVA', 'JCB', 'JE', 'JEEP', 'JETZT', 'JEWELRY', 'JIO', 'JLL', 'JM', - 'JMP', 'JNJ', 'JO', 'JOBS', 'JOBURG', 'JOT', 'JOY', 'JP', 'JPMORGAN', - 'JPRS', 'JUEGOS', 'JUNIPER', 'KAUFEN', 'KDDI', 'KE', 'KERRYHOTELS', - 'KERRYLOGISTICS', 'KERRYPROPERTIES', 'KFH', 'KG', 'KH', 'KI', 'KIA', - 'KIM', 'KINDER', 'KINDLE', 'KITCHEN', 'KIWI', 'KM', 'KN', 'KOELN', - 'KOMATSU', 'KOSHER', 'KP', 'KPMG', 'KPN', 'KR', 'KRD', 'KRED', - 'KUOKGROUP', 'KW', 'KY', 'KYOTO', 'KZ', 'LA', 'LACAIXA', 'LAMBORGHINI', - 'LAMER', 'LANCASTER', 'LANCIA', 'LAND', 'LANDROVER', 'LANXESS', - 'LASALLE', 'LAT', 'LATINO', 'LATROBE', 'LAW', 'LAWYER', 'LB', 'LC', - 'LDS', 'LEASE', 'LECLERC', 'LEFRAK', 'LEGAL', 'LEGO', 'LEXUS', 'LGBT', - 'LI', 'LIDL', 'LIFE', 'LIFEINSURANCE', 'LIFESTYLE', 'LIGHTING', 'LIKE', + 'FRONTDOOR', 'FRONTIER', 'FTR', 'FUJITSU', 'FUN', 'FUND', 'FURNITURE', + 'FUTBOL', 'FYI', 'GA', 'GAL', 'GALLERY', 'GALLO', 'GALLUP', 'GAME', + 'GAMES', 'GAP', 'GARDEN', 'GAY', 'GB', 'GBIZ', 'GD', 'GDN', 'GE', + 'GEA', 'GENT', 'GENTING', 'GEORGE', 'GF', 'GG', 'GGEE', 'GH', 'GI', + 'GIFT', 'GIFTS', 'GIVES', 'GIVING', 'GL', 'GLASS', 'GLE', 'GLOBAL', + 'GLOBO', 'GM', 'GMAIL', 'GMBH', 'GMO', 'GMX', 'GN', 'GODADDY', 'GOLD', + 'GOLDPOINT', 'GOLF', 'GOO', 'GOODYEAR', 'GOOG', 'GOOGLE', 'GOP', 'GOT', + 'GOV', 'GP', 'GQ', 'GR', 'GRAINGER', 'GRAPHICS', 'GRATIS', 'GREEN', + 'GRIPE', 'GROCERY', 'GROUP', 'GS', 'GT', 'GU', 'GUARDIAN', 'GUCCI', + 'GUGE', 'GUIDE', 'GUITARS', 'GURU', 'GW', 'GY', 'HAIR', 'HAMBURG', + 'HANGOUT', 'HAUS', 'HBO', 'HDFC', 'HDFCBANK', 'HEALTH', 'HEALTHCARE', + 'HELP', 'HELSINKI', 'HERE', 'HERMES', 'HGTV', 'HIPHOP', 'HISAMITSU', + 'HITACHI', 'HIV', 'HK', 'HKT', 'HM', 'HN', 'HOCKEY', 'HOLDINGS', + 'HOLIDAY', 'HOMEDEPOT', 'HOMEGOODS', 'HOMES', 'HOMESENSE', 'HONDA', + 'HORSE', 'HOSPITAL', 'HOST', 'HOSTING', 'HOT', 'HOTELES', 'HOTELS', + 'HOTMAIL', 'HOUSE', 'HOW', 'HR', 'HSBC', 'HT', 'HU', 'HUGHES', 'HYATT', + 'HYUNDAI', 'IBM', 'ICBC', 'ICE', 'ICU', 'ID', 'IE', 'IEEE', 'IFM', + 'IKANO', 'IL', 'IM', 'IMAMAT', 'IMDB', 'IMMO', 'IMMOBILIEN', 'IN', + 'INC', 'INDUSTRIES', 'INFINITI', 'INFO', 'ING', 'INK', 'INSTITUTE', + 'INSURANCE', 'INSURE', 'INT', 'INTERNATIONAL', 'INTUIT', 'INVESTMENTS', + 'IO', 'IPIRANGA', 'IQ', 'IR', 'IRISH', 'IS', 'ISMAILI', 'IST', + 'ISTANBUL', 'IT', 'ITAU', 'ITV', 'JAGUAR', 'JAVA', 'JCB', 'JE', 'JEEP', + 'JETZT', 'JEWELRY', 'JIO', 'JLL', 'JM', 'JMP', 'JNJ', 'JO', 'JOBS', + 'JOBURG', 'JOT', 'JOY', 'JP', 'JPMORGAN', 'JPRS', 'JUEGOS', 'JUNIPER', + 'KAUFEN', 'KDDI', 'KE', 'KERRYHOTELS', 'KERRYLOGISTICS', + 'KERRYPROPERTIES', 'KFH', 'KG', 'KH', 'KI', 'KIA', 'KIDS', 'KIM', + 'KINDER', 'KINDLE', 'KITCHEN', 'KIWI', 'KM', 'KN', 'KOELN', 'KOMATSU', + 'KOSHER', 'KP', 'KPMG', 'KPN', 'KR', 'KRD', 'KRED', 'KUOKGROUP', 'KW', + 'KY', 'KYOTO', 'KZ', 'LA', 'LACAIXA', 'LAMBORGHINI', 'LAMER', + 'LANCASTER', 'LANCIA', 'LAND', 'LANDROVER', 'LANXESS', 'LASALLE', + 'LAT', 'LATINO', 'LATROBE', 'LAW', 'LAWYER', 'LB', 'LC', 'LDS', + 'LEASE', 'LECLERC', 'LEFRAK', 'LEGAL', 'LEGO', 'LEXUS', 'LGBT', 'LI', + 'LIDL', 'LIFE', 'LIFEINSURANCE', 'LIFESTYLE', 'LIGHTING', 'LIKE', 'LILLY', 'LIMITED', 'LIMO', 'LINCOLN', 'LINDE', 'LINK', 'LIPSY', - 'LIVE', 'LIVING', 'LIXIL', 'LK', 'LLC', 'LLP', 'LOAN', 'LOANS', - 'LOCKER', 'LOCUS', 'LOFT', 'LOL', 'LONDON', 'LOTTE', 'LOTTO', 'LOVE', - 'LPL', 'LPLFINANCIAL', 'LR', 'LS', 'LT', 'LTD', 'LTDA', 'LU', - 'LUNDBECK', 'LUXE', 'LUXURY', 'LV', 'LY', 'MA', 'MACYS', 'MADRID', - 'MAIF', 'MAISON', 'MAKEUP', 'MAN', 'MANAGEMENT', 'MANGO', 'MAP', - 'MARKET', 'MARKETING', 'MARKETS', 'MARRIOTT', 'MARSHALLS', 'MASERATI', - 'MATTEL', 'MBA', 'MC', 'MCKINSEY', 'MD', 'ME', 'MED', 'MEDIA', 'MEET', + 'LIVE', 'LIVING', 'LK', 'LLC', 'LLP', 'LOAN', 'LOANS', 'LOCKER', + 'LOCUS', 'LOL', 'LONDON', 'LOTTE', 'LOTTO', 'LOVE', 'LPL', + 'LPLFINANCIAL', 'LR', 'LS', 'LT', 'LTD', 'LTDA', 'LU', 'LUNDBECK', + 'LUXE', 'LUXURY', 'LV', 'LY', 'MA', 'MACYS', 'MADRID', 'MAIF', + 'MAISON', 'MAKEUP', 'MAN', 'MANAGEMENT', 'MANGO', 'MAP', 'MARKET', + 'MARKETING', 'MARKETS', 'MARRIOTT', 'MARSHALLS', 'MASERATI', 'MATTEL', + 'MBA', 'MC', 'MCKINSEY', 'MD', 'ME', 'MED', 'MEDIA', 'MEET', 'MELBOURNE', 'MEME', 'MEMORIAL', 'MEN', 'MENU', 'MERCKMSD', 'MG', 'MH', 'MIAMI', 'MICROSOFT', 'MIL', 'MINI', 'MINT', 'MIT', 'MITSUBISHI', 'MK', 'ML', 'MLB', 'MLS', 'MM', 'MMA', 'MN', 'MO', 'MOBI', 'MOBILE', 'MODA', 'MOE', 'MOI', 'MOM', 'MONASH', 'MONEY', 'MONSTER', 'MORMON', 'MORTGAGE', 'MOSCOW', 'MOTO', 'MOTORCYCLES', 'MOV', 'MOVIE', 'MP', - 'MQ', 'MR', 'MS', 'MSD', 'MT', 'MTN', 'MTR', 'MU', 'MUSEUM', 'MUTUAL', - 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAB', 'NAGOYA', 'NAME', - 'NATIONWIDE', 'NATURA', 'NAVY', 'NBA', 'NC', 'NE', 'NEC', 'NET', - 'NETBANK', 'NETFLIX', 'NETWORK', 'NEUSTAR', 'NEW', 'NEWS', 'NEXT', - 'NEXTDIRECT', 'NEXUS', 'NF', 'NFL', 'NG', 'NGO', 'NHK', 'NI', 'NICO', - 'NIKE', 'NIKON', 'NINJA', 'NISSAN', 'NISSAY', 'NL', 'NO', 'NOKIA', + 'MQ', 'MR', 'MS', 'MSD', 'MT', 'MTN', 'MTR', 'MU', 'MUSEUM', 'MUSIC', + 'MUTUAL', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAB', 'NAGOYA', 'NAME', + 'NATURA', 'NAVY', 'NBA', 'NC', 'NE', 'NEC', 'NET', 'NETBANK', + 'NETFLIX', 'NETWORK', 'NEUSTAR', 'NEW', 'NEWS', 'NEXT', 'NEXTDIRECT', + 'NEXUS', 'NF', 'NFL', 'NG', 'NGO', 'NHK', 'NI', 'NICO', 'NIKE', + 'NIKON', 'NINJA', 'NISSAN', 'NISSAY', 'NL', 'NO', 'NOKIA', 'NORTHWESTERNMUTUAL', 'NORTON', 'NOW', 'NOWRUZ', 'NOWTV', 'NP', 'NR', - 'NRA', 'NRW', 'NTT', 'NU', 'NYC', 'NZ', 'OBI', 'OBSERVER', 'OFF', - 'OFFICE', 'OKINAWA', 'OLAYAN', 'OLAYANGROUP', 'OLDNAVY', 'OLLO', 'OM', - 'OMEGA', 'ONE', 'ONG', 'ONL', 'ONLINE', 'ONYOURSIDE', 'OOO', 'OPEN', - 'ORACLE', 'ORANGE', 'ORG', 'ORGANIC', 'ORIGINS', 'OSAKA', 'OTSUKA', - 'OTT', 'OVH', 'PA', 'PAGE', 'PANASONIC', 'PARIS', 'PARS', 'PARTNERS', - 'PARTS', 'PARTY', 'PASSAGENS', 'PAY', 'PCCW', 'PE', 'PET', 'PF', - 'PFIZER', 'PG', 'PH', 'PHARMACY', 'PHD', 'PHILIPS', 'PHONE', 'PHOTO', - 'PHOTOGRAPHY', 'PHOTOS', 'PHYSIO', 'PICS', 'PICTET', 'PICTURES', 'PID', - 'PIN', 'PING', 'PINK', 'PIONEER', 'PIZZA', 'PK', 'PL', 'PLACE', 'PLAY', - 'PLAYSTATION', 'PLUMBING', 'PLUS', 'PM', 'PN', 'PNC', 'POHL', 'POKER', - 'POLITIE', 'PORN', 'POST', 'PR', 'PRAMERICA', 'PRAXI', 'PRESS', - 'PRIME', 'PRO', 'PROD', 'PRODUCTIONS', 'PROF', 'PROGRESSIVE', 'PROMO', - 'PROPERTIES', 'PROPERTY', 'PROTECTION', 'PRU', 'PRUDENTIAL', 'PS', - 'PT', 'PUB', 'PW', 'PWC', 'PY', 'QA', 'QPON', 'QUEBEC', 'QUEST', 'QVC', - 'RACING', 'RADIO', 'RAID', 'RE', 'READ', 'REALESTATE', 'REALTOR', - 'REALTY', 'RECIPES', 'RED', 'REDSTONE', 'REDUMBRELLA', 'REHAB', - 'REISE', 'REISEN', 'REIT', 'RELIANCE', 'REN', 'RENT', 'RENTALS', - 'REPAIR', 'REPORT', 'REPUBLICAN', 'REST', 'RESTAURANT', 'REVIEW', - 'REVIEWS', 'REXROTH', 'RICH', 'RICHARDLI', 'RICOH', 'RIL', 'RIO', - 'RIP', 'RMIT', 'RO', 'ROCHER', 'ROCKS', 'RODEO', 'ROGERS', 'ROOM', - 'RS', 'RSVP', 'RU', 'RUGBY', 'RUHR', 'RUN', 'RW', 'RWE', 'RYUKYU', - 'SA', 'SAARLAND', 'SAFE', 'SAFETY', 'SAKURA', 'SALE', 'SALON', - 'SAMSCLUB', 'SAMSUNG', 'SANDVIK', 'SANDVIKCOROMANT', 'SANOFI', 'SAP', - 'SARL', 'SAS', 'SAVE', 'SAXO', 'SB', 'SBI', 'SBS', 'SC', 'SCA', 'SCB', - 'SCHAEFFLER', 'SCHMIDT', 'SCHOLARSHIPS', 'SCHOOL', 'SCHULE', 'SCHWARZ', - 'SCIENCE', 'SCJOHNSON', 'SCOT', 'SD', 'SE', 'SEARCH', 'SEAT', 'SECURE', - 'SECURITY', 'SEEK', 'SELECT', 'SENER', 'SERVICES', 'SES', 'SEVEN', + 'NRA', 'NRW', 'NTT', 'NU', 'NYC', 'NZ', 'OBI', 'OBSERVER', 'OFFICE', + 'OKINAWA', 'OLAYAN', 'OLAYANGROUP', 'OLDNAVY', 'OLLO', 'OM', 'OMEGA', + 'ONE', 'ONG', 'ONL', 'ONLINE', 'OOO', 'OPEN', 'ORACLE', 'ORANGE', + 'ORG', 'ORGANIC', 'ORIGINS', 'OSAKA', 'OTSUKA', 'OTT', 'OVH', 'PA', + 'PAGE', 'PANASONIC', 'PARIS', 'PARS', 'PARTNERS', 'PARTS', 'PARTY', + 'PASSAGENS', 'PAY', 'PCCW', 'PE', 'PET', 'PF', 'PFIZER', 'PG', 'PH', + 'PHARMACY', 'PHD', 'PHILIPS', 'PHONE', 'PHOTO', 'PHOTOGRAPHY', + 'PHOTOS', 'PHYSIO', 'PICS', 'PICTET', 'PICTURES', 'PID', 'PIN', 'PING', + 'PINK', 'PIONEER', 'PIZZA', 'PK', 'PL', 'PLACE', 'PLAY', 'PLAYSTATION', + 'PLUMBING', 'PLUS', 'PM', 'PN', 'PNC', 'POHL', 'POKER', 'POLITIE', + 'PORN', 'POST', 'PR', 'PRAMERICA', 'PRAXI', 'PRESS', 'PRIME', 'PRO', + 'PROD', 'PRODUCTIONS', 'PROF', 'PROGRESSIVE', 'PROMO', 'PROPERTIES', + 'PROPERTY', 'PROTECTION', 'PRU', 'PRUDENTIAL', 'PS', 'PT', 'PUB', 'PW', + 'PWC', 'PY', 'QA', 'QPON', 'QUEBEC', 'QUEST', 'RACING', 'RADIO', 'RE', + 'READ', 'REALESTATE', 'REALTOR', 'REALTY', 'RECIPES', 'RED', + 'REDSTONE', 'REDUMBRELLA', 'REHAB', 'REISE', 'REISEN', 'REIT', + 'RELIANCE', 'REN', 'RENT', 'RENTALS', 'REPAIR', 'REPORT', 'REPUBLICAN', + 'REST', 'RESTAURANT', 'REVIEW', 'REVIEWS', 'REXROTH', 'RICH', + 'RICHARDLI', 'RICOH', 'RIL', 'RIO', 'RIP', 'RO', 'ROCHER', 'ROCKS', + 'RODEO', 'ROGERS', 'ROOM', 'RS', 'RSVP', 'RU', 'RUGBY', 'RUHR', 'RUN', + 'RW', 'RWE', 'RYUKYU', 'SA', 'SAARLAND', 'SAFE', 'SAFETY', 'SAKURA', + 'SALE', 'SALON', 'SAMSCLUB', 'SAMSUNG', 'SANDVIK', 'SANDVIKCOROMANT', + 'SANOFI', 'SAP', 'SARL', 'SAS', 'SAVE', 'SAXO', 'SB', 'SBI', 'SBS', + 'SC', 'SCA', 'SCB', 'SCHAEFFLER', 'SCHMIDT', 'SCHOLARSHIPS', 'SCHOOL', + 'SCHULE', 'SCHWARZ', 'SCIENCE', 'SCOT', 'SD', 'SE', 'SEARCH', 'SEAT', + 'SECURE', 'SECURITY', 'SEEK', 'SELECT', 'SENER', 'SERVICES', 'SEVEN', 'SEW', 'SEX', 'SEXY', 'SFR', 'SG', 'SH', 'SHANGRILA', 'SHARP', 'SHAW', 'SHELL', 'SHIA', 'SHIKSHA', 'SHOES', 'SHOP', 'SHOPPING', 'SHOUJI', 'SHOW', 'SHOWTIME', 'SI', 'SILK', 'SINA', 'SINGLES', 'SITE', 'SJ', 'SK', 'SKI', 'SKIN', 'SKY', 'SKYPE', 'SL', 'SLING', 'SM', 'SMART', 'SMILE', 'SN', 'SNCF', 'SO', 'SOCCER', 'SOCIAL', 'SOFTBANK', 'SOFTWARE', 'SOHU', 'SOLAR', 'SOLUTIONS', 'SONG', 'SONY', 'SOY', 'SPA', - 'SPACE', 'SPORT', 'SPOT', 'SPREADBETTING', 'SR', 'SRL', 'SS', 'ST', - 'STADA', 'STAPLES', 'STAR', 'STATEBANK', 'STATEFARM', 'STC', - 'STCGROUP', 'STOCKHOLM', 'STORAGE', 'STORE', 'STREAM', 'STUDIO', - 'STUDY', 'STYLE', 'SU', 'SUCKS', 'SUPPLIES', 'SUPPLY', 'SUPPORT', - 'SURF', 'SURGERY', 'SUZUKI', 'SV', 'SWATCH', 'SWIFTCOVER', 'SWISS', - 'SX', 'SY', 'SYDNEY', 'SYSTEMS', 'SZ', 'TAB', 'TAIPEI', 'TALK', - 'TAOBAO', 'TARGET', 'TATAMOTORS', 'TATAR', 'TATTOO', 'TAX', 'TAXI', - 'TC', 'TCI', 'TD', 'TDK', 'TEAM', 'TECH', 'TECHNOLOGY', 'TEL', - 'TEMASEK', 'TENNIS', 'TEVA', 'TF', 'TG', 'TH', 'THD', 'THEATER', + 'SPACE', 'SPORT', 'SPOT', 'SR', 'SRL', 'SS', 'ST', 'STADA', 'STAPLES', + 'STAR', 'STATEBANK', 'STATEFARM', 'STC', 'STCGROUP', 'STOCKHOLM', + 'STORAGE', 'STORE', 'STREAM', 'STUDIO', 'STUDY', 'STYLE', 'SU', + 'SUCKS', 'SUPPLIES', 'SUPPLY', 'SUPPORT', 'SURF', 'SURGERY', 'SUZUKI', + 'SV', 'SWATCH', 'SWISS', 'SX', 'SY', 'SYDNEY', 'SYSTEMS', 'SZ', 'TAB', + 'TAIPEI', 'TALK', 'TAOBAO', 'TARGET', 'TATAMOTORS', 'TATAR', 'TATTOO', + 'TAX', 'TAXI', 'TC', 'TCI', 'TD', 'TDK', 'TEAM', 'TECH', 'TECHNOLOGY', + 'TEL', 'TEMASEK', 'TENNIS', 'TEVA', 'TF', 'TG', 'TH', 'THD', 'THEATER', 'THEATRE', 'TIAA', 'TICKETS', 'TIENDA', 'TIFFANY', 'TIPS', 'TIRES', 'TIROL', 'TJ', 'TJMAXX', 'TJX', 'TK', 'TKMAXX', 'TL', 'TM', 'TMALL', 'TN', 'TO', 'TODAY', 'TOKYO', 'TOOLS', 'TOP', 'TORAY', 'TOSHIBA', @@ -210,26 +206,26 @@ final class Tld extends AbstractRule 'WORK', 'WORKS', 'WORLD', 'WOW', 'WS', 'WTC', 'WTF', 'XBOX', 'XEROX', 'XFINITY', 'XIHUAN', 'XIN', 'XN--11B4C3D', 'XN--1CK2E1B', 'XN--1QQW23A', 'XN--2SCRJ9C', 'XN--30RR7Y', 'XN--3BST00M', - 'XN--3DS443G', 'XN--3E0B707E', 'XN--3HCRJ9C', 'XN--3OQ18VL8PN36A', - 'XN--3PXU8K', 'XN--42C2D9A', 'XN--45BR5CYL', 'XN--45BRJ9C', - 'XN--45Q11C', 'XN--4DBRK0CE', 'XN--4GBRIM', 'XN--54B7FTA0CC', - 'XN--55QW42G', 'XN--55QX5D', 'XN--5SU34J936BGSG', 'XN--5TZM5G', - 'XN--6FRZ82G', 'XN--6QQ986B3XL', 'XN--80ADXHKS', 'XN--80AO21A', - 'XN--80AQECDR1A', 'XN--80ASEHDB', 'XN--80ASWG', 'XN--8Y0A063A', - 'XN--90A3AC', 'XN--90AE', 'XN--90AIS', 'XN--9DBQ2A', 'XN--9ET52U', - 'XN--9KRT00A', 'XN--B4W605FERD', 'XN--BCK1B9A5DRE4C', 'XN--C1AVG', - 'XN--C2BR7G', 'XN--CCK2B3B', 'XN--CCKWCXETD', 'XN--CG4BKI', - 'XN--CLCHC0EA0B2G2A9GCD', 'XN--CZR694B', 'XN--CZRS0T', 'XN--CZRU2D', - 'XN--D1ACJ3B', 'XN--D1ALF', 'XN--E1A4C', 'XN--ECKVDTC9D', - 'XN--EFVY88H', 'XN--FCT429K', 'XN--FHBEI', 'XN--FIQ228C5HS', - 'XN--FIQ64B', 'XN--FIQS8S', 'XN--FIQZ9S', 'XN--FJQ720A', 'XN--FLW351E', - 'XN--FPCRJ9C3D', 'XN--FZC2C9E2C', 'XN--FZYS8D69UVGM', 'XN--G2XX48C', - 'XN--GCKR3F0F', 'XN--GECRJ9C', 'XN--GK3AT1E', 'XN--H2BREG3EVE', - 'XN--H2BRJ9C', 'XN--H2BRJ9C8C', 'XN--HXT814E', 'XN--I1B6B1A6A2E', - 'XN--IMR513N', 'XN--IO0A7I', 'XN--J1AEF', 'XN--J1AMH', 'XN--J6W193G', - 'XN--JLQ480N2RG', 'XN--JLQ61U9W7B', 'XN--JVR189M', 'XN--KCRX77D1X4A', - 'XN--KPRW13D', 'XN--KPRY57D', 'XN--KPUT3I', 'XN--L1ACC', - 'XN--LGBBAT1AD8J', 'XN--MGB9AWBF', 'XN--MGBA3A3EJT', 'XN--MGBA3A4F16A', + 'XN--3DS443G', 'XN--3E0B707E', 'XN--3HCRJ9C', 'XN--3PXU8K', + 'XN--42C2D9A', 'XN--45BR5CYL', 'XN--45BRJ9C', 'XN--45Q11C', + 'XN--4DBRK0CE', 'XN--4GBRIM', 'XN--54B7FTA0CC', 'XN--55QW42G', + 'XN--55QX5D', 'XN--5SU34J936BGSG', 'XN--5TZM5G', 'XN--6FRZ82G', + 'XN--6QQ986B3XL', 'XN--80ADXHKS', 'XN--80AO21A', 'XN--80AQECDR1A', + 'XN--80ASEHDB', 'XN--80ASWG', 'XN--8Y0A063A', 'XN--90A3AC', 'XN--90AE', + 'XN--90AIS', 'XN--9DBQ2A', 'XN--9ET52U', 'XN--9KRT00A', + 'XN--B4W605FERD', 'XN--BCK1B9A5DRE4C', 'XN--C1AVG', 'XN--C2BR7G', + 'XN--CCK2B3B', 'XN--CCKWCXETD', 'XN--CG4BKI', 'XN--CLCHC0EA0B2G2A9GCD', + 'XN--CZR694B', 'XN--CZRS0T', 'XN--CZRU2D', 'XN--D1ACJ3B', 'XN--D1ALF', + 'XN--E1A4C', 'XN--ECKVDTC9D', 'XN--EFVY88H', 'XN--FCT429K', + 'XN--FHBEI', 'XN--FIQ228C5HS', 'XN--FIQ64B', 'XN--FIQS8S', + 'XN--FIQZ9S', 'XN--FJQ720A', 'XN--FLW351E', 'XN--FPCRJ9C3D', + 'XN--FZC2C9E2C', 'XN--FZYS8D69UVGM', 'XN--G2XX48C', 'XN--GCKR3F0F', + 'XN--GECRJ9C', 'XN--GK3AT1E', 'XN--H2BREG3EVE', 'XN--H2BRJ9C', + 'XN--H2BRJ9C8C', 'XN--HXT814E', 'XN--I1B6B1A6A2E', 'XN--IMR513N', + 'XN--IO0A7I', 'XN--J1AEF', 'XN--J1AMH', 'XN--J6W193G', + 'XN--JLQ480N2RG', 'XN--JVR189M', 'XN--KCRX77D1X4A', 'XN--KPRW13D', + 'XN--KPRY57D', 'XN--KPUT3I', 'XN--L1ACC', 'XN--LGBBAT1AD8J', + 'XN--MGB9AWBF', 'XN--MGBA3A3EJT', 'XN--MGBA3A4F16A', 'XN--MGBA7C0BBN0A', 'XN--MGBAAKC7DVF', 'XN--MGBAAM7A8H', 'XN--MGBAB2BD', 'XN--MGBAH1A3HJKRD', 'XN--MGBAI9AZGQP6J', 'XN--MGBAYH7GPA', 'XN--MGBBH1A', 'XN--MGBBH1A71E', 'XN--MGBC0A9AZCG', diff --git a/library/Rules/TrueVal.php b/library/Rules/TrueVal.php index 669dc0b5..59635306 100644 --- a/library/Rules/TrueVal.php +++ b/library/Rules/TrueVal.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Type.php b/library/Rules/Type.php index e426d576..7b971eef 100644 --- a/library/Rules/Type.php +++ b/library/Rules/Type.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Unique.php b/library/Rules/Unique.php index 98f6ad37..98d68dc9 100644 --- a/library/Rules/Unique.php +++ b/library/Rules/Unique.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Uploaded.php b/library/Rules/Uploaded.php index d2deeb28..e41f7d95 100644 --- a/library/Rules/Uploaded.php +++ b/library/Rules/Uploaded.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Uppercase.php b/library/Rules/Uppercase.php index bd6d8909..c5b96a9a 100644 --- a/library/Rules/Uppercase.php +++ b/library/Rules/Uppercase.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use function mb_strtoupper; /** * Validates whether the characters in the input are uppercase. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody * @author Jean Pimentel diff --git a/library/Rules/Url.php b/library/Rules/Url.php index 9601000c..db981a44 100644 --- a/library/Rules/Url.php +++ b/library/Rules/Url.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Uuid.php b/library/Rules/Uuid.php index 5b905876..da83c4f5 100644 --- a/library/Rules/Uuid.php +++ b/library/Rules/Uuid.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Version.php b/library/Rules/Version.php index 605fcfb3..4f1d44a0 100644 --- a/library/Rules/Version.php +++ b/library/Rules/Version.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/VideoUrl.php b/library/Rules/VideoUrl.php index dc912cc2..67bd48c4 100644 --- a/library/Rules/VideoUrl.php +++ b/library/Rules/VideoUrl.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Vowel.php b/library/Rules/Vowel.php index df2b220b..72361f45 100644 --- a/library/Rules/Vowel.php +++ b/library/Rules/Vowel.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/When.php b/library/Rules/When.php index 932d721b..7ebbd096 100644 --- a/library/Rules/When.php +++ b/library/Rules/When.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use Respect\Validation\Validatable; /** * A ternary validator that accepts three parameters. * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Henrique Moody * @author Hugo Hamon diff --git a/library/Rules/Writable.php b/library/Rules/Writable.php index ea313a59..fe421814 100644 --- a/library/Rules/Writable.php +++ b/library/Rules/Writable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Xdigit.php b/library/Rules/Xdigit.php index 897ddf46..b1b17e32 100644 --- a/library/Rules/Xdigit.php +++ b/library/Rules/Xdigit.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Yes.php b/library/Rules/Yes.php index 3e207d74..d9b790c9 100644 --- a/library/Rules/Yes.php +++ b/library/Rules/Yes.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/library/Rules/Zend.php b/library/Rules/Zend.php deleted file mode 100644 index 268ef884..00000000 --- a/library/Rules/Zend.php +++ /dev/null @@ -1,143 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE file - * that was distributed with this source code. - */ - -declare(strict_types=1); - -namespace Respect\Validation\Rules; - -use ReflectionClass; -use Respect\Validation\Exceptions\ComponentException; -use Respect\Validation\Exceptions\ValidationException; -use Respect\Validation\Exceptions\ZendException; -use Throwable; -use Zend\Validator\ValidatorInterface; - -use function array_map; -use function class_exists; -use function current; -use function is_string; -use function sprintf; -use function stripos; - -/** - * Use Zend validators inside Respect\Validation flow. - * - * Messages are preserved. - * - * @author Alexandre Gomes Gaigalas - * @author Danilo Correa - * @author Henrique Moody - * @author Hugo Hamon - */ -final class Zend extends AbstractRule -{ - /** - * @var ValidatorInterface - */ - private $zendValidator; - - /** - * @param string|ValidatorInterface $validator - * @param mixed[] $params - * - * @throws ComponentException - */ - public function __construct($validator, array $params = []) - { - $this->zendValidator = $this->zendValidator($validator, $params); - } - - /** - * {@inheritDoc} - */ - public function assert($input): void - { - $validator = clone $this->zendValidator; - if ($validator->isValid($input)) { - return; - } - - /** @var ZendException $zendException */ - $zendException = $this->reportError($input); - $zendException->addChildren( - array_map( - function (string $message) use ($input): ValidationException { - $exception = $this->reportError($input); - $exception->updateTemplate($message); - - return $exception; - }, - $validator->getMessages() - ) - ); - - throw $zendException; - } - - /** - * {@inheritDoc} - */ - public function check($input): void - { - $validator = clone $this->zendValidator; - if ($validator->isValid($input)) { - return; - } - - /** @var ZendException $zendException */ - $zendException = $this->reportError($input); - $zendException->updateTemplate(current($validator->getMessages())); - - throw $zendException; - } - - /** - * {@inheritDoc} - */ - public function validate($input): bool - { - return (clone $this->zendValidator)->isValid($input); - } - - /** - * @param mixed $validator - * @param mixed[] $params - * - * @throws ComponentException - */ - private function zendValidator($validator, array $params = []): ValidatorInterface - { - if ($validator instanceof ValidatorInterface) { - return $validator; - } - - if (!is_string($validator)) { - throw new ComponentException('The given argument is not a valid Zend Validator'); - } - - $className = stripos($validator, 'Zend') === false ? 'Zend\\Validator\\' . $validator : '\\' . $validator; - - try { - if (!class_exists($className)) { - throw new ComponentException(sprintf('"%s" is not a valid class name', $className)); - } - - $reflection = new ReflectionClass($className); - if (!$reflection->isInstantiable()) { - throw new ComponentException(sprintf('"%s" is not instantiable', $className)); - } - - return $this->zendValidator($reflection->newInstanceArgs($params)); - } catch (Throwable $exception) { - throw new ComponentException(sprintf('Could not create "%s"', $validator), 0, $exception); - } - } -} diff --git a/library/StaticValidator.php b/library/StaticValidator.php index f5adf5f2..e568b4b6 100644 --- a/library/StaticValidator.php +++ b/library/StaticValidator.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -17,7 +17,6 @@ use finfo; use Respect\Validation\Rules\Key; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Validator\ValidatorInterface as SymfonyValidator; -use Zend\Validator\ValidatorInterface as ZendValidator; interface StaticValidator { @@ -380,10 +379,4 @@ interface StaticValidator public static function xdigit(string ...$additionalChars): ChainedValidator; public static function yes(bool $useLocale = false): ChainedValidator; - - /** - * @param string|ZendValidator $validator - * @param mixed[] $params - */ - public static function zend($validator, ?array $params = null): ChainedValidator; } diff --git a/library/Validatable.php b/library/Validatable.php index 6e860ac2..743ba3b5 100644 --- a/library/Validatable.php +++ b/library/Validatable.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -17,7 +17,7 @@ use Respect\Validation\Exceptions\ValidationException; /** Interface for validation rules */ /** - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ interface Validatable diff --git a/library/Validator.php b/library/Validator.php index 423e6d19..b3dff4ba 100644 --- a/library/Validator.php +++ b/library/Validator.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use function count; /** * @mixin StaticValidator * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class Validator extends AllOf diff --git a/tests/integration/rules/keyNested_1.phpt b/tests/integration/rules/keyNested_1.phpt index ead43961..aaf590c8 100644 --- a/tests/integration/rules/keyNested_1.phpt +++ b/tests/integration/rules/keyNested_1.phpt @@ -1,5 +1,5 @@ --CREDITS-- -Alexandre Gomes Gaigalas +Alexandre Gomes Gaigalas Henrique Moody Ivan Zinovyev --TEST-- diff --git a/tests/integration/rules/zend.phpt b/tests/integration/rules/zend.phpt deleted file mode 100644 index 3667de41..00000000 --- a/tests/integration/rules/zend.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---CREDITS-- -Danilo Correa ---FILE-- -check('googlecombr'); -} catch (ZendException $exception) { - echo $exception->getMessage() . PHP_EOL; -} - -try { - v::not(v::zend('Hostname'))->check('google.com.br'); -} catch (ZendException $exception) { - echo $exception->getMessage() . PHP_EOL; -} - -try { - v::zend('Hostname')->assert('googlecombr'); -} catch (NestedValidationException $exception) { - echo $exception->getFullMessage() . PHP_EOL; -} - -try { - v::not(v::zend('Hostname'))->assert('google.com.br'); -} catch (NestedValidationException $exception) { - echo $exception->getFullMessage() . PHP_EOL; -} -?> ---EXPECT-- -The input does not match the expected structure for a DNS hostname -"google.com.br" must not be valid -- "googlecombr" must be valid - - The input does not match the expected structure for a DNS hostname - - The input appears to be a local network name but local network names are not allowed -- "google.com.br" must not be valid diff --git a/tests/library/DataProvider/UndefinedProvider.php b/tests/library/DataProvider/UndefinedProvider.php index a0ea935b..025e7c8e 100644 --- a/tests/library/DataProvider/UndefinedProvider.php +++ b/tests/library/DataProvider/UndefinedProvider.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Exceptions/StubException.php b/tests/library/Exceptions/StubException.php index 0fab4606..e6aac7a5 100644 --- a/tests/library/Exceptions/StubException.php +++ b/tests/library/Exceptions/StubException.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/RuleTestCase.php b/tests/library/RuleTestCase.php index e040f918..d35d5d3e 100644 --- a/tests/library/RuleTestCase.php +++ b/tests/library/RuleTestCase.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Rules/AbstractClass.php b/tests/library/Rules/AbstractClass.php index 59f1c79b..6daaa2b0 100644 --- a/tests/library/Rules/AbstractClass.php +++ b/tests/library/Rules/AbstractClass.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Rules/CustomRule.php b/tests/library/Rules/CustomRule.php index 6bca2f90..2c67f0b1 100644 --- a/tests/library/Rules/CustomRule.php +++ b/tests/library/Rules/CustomRule.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Rules/Invalid.php b/tests/library/Rules/Invalid.php index 670ed615..efbadc52 100644 --- a/tests/library/Rules/Invalid.php +++ b/tests/library/Rules/Invalid.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Rules/Stub.php b/tests/library/Rules/Stub.php index ba3522e9..09d1d58a 100644 --- a/tests/library/Rules/Stub.php +++ b/tests/library/Rules/Stub.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Rules/Valid.php b/tests/library/Rules/Valid.php index 4932a4b8..6f060d17 100644 --- a/tests/library/Rules/Valid.php +++ b/tests/library/Rules/Valid.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Stubs/CountableStub.php b/tests/library/Stubs/CountableStub.php index d15c0a77..0be18ed5 100644 --- a/tests/library/Stubs/CountableStub.php +++ b/tests/library/Stubs/CountableStub.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Stubs/ToStringStub.php b/tests/library/Stubs/ToStringStub.php index 98e9e8d6..79de8066 100644 --- a/tests/library/Stubs/ToStringStub.php +++ b/tests/library/Stubs/ToStringStub.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/library/Stubs/ZendValidator.php b/tests/library/Stubs/ZendValidator.php deleted file mode 100644 index dbb6a633..00000000 --- a/tests/library/Stubs/ZendValidator.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE file - * that was distributed with this source code. - */ - -declare(strict_types=1); - -namespace Respect\Validation\Test\Stubs; - -use Zend\Validator\ValidatorInterface; - -final class ZendValidator implements ValidatorInterface -{ - /** - * {@inheritDoc} - */ - public function isValid($value) - { - return true; - } - - /** - * {@inheritDoc} - * - * @return string[] - */ - public function getMessages(): array - { - return []; - } -} diff --git a/tests/library/TestCase.php b/tests/library/TestCase.php index e72b973b..16b65430 100644 --- a/tests/library/TestCase.php +++ b/tests/library/TestCase.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Exceptions/CheckExceptionsTest.php b/tests/unit/Exceptions/CheckExceptionsTest.php index dc6d7032..5bb30a88 100644 --- a/tests/unit/Exceptions/CheckExceptionsTest.php +++ b/tests/unit/Exceptions/CheckExceptionsTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Exceptions/NestedValidationExceptionTest.php b/tests/unit/Exceptions/NestedValidationExceptionTest.php index 4e3c92d3..a6364330 100644 --- a/tests/unit/Exceptions/NestedValidationExceptionTest.php +++ b/tests/unit/Exceptions/NestedValidationExceptionTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\TestCase; /** * @covers \Respect\Validation\Exceptions\NestedValidationException * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody */ diff --git a/tests/unit/Exceptions/ValidationExceptionTest.php b/tests/unit/Exceptions/ValidationExceptionTest.php index 43cca878..ae5b0d3b 100644 --- a/tests/unit/Exceptions/ValidationExceptionTest.php +++ b/tests/unit/Exceptions/ValidationExceptionTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use function trim; * @group core * @covers \Respect\Validation\Exceptions\ValidationException * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Andy Wendt * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/FactoryTest.php b/tests/unit/FactoryTest.php index aab85427..4ca13b0d 100644 --- a/tests/unit/FactoryTest.php +++ b/tests/unit/FactoryTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Helpers/CanValidateDateTimeTest.php b/tests/unit/Helpers/CanValidateDateTimeTest.php index 61bc6479..8d5bd25d 100644 --- a/tests/unit/Helpers/CanValidateDateTimeTest.php +++ b/tests/unit/Helpers/CanValidateDateTimeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Helpers/CanValidateUndefinedTest.php b/tests/unit/Helpers/CanValidateUndefinedTest.php index 030bed07..6746614b 100644 --- a/tests/unit/Helpers/CanValidateUndefinedTest.php +++ b/tests/unit/Helpers/CanValidateUndefinedTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/AbstractCompositeTest.php b/tests/unit/Rules/AbstractCompositeTest.php index 88cbfc2e..6726c1fd 100644 --- a/tests/unit/Rules/AbstractCompositeTest.php +++ b/tests/unit/Rules/AbstractCompositeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/AbstractEnvelopeTest.php b/tests/unit/Rules/AbstractEnvelopeTest.php index f26ed298..9a7debf8 100644 --- a/tests/unit/Rules/AbstractEnvelopeTest.php +++ b/tests/unit/Rules/AbstractEnvelopeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/AbstractRuleTest.php b/tests/unit/Rules/AbstractRuleTest.php index 5f3a6543..a3006287 100644 --- a/tests/unit/Rules/AbstractRuleTest.php +++ b/tests/unit/Rules/AbstractRuleTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use Respect\Validation\Test\TestCase; /** * @covers \Respect\Validation\Rules\AbstractRule * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody */ diff --git a/tests/unit/Rules/AbstractSearcherTest.php b/tests/unit/Rules/AbstractSearcherTest.php index 680790d0..b25b179a 100644 --- a/tests/unit/Rules/AbstractSearcherTest.php +++ b/tests/unit/Rules/AbstractSearcherTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/AbstractWrapperTest.php b/tests/unit/Rules/AbstractWrapperTest.php index e1d72ef5..01050809 100644 --- a/tests/unit/Rules/AbstractWrapperTest.php +++ b/tests/unit/Rules/AbstractWrapperTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/AllOfTest.php b/tests/unit/Rules/AllOfTest.php index c810af5b..e3ce4c3b 100644 --- a/tests/unit/Rules/AllOfTest.php +++ b/tests/unit/Rules/AllOfTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -24,7 +24,7 @@ use Respect\Validation\Validatable; * @covers \Respect\Validation\Exceptions\AllOfException * @covers \Respect\Validation\Rules\AllOf * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nick Lombard diff --git a/tests/unit/Rules/AlnumTest.php b/tests/unit/Rules/AlnumTest.php index c0f3b831..0f0428ca 100644 --- a/tests/unit/Rules/AlnumTest.php +++ b/tests/unit/Rules/AlnumTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use stdClass; * @covers \Respect\Validation\Rules\AbstractFilterRule * @covers \Respect\Validation\Rules\Alnum * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Islam Elshobokshy diff --git a/tests/unit/Rules/AlphaTest.php b/tests/unit/Rules/AlphaTest.php index f25b063f..a59f8aeb 100644 --- a/tests/unit/Rules/AlphaTest.php +++ b/tests/unit/Rules/AlphaTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use stdClass; * @covers \Respect\Validation\Rules\AbstractFilterRule * @covers \Respect\Validation\Rules\Alpha * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nick Lombard diff --git a/tests/unit/Rules/AlwaysInvalidTest.php b/tests/unit/Rules/AlwaysInvalidTest.php index 89aef05d..40a54bd3 100644 --- a/tests/unit/Rules/AlwaysInvalidTest.php +++ b/tests/unit/Rules/AlwaysInvalidTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/AlwaysValidTest.php b/tests/unit/Rules/AlwaysValidTest.php index 90334c0c..c91fefc6 100644 --- a/tests/unit/Rules/AlwaysValidTest.php +++ b/tests/unit/Rules/AlwaysValidTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/AnyOfTest.php b/tests/unit/Rules/AnyOfTest.php index 332d9ff9..1b78a451 100644 --- a/tests/unit/Rules/AnyOfTest.php +++ b/tests/unit/Rules/AnyOfTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use Respect\Validation\Test\TestCase; * @covers \Respect\Validation\Exceptions\AnyOfException * @covers \Respect\Validation\Rules\AnyOf * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody */ diff --git a/tests/unit/Rules/ArrayTypeTest.php b/tests/unit/Rules/ArrayTypeTest.php index ef120aa8..1773fb10 100644 --- a/tests/unit/Rules/ArrayTypeTest.php +++ b/tests/unit/Rules/ArrayTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ArrayValTest.php b/tests/unit/Rules/ArrayValTest.php index 251ccb73..a10e173d 100644 --- a/tests/unit/Rules/ArrayValTest.php +++ b/tests/unit/Rules/ArrayValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use stdClass; * @group rule * @covers \Respect\Validation\Rules\ArrayVal * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Guilherme Siani * @author Henrique Moody diff --git a/tests/unit/Rules/AttributeTest.php b/tests/unit/Rules/AttributeTest.php index 6529ebb4..46461575 100644 --- a/tests/unit/Rules/AttributeTest.php +++ b/tests/unit/Rules/AttributeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use stdClass; * @covers \Respect\Validation\Rules\AbstractRelated * @covers \Respect\Validation\Rules\Attribute * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Gabriel Caruso * @author Henrique Moody @@ -35,7 +35,7 @@ final class AttributeTest extends RuleTestCase /** * @var string */ - private $bar = self::PROPERTY_VALUE; + private $bar = self::PROPERTY_VALUE; /** @phpstan-ignore-line */ /** * {@inheritDoc} diff --git a/tests/unit/Rules/Base64Test.php b/tests/unit/Rules/Base64Test.php index 6e5cbf2f..3b7de0d6 100644 --- a/tests/unit/Rules/Base64Test.php +++ b/tests/unit/Rules/Base64Test.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/BaseTest.php b/tests/unit/Rules/BaseTest.php index 8f72b678..2aa4d020 100644 --- a/tests/unit/Rules/BaseTest.php +++ b/tests/unit/Rules/BaseTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/BetweenTest.php b/tests/unit/Rules/BetweenTest.php index 9459f1f7..2a608e2d 100644 --- a/tests/unit/Rules/BetweenTest.php +++ b/tests/unit/Rules/BetweenTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -24,7 +24,7 @@ use Respect\Validation\Test\Stubs\CountableStub; * @covers \Respect\Validation\Rules\AbstractEnvelope * @covers \Respect\Validation\Rules\Between * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody */ diff --git a/tests/unit/Rules/BoolTypeTest.php b/tests/unit/Rules/BoolTypeTest.php index 958567cd..a525c089 100644 --- a/tests/unit/Rules/BoolTypeTest.php +++ b/tests/unit/Rules/BoolTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/BoolValTest.php b/tests/unit/Rules/BoolValTest.php index ad870e33..6c0aef9d 100644 --- a/tests/unit/Rules/BoolValTest.php +++ b/tests/unit/Rules/BoolValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/BsnTest.php b/tests/unit/Rules/BsnTest.php index 1e71f02b..f4691e7b 100644 --- a/tests/unit/Rules/BsnTest.php +++ b/tests/unit/Rules/BsnTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/CallTest.php b/tests/unit/Rules/CallTest.php index fe8a9e9c..041fd7d5 100644 --- a/tests/unit/Rules/CallTest.php +++ b/tests/unit/Rules/CallTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -29,7 +29,7 @@ use function trigger_error; * * @covers \Respect\Validation\Rules\Call * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nick Lombard diff --git a/tests/unit/Rules/CallableTypeTest.php b/tests/unit/Rules/CallableTypeTest.php index 86fa949f..6def2951 100644 --- a/tests/unit/Rules/CallableTypeTest.php +++ b/tests/unit/Rules/CallableTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/CallbackTest.php b/tests/unit/Rules/CallbackTest.php index 5d5052cd..b392d282 100644 --- a/tests/unit/Rules/CallbackTest.php +++ b/tests/unit/Rules/CallbackTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Callback * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nick Lombard diff --git a/tests/unit/Rules/CharsetTest.php b/tests/unit/Rules/CharsetTest.php index 84c5e5a0..c5d97465 100644 --- a/tests/unit/Rules/CharsetTest.php +++ b/tests/unit/Rules/CharsetTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use function mb_convert_encoding; * * @covers \Respect\Validation\Rules\Charset * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author William Espindola diff --git a/tests/unit/Rules/CnhTest.php b/tests/unit/Rules/CnhTest.php index 0621685e..4ae874d2 100644 --- a/tests/unit/Rules/CnhTest.php +++ b/tests/unit/Rules/CnhTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/CnpjTest.php b/tests/unit/Rules/CnpjTest.php index bac19946..74a0c106 100644 --- a/tests/unit/Rules/CnpjTest.php +++ b/tests/unit/Rules/CnpjTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ConsonantTest.php b/tests/unit/Rules/ConsonantTest.php index 2a6b8703..1be6ecd0 100644 --- a/tests/unit/Rules/ConsonantTest.php +++ b/tests/unit/Rules/ConsonantTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ContainsAnyTest.php b/tests/unit/Rules/ContainsAnyTest.php index e5e6066f..7980eac6 100644 --- a/tests/unit/Rules/ContainsAnyTest.php +++ b/tests/unit/Rules/ContainsAnyTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ContainsTest.php b/tests/unit/Rules/ContainsTest.php index 0fe8705e..a556aa71 100644 --- a/tests/unit/Rules/ContainsTest.php +++ b/tests/unit/Rules/ContainsTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\Contains * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nawarian diff --git a/tests/unit/Rules/ControlTest.php b/tests/unit/Rules/ControlTest.php index 85dbcba7..06699b39 100644 --- a/tests/unit/Rules/ControlTest.php +++ b/tests/unit/Rules/ControlTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/CountableTest.php b/tests/unit/Rules/CountableTest.php index ea6e5bc0..6dd9f8ec 100644 --- a/tests/unit/Rules/CountableTest.php +++ b/tests/unit/Rules/CountableTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/CountryCodeTest.php b/tests/unit/Rules/CountryCodeTest.php index 8107ebe5..24c720dc 100644 --- a/tests/unit/Rules/CountryCodeTest.php +++ b/tests/unit/Rules/CountryCodeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/CpfTest.php b/tests/unit/Rules/CpfTest.php index 26e73ba0..5b61a3f7 100644 --- a/tests/unit/Rules/CpfTest.php +++ b/tests/unit/Rules/CpfTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\Cpf * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Jair Henrique diff --git a/tests/unit/Rules/CreditCardTest.php b/tests/unit/Rules/CreditCardTest.php index eafa7c7c..dd15a8e4 100644 --- a/tests/unit/Rules/CreditCardTest.php +++ b/tests/unit/Rules/CreditCardTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/CurrencyCodeTest.php b/tests/unit/Rules/CurrencyCodeTest.php index e4da358a..eb952d03 100644 --- a/tests/unit/Rules/CurrencyCodeTest.php +++ b/tests/unit/Rules/CurrencyCodeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/DateTest.php b/tests/unit/Rules/DateTest.php index 35c1660e..f394c545 100644 --- a/tests/unit/Rules/DateTest.php +++ b/tests/unit/Rules/DateTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/DateTimeTest.php b/tests/unit/Rules/DateTimeTest.php index 39434286..78c4cda0 100644 --- a/tests/unit/Rules/DateTimeTest.php +++ b/tests/unit/Rules/DateTimeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -25,7 +25,7 @@ use function date_default_timezone_set; * * @covers \Respect\Validation\Rules\DateTime * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Eduardo Reveles * @author Emmerson Siqueira * @author Henrique Moody @@ -55,7 +55,6 @@ final class DateTimeTest extends RuleTestCase [new DateTime('r'), 'Thu, 29 Dec 2005 01:02:03 +0000'], [new DateTime('U'), 1464658596], [new DateTime('h'), 6], - [new DateTime('z'), 320], [new DateTime('Ym'), 202302], ]; } diff --git a/tests/unit/Rules/DecimalTest.php b/tests/unit/Rules/DecimalTest.php index a60f4dfb..ded11968 100644 --- a/tests/unit/Rules/DecimalTest.php +++ b/tests/unit/Rules/DecimalTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/DigitTest.php b/tests/unit/Rules/DigitTest.php index 5cfd9111..357134ae 100644 --- a/tests/unit/Rules/DigitTest.php +++ b/tests/unit/Rules/DigitTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use Respect\Validation\Test\RuleTestCase; * @covers \Respect\Validation\Rules\AbstractFilterRule * @covers \Respect\Validation\Rules\Digit * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nick Lombard diff --git a/tests/unit/Rules/DirectoryTest.php b/tests/unit/Rules/DirectoryTest.php index 3f0013f3..7e9072c7 100644 --- a/tests/unit/Rules/DirectoryTest.php +++ b/tests/unit/Rules/DirectoryTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/DomainTest.php b/tests/unit/Rules/DomainTest.php index 2f1cf2ba..f0452330 100644 --- a/tests/unit/Rules/DomainTest.php +++ b/tests/unit/Rules/DomainTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Domain * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Mehmet Tolga Avcioglu diff --git a/tests/unit/Rules/EachTest.php b/tests/unit/Rules/EachTest.php index c618e660..2c977fc6 100644 --- a/tests/unit/Rules/EachTest.php +++ b/tests/unit/Rules/EachTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -26,7 +26,7 @@ use function range; * * @covers \Respect\Validation\Rules\Each * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Henrique Moody * @author William Espindola @@ -76,7 +76,7 @@ final class EachTest extends RuleTestCase $validatable ->expects(self::exactly(3)) ->method('assert') - ->withConsecutive([1], [2], [3]); + ->will($this->onConsecutiveCalls([1], [2], [3])); $rule = new Each($validatable); $rule->assert(range(1, 3)); @@ -91,7 +91,7 @@ final class EachTest extends RuleTestCase $validatable ->expects(self::exactly(3)) ->method('check') - ->withConsecutive([1], [2], [3]); + ->will($this->onConsecutiveCalls([1], [2], [3])); $rule = new Each($validatable); $rule->check(range(1, 3)); diff --git a/tests/unit/Rules/EmailTest.php b/tests/unit/Rules/EmailTest.php index 5bcf146f..850f6dd8 100644 --- a/tests/unit/Rules/EmailTest.php +++ b/tests/unit/Rules/EmailTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/EndsWithTest.php b/tests/unit/Rules/EndsWithTest.php index 8541a77a..91ac6223 100644 --- a/tests/unit/Rules/EndsWithTest.php +++ b/tests/unit/Rules/EndsWithTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\EndsWith * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author William Espindola diff --git a/tests/unit/Rules/EqualsTest.php b/tests/unit/Rules/EqualsTest.php index 628c9ead..fe6e1fa6 100644 --- a/tests/unit/Rules/EqualsTest.php +++ b/tests/unit/Rules/EqualsTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Equals * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class EqualsTest extends RuleTestCase diff --git a/tests/unit/Rules/EquivalentTest.php b/tests/unit/Rules/EquivalentTest.php index 0fc1bc28..fe5be3ab 100644 --- a/tests/unit/Rules/EquivalentTest.php +++ b/tests/unit/Rules/EquivalentTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/EvenTest.php b/tests/unit/Rules/EvenTest.php index dd0cce79..0549141f 100644 --- a/tests/unit/Rules/EvenTest.php +++ b/tests/unit/Rules/EvenTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ExecutableTest.php b/tests/unit/Rules/ExecutableTest.php index 143546b9..8141f912 100644 --- a/tests/unit/Rules/ExecutableTest.php +++ b/tests/unit/Rules/ExecutableTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ExistsTest.php b/tests/unit/Rules/ExistsTest.php index e5fd596b..940741d1 100644 --- a/tests/unit/Rules/ExistsTest.php +++ b/tests/unit/Rules/ExistsTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ExtensionTest.php b/tests/unit/Rules/ExtensionTest.php index df515b7d..d54a67e9 100644 --- a/tests/unit/Rules/ExtensionTest.php +++ b/tests/unit/Rules/ExtensionTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FactorTest.php b/tests/unit/Rules/FactorTest.php index 46669e02..0039eda0 100644 --- a/tests/unit/Rules/FactorTest.php +++ b/tests/unit/Rules/FactorTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FalseValTest.php b/tests/unit/Rules/FalseValTest.php index 194cefbb..d76a56f6 100644 --- a/tests/unit/Rules/FalseValTest.php +++ b/tests/unit/Rules/FalseValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FibonacciTest.php b/tests/unit/Rules/FibonacciTest.php index a1366309..ee557b5a 100644 --- a/tests/unit/Rules/FibonacciTest.php +++ b/tests/unit/Rules/FibonacciTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FileTest.php b/tests/unit/Rules/FileTest.php index a337199a..5a5fd1ce 100644 --- a/tests/unit/Rules/FileTest.php +++ b/tests/unit/Rules/FileTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FilterVarTest.php b/tests/unit/Rules/FilterVarTest.php index 25757331..99ba7ec9 100644 --- a/tests/unit/Rules/FilterVarTest.php +++ b/tests/unit/Rules/FilterVarTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FiniteTest.php b/tests/unit/Rules/FiniteTest.php index bdf7d067..fed9d664 100644 --- a/tests/unit/Rules/FiniteTest.php +++ b/tests/unit/Rules/FiniteTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FloatTypeTest.php b/tests/unit/Rules/FloatTypeTest.php index d449edf9..86222710 100644 --- a/tests/unit/Rules/FloatTypeTest.php +++ b/tests/unit/Rules/FloatTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/FloatValTest.php b/tests/unit/Rules/FloatValTest.php index 2c947edc..c62fb7a1 100644 --- a/tests/unit/Rules/FloatValTest.php +++ b/tests/unit/Rules/FloatValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\FloatVal * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/GraphTest.php b/tests/unit/Rules/GraphTest.php index c8166c0f..b1c3cd81 100644 --- a/tests/unit/Rules/GraphTest.php +++ b/tests/unit/Rules/GraphTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/GreaterThanTest.php b/tests/unit/Rules/GreaterThanTest.php index 90fc1fd3..7f904bf2 100644 --- a/tests/unit/Rules/GreaterThanTest.php +++ b/tests/unit/Rules/GreaterThanTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/HexRgbColorTest.php b/tests/unit/Rules/HexRgbColorTest.php index 66a0f5e7..866f7c1b 100644 --- a/tests/unit/Rules/HexRgbColorTest.php +++ b/tests/unit/Rules/HexRgbColorTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/IbanTest.php b/tests/unit/Rules/IbanTest.php index a67175b9..e4f1edce 100644 --- a/tests/unit/Rules/IbanTest.php +++ b/tests/unit/Rules/IbanTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/IdenticalTest.php b/tests/unit/Rules/IdenticalTest.php index ebd9bc37..15108504 100644 --- a/tests/unit/Rules/IdenticalTest.php +++ b/tests/unit/Rules/IdenticalTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ImageTest.php b/tests/unit/Rules/ImageTest.php index 80865c6c..a63c7e40 100644 --- a/tests/unit/Rules/ImageTest.php +++ b/tests/unit/Rules/ImageTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ImeiTest.php b/tests/unit/Rules/ImeiTest.php index 0aced218..4f170fbc 100644 --- a/tests/unit/Rules/ImeiTest.php +++ b/tests/unit/Rules/ImeiTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/InTest.php b/tests/unit/Rules/InTest.php index d80b4d21..48075770 100644 --- a/tests/unit/Rules/InTest.php +++ b/tests/unit/Rules/InTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\In * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/InfiniteTest.php b/tests/unit/Rules/InfiniteTest.php index f149998b..080001c7 100644 --- a/tests/unit/Rules/InfiniteTest.php +++ b/tests/unit/Rules/InfiniteTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/InstanceTest.php b/tests/unit/Rules/InstanceTest.php index 29f00efb..e4968ec2 100644 --- a/tests/unit/Rules/InstanceTest.php +++ b/tests/unit/Rules/InstanceTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -26,7 +26,7 @@ use Traversable; * * @covers \Respect\Validation\Rules\Instance * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/IntTypeTest.php b/tests/unit/Rules/IntTypeTest.php index 301b1956..472b04b6 100644 --- a/tests/unit/Rules/IntTypeTest.php +++ b/tests/unit/Rules/IntTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/IntValTest.php b/tests/unit/Rules/IntValTest.php index 561a92c4..24fb75be 100644 --- a/tests/unit/Rules/IntValTest.php +++ b/tests/unit/Rules/IntValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use const PHP_INT_MAX; * * @covers \Respect\Validation\Rules\IntVal * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/IpTest.php b/tests/unit/Rules/IpTest.php index 1a3f335f..6819cae8 100644 --- a/tests/unit/Rules/IpTest.php +++ b/tests/unit/Rules/IpTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -26,7 +26,7 @@ use const FILTER_FLAG_NO_PRIV_RANGE; * * @covers \Respect\Validation\Rules\Ip * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/IsbnTest.php b/tests/unit/Rules/IsbnTest.php index a20a621a..024250c0 100644 --- a/tests/unit/Rules/IsbnTest.php +++ b/tests/unit/Rules/IsbnTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/IterableTypeTest.php b/tests/unit/Rules/IterableTypeTest.php index 7d659ca0..c8e0ef9e 100644 --- a/tests/unit/Rules/IterableTypeTest.php +++ b/tests/unit/Rules/IterableTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/JsonTest.php b/tests/unit/Rules/JsonTest.php index 44f3f2af..881562f2 100644 --- a/tests/unit/Rules/JsonTest.php +++ b/tests/unit/Rules/JsonTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Json * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Emmerson Siqueira * @author Henrique Moody diff --git a/tests/unit/Rules/KeyNestedTest.php b/tests/unit/Rules/KeyNestedTest.php index 1788c07c..660e139d 100644 --- a/tests/unit/Rules/KeyNestedTest.php +++ b/tests/unit/Rules/KeyNestedTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -25,7 +25,7 @@ use stdClass; * @covers \Respect\Validation\Rules\AbstractRelated * @covers \Respect\Validation\Rules\KeyNested * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Ivan Zinovyev diff --git a/tests/unit/Rules/KeySetTest.php b/tests/unit/Rules/KeySetTest.php index b03c82dc..53905c11 100644 --- a/tests/unit/Rules/KeySetTest.php +++ b/tests/unit/Rules/KeySetTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/KeyTest.php b/tests/unit/Rules/KeyTest.php index 4afdc625..655175a3 100644 --- a/tests/unit/Rules/KeyTest.php +++ b/tests/unit/Rules/KeyTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -24,7 +24,7 @@ use Throwable; * @covers \Respect\Validation\Rules\AbstractRelated * @covers \Respect\Validation\Rules\Key * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody */ diff --git a/tests/unit/Rules/KeyValueTest.php b/tests/unit/Rules/KeyValueTest.php index d604e75d..f6c74d7d 100644 --- a/tests/unit/Rules/KeyValueTest.php +++ b/tests/unit/Rules/KeyValueTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/LanguageCodeTest.php b/tests/unit/Rules/LanguageCodeTest.php index 05fbb062..7ff8829d 100644 --- a/tests/unit/Rules/LanguageCodeTest.php +++ b/tests/unit/Rules/LanguageCodeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/LeapDateTest.php b/tests/unit/Rules/LeapDateTest.php index 4d231fed..86c32129 100644 --- a/tests/unit/Rules/LeapDateTest.php +++ b/tests/unit/Rules/LeapDateTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\LeapDate * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Henrique Moody * @author Jayson Reis diff --git a/tests/unit/Rules/LeapYearTest.php b/tests/unit/Rules/LeapYearTest.php index 4ebea3aa..6735fa7f 100644 --- a/tests/unit/Rules/LeapYearTest.php +++ b/tests/unit/Rules/LeapYearTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/LengthTest.php b/tests/unit/Rules/LengthTest.php index 92c5eb1a..a707b612 100644 --- a/tests/unit/Rules/LengthTest.php +++ b/tests/unit/Rules/LengthTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -25,7 +25,7 @@ use function tmpfile; * * @covers \Respect\Validation\Rules\Length * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Augusto Pascutti * @author Danilo Correa * @author Gabriel Caruso diff --git a/tests/unit/Rules/LessThanTest.php b/tests/unit/Rules/LessThanTest.php index 8b0f35fa..bba7a32c 100644 --- a/tests/unit/Rules/LessThanTest.php +++ b/tests/unit/Rules/LessThanTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/LowercaseTest.php b/tests/unit/Rules/LowercaseTest.php index 4dbf7c1c..8a4cd7a3 100644 --- a/tests/unit/Rules/LowercaseTest.php +++ b/tests/unit/Rules/LowercaseTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/LuhnTest.php b/tests/unit/Rules/LuhnTest.php index 1f757d82..46c0f4fe 100644 --- a/tests/unit/Rules/LuhnTest.php +++ b/tests/unit/Rules/LuhnTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/MacAddressTest.php b/tests/unit/Rules/MacAddressTest.php index 6342b7ab..eb712b03 100644 --- a/tests/unit/Rules/MacAddressTest.php +++ b/tests/unit/Rules/MacAddressTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/MaxAgeTest.php b/tests/unit/Rules/MaxAgeTest.php index 6e2df654..d885f2dd 100644 --- a/tests/unit/Rules/MaxAgeTest.php +++ b/tests/unit/Rules/MaxAgeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/MaxTest.php b/tests/unit/Rules/MaxTest.php index 3373e6ab..83ab27e3 100644 --- a/tests/unit/Rules/MaxTest.php +++ b/tests/unit/Rules/MaxTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -24,7 +24,7 @@ use Respect\Validation\Test\Stubs\CountableStub; * @covers \Respect\Validation\Rules\AbstractComparison * @covers \Respect\Validation\Rules\Max * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/MimetypeTest.php b/tests/unit/Rules/MimetypeTest.php index 2d2c979a..f339cf87 100644 --- a/tests/unit/Rules/MimetypeTest.php +++ b/tests/unit/Rules/MimetypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -29,7 +29,7 @@ use const PHP_INT_MAX; * * @covers \Respect\Validation\Rules\Mimetype * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/MinAgeTest.php b/tests/unit/Rules/MinAgeTest.php index f06dbc20..baf81f42 100644 --- a/tests/unit/Rules/MinAgeTest.php +++ b/tests/unit/Rules/MinAgeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/MinTest.php b/tests/unit/Rules/MinTest.php index aa9a21b2..6b760e21 100644 --- a/tests/unit/Rules/MinTest.php +++ b/tests/unit/Rules/MinTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -24,7 +24,7 @@ use Respect\Validation\Test\Stubs\CountableStub; * @covers \Respect\Validation\Rules\AbstractComparison * @covers \Respect\Validation\Rules\Min * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Emmerson Siqueira * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/MultipleTest.php b/tests/unit/Rules/MultipleTest.php index 5423e048..c7074ee4 100644 --- a/tests/unit/Rules/MultipleTest.php +++ b/tests/unit/Rules/MultipleTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NegativeTest.php b/tests/unit/Rules/NegativeTest.php index 2f9cd8ac..da6ee807 100644 --- a/tests/unit/Rules/NegativeTest.php +++ b/tests/unit/Rules/NegativeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Negative * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Ismael Elias diff --git a/tests/unit/Rules/NfeAccessKeyTest.php b/tests/unit/Rules/NfeAccessKeyTest.php index 332a482f..4d6e5da1 100644 --- a/tests/unit/Rules/NfeAccessKeyTest.php +++ b/tests/unit/Rules/NfeAccessKeyTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NifTest.php b/tests/unit/Rules/NifTest.php index c4447503..95752888 100644 --- a/tests/unit/Rules/NifTest.php +++ b/tests/unit/Rules/NifTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NipTest.php b/tests/unit/Rules/NipTest.php index 31dfd7f6..4f64d978 100644 --- a/tests/unit/Rules/NipTest.php +++ b/tests/unit/Rules/NipTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NoTest.php b/tests/unit/Rules/NoTest.php index b7b48336..d6f6aaa2 100644 --- a/tests/unit/Rules/NoTest.php +++ b/tests/unit/Rules/NoTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NoWhitespaceTest.php b/tests/unit/Rules/NoWhitespaceTest.php index 601a0be5..15fd1e20 100644 --- a/tests/unit/Rules/NoWhitespaceTest.php +++ b/tests/unit/Rules/NoWhitespaceTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\NoWhitespace * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Benevides * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/NoneOfTest.php b/tests/unit/Rules/NoneOfTest.php index f190c889..fb8067e3 100644 --- a/tests/unit/Rules/NoneOfTest.php +++ b/tests/unit/Rules/NoneOfTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use Respect\Validation\Test\TestCase; * @covers \Respect\Validation\Exceptions\NoneOfException * @covers \Respect\Validation\Rules\NoneOf * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody */ diff --git a/tests/unit/Rules/NotBlankTest.php b/tests/unit/Rules/NotBlankTest.php index f0ae5d03..236673c6 100644 --- a/tests/unit/Rules/NotBlankTest.php +++ b/tests/unit/Rules/NotBlankTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NotEmojiTest.php b/tests/unit/Rules/NotEmojiTest.php index 1a2401ef..6f021649 100644 --- a/tests/unit/Rules/NotEmojiTest.php +++ b/tests/unit/Rules/NotEmojiTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NotEmptyTest.php b/tests/unit/Rules/NotEmptyTest.php index adf6718b..11e7f3c1 100644 --- a/tests/unit/Rules/NotEmptyTest.php +++ b/tests/unit/Rules/NotEmptyTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use stdClass; * @group rule * @covers \Respect\Validation\Rules\NotEmpty * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Bram Van der Sype * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/NotOptionalTest.php b/tests/unit/Rules/NotOptionalTest.php index 2772bceb..4bb13b38 100644 --- a/tests/unit/Rules/NotOptionalTest.php +++ b/tests/unit/Rules/NotOptionalTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NotTest.php b/tests/unit/Rules/NotTest.php index ad774042..6db6cba8 100644 --- a/tests/unit/Rules/NotTest.php +++ b/tests/unit/Rules/NotTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -23,7 +23,7 @@ use Respect\Validation\Validator; * @covers \Respect\Validation\Exceptions\NotException * @covers \Respect\Validation\Rules\Not * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Caio César Tavares * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/NullTypeTest.php b/tests/unit/Rules/NullTypeTest.php index bbbf1924..36c0ec87 100644 --- a/tests/unit/Rules/NullTypeTest.php +++ b/tests/unit/Rules/NullTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\NullType * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nick Lombard diff --git a/tests/unit/Rules/NullableTest.php b/tests/unit/Rules/NullableTest.php index 5be44ae3..49895b2a 100644 --- a/tests/unit/Rules/NullableTest.php +++ b/tests/unit/Rules/NullableTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NumberTest.php b/tests/unit/Rules/NumberTest.php index eb4bb376..d7ae6b66 100644 --- a/tests/unit/Rules/NumberTest.php +++ b/tests/unit/Rules/NumberTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/NumericValTest.php b/tests/unit/Rules/NumericValTest.php index 9e1439b1..722bd3c3 100644 --- a/tests/unit/Rules/NumericValTest.php +++ b/tests/unit/Rules/NumericValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\NumericVal * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Augusto Pascutti * @author Danilo Correa * @author Gabriel Caruso diff --git a/tests/unit/Rules/ObjectTypeTest.php b/tests/unit/Rules/ObjectTypeTest.php index de5ad7a0..1efc25c5 100644 --- a/tests/unit/Rules/ObjectTypeTest.php +++ b/tests/unit/Rules/ObjectTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -22,7 +22,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\ObjectType * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody */ diff --git a/tests/unit/Rules/OddTest.php b/tests/unit/Rules/OddTest.php index dfee30f5..ef5540bb 100644 --- a/tests/unit/Rules/OddTest.php +++ b/tests/unit/Rules/OddTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/OneOfTest.php b/tests/unit/Rules/OneOfTest.php index 8625742d..106d4037 100644 --- a/tests/unit/Rules/OneOfTest.php +++ b/tests/unit/Rules/OneOfTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/OptionalTest.php b/tests/unit/Rules/OptionalTest.php index 8fe647d2..0bca73d7 100644 --- a/tests/unit/Rules/OptionalTest.php +++ b/tests/unit/Rules/OptionalTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PerfectSquareTest.php b/tests/unit/Rules/PerfectSquareTest.php index 25f686b9..62024520 100644 --- a/tests/unit/Rules/PerfectSquareTest.php +++ b/tests/unit/Rules/PerfectSquareTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PeselTest.php b/tests/unit/Rules/PeselTest.php index a74d74e3..62414c5b 100644 --- a/tests/unit/Rules/PeselTest.php +++ b/tests/unit/Rules/PeselTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PhoneTest.php b/tests/unit/Rules/PhoneTest.php index 4f42d25d..71ded18c 100644 --- a/tests/unit/Rules/PhoneTest.php +++ b/tests/unit/Rules/PhoneTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PhpLabelTest.php b/tests/unit/Rules/PhpLabelTest.php index bd2ae847..4cfb68cb 100644 --- a/tests/unit/Rules/PhpLabelTest.php +++ b/tests/unit/Rules/PhpLabelTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PisTest.php b/tests/unit/Rules/PisTest.php index 6e980a16..4fc91ffb 100644 --- a/tests/unit/Rules/PisTest.php +++ b/tests/unit/Rules/PisTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PolishIdCardTest.php b/tests/unit/Rules/PolishIdCardTest.php index 286d0d31..e3633a14 100644 --- a/tests/unit/Rules/PolishIdCardTest.php +++ b/tests/unit/Rules/PolishIdCardTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PositiveTest.php b/tests/unit/Rules/PositiveTest.php index 0c59525a..cb5067f3 100644 --- a/tests/unit/Rules/PositiveTest.php +++ b/tests/unit/Rules/PositiveTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Positive * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Ismael Elias diff --git a/tests/unit/Rules/PostalCodeTest.php b/tests/unit/Rules/PostalCodeTest.php index b101aba4..7a19f48c 100644 --- a/tests/unit/Rules/PostalCodeTest.php +++ b/tests/unit/Rules/PostalCodeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PrimeNumberTest.php b/tests/unit/Rules/PrimeNumberTest.php index 0b944781..9a6a3ac4 100644 --- a/tests/unit/Rules/PrimeNumberTest.php +++ b/tests/unit/Rules/PrimeNumberTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PrintableTest.php b/tests/unit/Rules/PrintableTest.php index b3de2c63..2b8cfa1d 100644 --- a/tests/unit/Rules/PrintableTest.php +++ b/tests/unit/Rules/PrintableTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/PunctTest.php b/tests/unit/Rules/PunctTest.php index 5b7d921c..9c1d588b 100644 --- a/tests/unit/Rules/PunctTest.php +++ b/tests/unit/Rules/PunctTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ReadableTest.php b/tests/unit/Rules/ReadableTest.php index 645d319b..c9bb4f64 100644 --- a/tests/unit/Rules/ReadableTest.php +++ b/tests/unit/Rules/ReadableTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/RegexTest.php b/tests/unit/Rules/RegexTest.php index 5945bfd0..6fefe41f 100644 --- a/tests/unit/Rules/RegexTest.php +++ b/tests/unit/Rules/RegexTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Regex * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Henrique Moody */ final class RegexTest extends RuleTestCase diff --git a/tests/unit/Rules/ResourceTypeTest.php b/tests/unit/Rules/ResourceTypeTest.php index 44fef4b7..74653fa6 100644 --- a/tests/unit/Rules/ResourceTypeTest.php +++ b/tests/unit/Rules/ResourceTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/RomanTest.php b/tests/unit/Rules/RomanTest.php index ea05b259..56d9f0c9 100644 --- a/tests/unit/Rules/RomanTest.php +++ b/tests/unit/Rules/RomanTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ScalarValTest.php b/tests/unit/Rules/ScalarValTest.php index 8ee9ff60..5b621fca 100644 --- a/tests/unit/Rules/ScalarValTest.php +++ b/tests/unit/Rules/ScalarValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SfTest.php b/tests/unit/Rules/SfTest.php index b750fd3d..7667dc2a 100644 --- a/tests/unit/Rules/SfTest.php +++ b/tests/unit/Rules/SfTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SizeTest.php b/tests/unit/Rules/SizeTest.php index eaaeacd8..1111b200 100644 --- a/tests/unit/Rules/SizeTest.php +++ b/tests/unit/Rules/SizeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SlugTest.php b/tests/unit/Rules/SlugTest.php index c7fd0194..b9b37447 100644 --- a/tests/unit/Rules/SlugTest.php +++ b/tests/unit/Rules/SlugTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SortedTest.php b/tests/unit/Rules/SortedTest.php index 84840a1b..32bc9676 100644 --- a/tests/unit/Rules/SortedTest.php +++ b/tests/unit/Rules/SortedTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SpaceTest.php b/tests/unit/Rules/SpaceTest.php index b72cc0a3..9bf644c7 100644 --- a/tests/unit/Rules/SpaceTest.php +++ b/tests/unit/Rules/SpaceTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/StartsWithTest.php b/tests/unit/Rules/StartsWithTest.php index 9f85dab1..6064ce00 100644 --- a/tests/unit/Rules/StartsWithTest.php +++ b/tests/unit/Rules/StartsWithTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\StartsWith * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Danilo Correa * @author Gabriel Caruso * @author Henrique Moody diff --git a/tests/unit/Rules/StringTypeTest.php b/tests/unit/Rules/StringTypeTest.php index de6c638f..c7edd624 100644 --- a/tests/unit/Rules/StringTypeTest.php +++ b/tests/unit/Rules/StringTypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\StringType * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Marcel dos Santos diff --git a/tests/unit/Rules/StringValTest.php b/tests/unit/Rules/StringValTest.php index 0ebd60dc..14f7b567 100644 --- a/tests/unit/Rules/StringValTest.php +++ b/tests/unit/Rules/StringValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SubdivisionCodeTest.php b/tests/unit/Rules/SubdivisionCodeTest.php index d31ef059..643ab8e2 100644 --- a/tests/unit/Rules/SubdivisionCodeTest.php +++ b/tests/unit/Rules/SubdivisionCodeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SubsetTest.php b/tests/unit/Rules/SubsetTest.php index bd054255..6bdb5c31 100644 --- a/tests/unit/Rules/SubsetTest.php +++ b/tests/unit/Rules/SubsetTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/SymbolicLinkTest.php b/tests/unit/Rules/SymbolicLinkTest.php index 311fd296..cfeae2bf 100644 --- a/tests/unit/Rules/SymbolicLinkTest.php +++ b/tests/unit/Rules/SymbolicLinkTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/TimeTest.php b/tests/unit/Rules/TimeTest.php index 8f3e3cd6..924284b1 100644 --- a/tests/unit/Rules/TimeTest.php +++ b/tests/unit/Rules/TimeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/TldTest.php b/tests/unit/Rules/TldTest.php index 50af0fb7..9424f62a 100644 --- a/tests/unit/Rules/TldTest.php +++ b/tests/unit/Rules/TldTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -21,7 +21,7 @@ use stdClass; * * @covers \Respect\Validation\Rules\Tld * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Paul Karikari diff --git a/tests/unit/Rules/TrueValTest.php b/tests/unit/Rules/TrueValTest.php index 380ba4b7..f1034491 100644 --- a/tests/unit/Rules/TrueValTest.php +++ b/tests/unit/Rules/TrueValTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/TypeTest.php b/tests/unit/Rules/TypeTest.php index 44088038..49751e59 100644 --- a/tests/unit/Rules/TypeTest.php +++ b/tests/unit/Rules/TypeTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/UniqueTest.php b/tests/unit/Rules/UniqueTest.php index 08c9324e..17f0e788 100644 --- a/tests/unit/Rules/UniqueTest.php +++ b/tests/unit/Rules/UniqueTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/UploadedTest.php b/tests/unit/Rules/UploadedTest.php index d4de0de2..ac083221 100644 --- a/tests/unit/Rules/UploadedTest.php +++ b/tests/unit/Rules/UploadedTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/UppercaseTest.php b/tests/unit/Rules/UppercaseTest.php index 62748fae..0ff6047c 100644 --- a/tests/unit/Rules/UppercaseTest.php +++ b/tests/unit/Rules/UppercaseTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/UrlTest.php b/tests/unit/Rules/UrlTest.php index 5f1b177e..d045433d 100644 --- a/tests/unit/Rules/UrlTest.php +++ b/tests/unit/Rules/UrlTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/UuidTest.php b/tests/unit/Rules/UuidTest.php index b9223767..025f2ffe 100644 --- a/tests/unit/Rules/UuidTest.php +++ b/tests/unit/Rules/UuidTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/VersionTest.php b/tests/unit/Rules/VersionTest.php index 73378ecc..884b34b3 100644 --- a/tests/unit/Rules/VersionTest.php +++ b/tests/unit/Rules/VersionTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/VideoUrlTest.php b/tests/unit/Rules/VideoUrlTest.php index 778344fe..057038a7 100644 --- a/tests/unit/Rules/VideoUrlTest.php +++ b/tests/unit/Rules/VideoUrlTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/VowelTest.php b/tests/unit/Rules/VowelTest.php index 7cd37dc6..0ef7cef0 100644 --- a/tests/unit/Rules/VowelTest.php +++ b/tests/unit/Rules/VowelTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/WhenTest.php b/tests/unit/Rules/WhenTest.php index efac6651..2a92c1f8 100644 --- a/tests/unit/Rules/WhenTest.php +++ b/tests/unit/Rules/WhenTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -20,7 +20,7 @@ use Respect\Validation\Test\RuleTestCase; * * @covers \Respect\Validation\Rules\When * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Antonio Spinelli * @author Danilo Correa * @author Henrique Moody diff --git a/tests/unit/Rules/WritableTest.php b/tests/unit/Rules/WritableTest.php index 0985f097..2f0f0558 100644 --- a/tests/unit/Rules/WritableTest.php +++ b/tests/unit/Rules/WritableTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/XdigitTest.php b/tests/unit/Rules/XdigitTest.php index 29f17650..d83f30fa 100644 --- a/tests/unit/Rules/XdigitTest.php +++ b/tests/unit/Rules/XdigitTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/YesTest.php b/tests/unit/Rules/YesTest.php index a4a325e8..2795bada 100644 --- a/tests/unit/Rules/YesTest.php +++ b/tests/unit/Rules/YesTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. diff --git a/tests/unit/Rules/ZendTest.php b/tests/unit/Rules/ZendTest.php deleted file mode 100644 index fc7392e4..00000000 --- a/tests/unit/Rules/ZendTest.php +++ /dev/null @@ -1,117 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE file - * that was distributed with this source code. - */ - -declare(strict_types=1); - -namespace Respect\Validation\Rules; - -use Respect\Validation\Exceptions\ComponentException; -use Respect\Validation\Test\Rules\Stub; -use Respect\Validation\Test\RuleTestCase; -use Respect\Validation\Test\Stubs\ZendValidator; -use Zend\Validator\ConfigProvider; -use Zend\Validator\Date as ZendDate; -use Zend\Validator\ValidatorInterface; - -use function sprintf; - -/** - * @group rule - * - * @covers \Respect\Validation\Rules\Zend - * - * @author Alexandre Gomes Gaigalas - * @author Augusto Pascutti - * @author Danilo Correa - * @author Gabriel Caruso - * @author Henrique Moody - * @author Nick Lombard - */ -final class ZendTest extends RuleTestCase -{ - /** - * {@inheritDoc} - */ - public function providerForValidInput(): array - { - return [ - 'Constructor with name' => [new Zend('Date'), '2019-02-05'], - 'Constructor with class name' => [new Zend(ZendDate::class), '2015-02-05'], - 'Constructor with custom class name' => [new Zend(ZendValidator::class), '2015-02-05'], - 'Constructor with instance' => [new Zend(new ZendDate()), '2018-02-05'], - 'Constructor with custom instance' => [new Zend(new ZendValidator()), 'whatever'], - ]; - } - - /** - * {@inheritDoc} - */ - public function providerForInvalidInput(): array - { - return [ - 'Zend Date' => [new Zend('Date'), 'abc'], - 'Constructor with class name' => [new Zend(ZendDate::class), '05/02/19'], - ]; - } - - /** - * @test - * - * @dataProvider providerForInvalidValidator - * - * @param mixed $validator - */ - public function itShouldThrowAnExceptionWhenValidatorIsNotValid($validator): void - { - $this->expectExceptionObject(new ComponentException('The given argument is not a valid Zend Validator')); - - new Zend($validator); - } - - /** - * @return mixed[][] - */ - public function providerForInvalidValidator(): array - { - return [ - [null], - [[]], - [new Stub()], - ]; - } - - /** - * @test - * - * @dataProvider providerForUnbuildableValidator - */ - public function itShouldThrowAnExceptionWhenValidatorCannotBeCreated(string $validator): void - { - $this->expectExceptionObject( - new ComponentException(sprintf('Could not create "%s"', $validator)) - ); - - new Zend($validator); - } - - /** - * @return string[][] - */ - public function providerForUnbuildableValidator(): array - { - return [ - ['ConfigProvider'], - [ConfigProvider::class], - ['Zend\\Nonexistent\\Class'], - [ValidatorInterface::class], - ]; - } -} diff --git a/tests/unit/ValidatorTest.php b/tests/unit/ValidatorTest.php index d8aee5ad..fd2c8848 100644 --- a/tests/unit/ValidatorTest.php +++ b/tests/unit/ValidatorTest.php @@ -3,7 +3,7 @@ /* * This file is part of Respect/Validation. * - * (c) Alexandre Gomes Gaigalas + * (c) Alexandre Gomes Gaigalas * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. @@ -19,7 +19,7 @@ use Respect\Validation\Test\TestCase; /** * @covers \Respect\Validation\Validator * - * @author Alexandre Gomes Gaigalas + * @author Alexandre Gomes Gaigalas * @author Gabriel Caruso * @author Henrique Moody * @author Nick Lombard