Add missing "@author" annotations

This commit will make sure that every class, interface, or trait will
have the "@author" annotation in it.

In order to create a list of authors, I used the "git blame" command,
which means that if someone changed or even created the file but does
not have any remaining line will not be shown in the list; it's a
trade-off worth but it is worth it. The other way to do it would be
carefully checking each file.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
Henrique Moody 2018-11-25 17:56:04 +01:00
parent 2e29b9e8c7
commit 9e7571fb98
No known key found for this signature in database
GPG key ID: 221E9281655813A6
131 changed files with 538 additions and 0 deletions

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class AllOfException extends GroupedValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class AnyOfException extends NestedValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class CntrlException extends FilteredValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class ComponentException extends \Exception implements Exception
{
}

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Kleber Hamada Sato <kleberhs007@yahoo.com>
*/
class ConsonantException extends FilteredValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class DomainException extends NestedValidationException
{
public static $defaultTemplates = [

View file

@ -15,6 +15,10 @@ namespace Respect\Validation\Exceptions;
use Throwable;
/**
* @author Andy Wendt <andy@awendt.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
interface Exception extends Throwable
{
}

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class GraphException extends FilteredValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class GroupedValidationException extends NestedValidationException
{
public const NONE = 'none';

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Davide Pastore <pasdavide@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class HexRgbColorException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class IdentityCardException extends ValidationException
{
/**

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com>
*/
class IpException extends ValidationException
{
public const NETWORK_RANGE = 'network_range';

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class KeySetException extends GroupedValidationException implements NonOmissibleException
{
public const STRUCTURE = 'structure';

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class KeyValueException extends ValidationException
{
public const COMPONENT = 'component';

View file

@ -15,6 +15,9 @@ namespace Respect\Validation\Exceptions\Locale;
use Respect\Validation\Exceptions\ValidationException;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class PlIdentityCardException extends ValidationException
{
/**

View file

@ -15,6 +15,10 @@ namespace Respect\Validation\Exceptions\Locale;
use Respect\Validation\Exceptions\ValidationException;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Tomasz Regdos <tomek@regdos.com>
*/
final class PlVatinException extends ValidationException
{
/**

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Andrey Knupp Vital <andreykvital@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class NfeAccessKeyException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class NoException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Andy Wendt <andy@awendt.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
interface NonOmissibleException extends Exception
{
}

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class NoneOfException extends NestedValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class NotException extends GroupedValidationException
{
}

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class OptionalException extends ValidationException
{
public const NAMED = 'named';

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Michael Firsikov <michael.firsikov@gmail.com>
*/
class PhoneException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class PostalCodeException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class PunctException extends FilteredValidationException
{
public static $defaultTemplates = [

View file

@ -16,6 +16,9 @@ namespace Respect\Validation\Exceptions;
use Countable;
use RecursiveIterator;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class RecursiveExceptionIterator implements RecursiveIterator, Countable
{
private $exceptions;

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class RegexException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Jean Pimentel <jeanfap@gmail.com>
*/
class RomanException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Carlos André Ferrari <caferrari@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class SlugException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Mikhail Vyrtsev <reeywhaar@gmail.com>
*/
class SortedException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class SpaceException extends FilteredValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class StartsWithException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class SubdivisionCodeException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class SymbolicLinkException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class UrlException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class ValidatorException extends AllOfException
{
}

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Tomasz Regdos <tomek@regdos.com>
*/
final class VatinException extends ValidationException
{
/**

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Kleber Hamada Sato <kleberhs007@yahoo.com>
*/
class VowelException extends FilteredValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Antonio Spinelli <tonicospinelli85@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class WhenException extends ValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class XdigitException extends FilteredValidationException
{
public static $defaultTemplates = [

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class ZendException extends NestedValidationException
{
public static $defaultTemplates = [

View file

@ -17,6 +17,12 @@ use Respect\Validation\Exceptions\ValidationException;
use Respect\Validation\Validatable;
use function is_scalar;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
abstract class AbstractRelated extends AbstractRule
{
public $mandatory = true;

View file

@ -17,6 +17,12 @@ use Respect\Validation\Exceptions\ValidationException;
use Respect\Validation\Factory;
use Respect\Validation\Validatable;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
* @author Vicente Mendoza <vicentemmor@yahoo.com.mx>
*/
abstract class AbstractRule implements Validatable
{
protected $name;

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class AllOf extends AbstractComposite
{
public function assert($input): void

View file

@ -15,6 +15,10 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Exceptions\ValidationException;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class AnyOf extends AbstractComposite
{
public function assert($input): void

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class Cntrl extends AbstractFilterRule
{
protected function validateFilteredInput(string $input): bool

View file

@ -15,6 +15,10 @@ namespace Respect\Validation\Rules;
use function preg_match;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class Consonant extends AbstractFilterRule
{
protected function validateFilteredInput(string $input): bool

View file

@ -15,6 +15,13 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Exceptions\ValidationException;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Mehmet Tolga Avcioglu <mehmet@activecom.net>
* @author Nick Lombard <github@jigsoft.co.za>
* @author Róbert Nagy <vrnagy@gmail.com>
*/
class Domain extends AbstractComposite
{
protected $tld;

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class Graph extends AbstractFilterRule
{
protected function validateFilteredInput(string $input): bool

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Davide Pastore <pasdavide@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class HexRgbColor extends Xdigit
{
public function validate($input): bool

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class IdentityCard extends AbstractLocaleWrapper
{
/**

View file

@ -15,6 +15,11 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Exceptions\ComponentException;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com>
*/
class Ip extends AbstractRule
{
public $ipOptions;

View file

@ -16,6 +16,11 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Exceptions\ComponentException;
use Respect\Validation\Validatable;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class Key extends AbstractRelated
{
public function __construct($reference, Validatable $referenceValidator = null, $mandatory = true)

View file

@ -16,6 +16,12 @@ namespace Respect\Validation\Rules;
use ArrayAccess;
use Respect\Validation\Exceptions\ComponentException;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Ivan Zinovyev <vanyazin@gmail.com>
*/
class KeyNested extends AbstractRelated
{
public function hasReference($input): bool

View file

@ -17,6 +17,9 @@ use Respect\Validation\Exceptions\ComponentException;
use Respect\Validation\Exceptions\ValidationException;
use Respect\Validation\Validator;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class KeyValue extends AbstractRule
{
public $comparedKey;

View file

@ -19,6 +19,8 @@ use Respect\Validation\Rules\AbstractRule;
* Validator for Polish identity card.
*
* @see https://en.wikipedia.org/wiki/Polish_identity_card
*
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class PlIdentityCard extends AbstractRule
{

View file

@ -19,6 +19,9 @@ use Respect\Validation\Rules\AbstractRule;
* Validator for Polish VAT identification number (NIP).
*
* @see https://en.wikipedia.org/wiki/VAT_identification_number
*
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Tomasz Regdos <tomek@regdos.com>
*/
final class PlVatin extends AbstractRule
{

View file

@ -18,6 +18,9 @@ namespace Respect\Validation\Rules;
*
* Valida chave de acesso de NFe.
* Mais especificamente, relacionada ao DANFE.
*
* @author Andrey Knupp Vital <andreykvital@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class NfeAccessKey extends AbstractRule
{

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class No extends Regex
{
public function __construct($useLocale = false)

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class NoneOf extends AbstractComposite
{
public function assert($input): void

View file

@ -16,6 +16,11 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Exceptions\ValidationException;
use Respect\Validation\Validatable;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Caio César Tavares <caiotava@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class Not extends AbstractRule
{
public $rule;

View file

@ -15,6 +15,9 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Helpers\UndefinedHelper;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class Optional extends AbstractWrapper
{
use UndefinedHelper;

View file

@ -17,6 +17,10 @@ use function is_scalar;
use function preg_match;
use function sprintf;
/**
* @author Graham Campbell <graham@mineuk.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class Phone extends AbstractRule
{
protected function getPregFormat()

View file

@ -15,6 +15,9 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Exceptions\ComponentException;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class PostalCode extends Regex
{
public const DEFAULT_PATTERN = '/^$/';

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class Punct extends AbstractFilterRule
{
protected function validateFilteredInput(string $input): bool

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class Regex extends AbstractRule
{
public $regex;

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Alexander Wühr <wuehr@sc-networks.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Jean Pimentel <jeanfap@gmail.com>
*/
class Roman extends Regex
{
public function __construct()

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Carlos André Ferrari <caferrari@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class Slug extends AbstractRule
{
public function validate($input): bool

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Mikhail Vyrtsev <reeywhaar@gmail.com>
*/
class Sorted extends AbstractRule
{
public $fn = null;

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class Space extends AbstractFilterRule
{
protected function validateFilteredInput(string $input): bool

View file

@ -13,6 +13,11 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Marcelo Araujo <msaraujo@php.net>
*/
class StartsWith extends AbstractRule
{
public $startValue;

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class SymbolicLink extends AbstractRule
{
public function validate($input): bool

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Tomasz Regdos <tomek@regdos.com>
*/
final class Vatin extends AbstractLocaleWrapper
{
/**

View file

@ -15,6 +15,10 @@ namespace Respect\Validation\Rules;
use function preg_match;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class Vowel extends AbstractFilterRule
{
protected function validateFilteredInput(string $input): bool

View file

@ -16,6 +16,11 @@ namespace Respect\Validation\Rules;
use Respect\Validation\Exceptions\AlwaysInvalidException;
use Respect\Validation\Validatable;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Hugo Hamon <hugo.hamon@sensiolabs.com>
*/
class When extends AbstractRule
{
public $when;

View file

@ -13,6 +13,10 @@ declare(strict_types=1);
namespace Respect\Validation\Rules;
/**
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class Xdigit extends AbstractFilterRule
{
protected function validateFilteredInput(string $input): bool

View file

@ -16,6 +16,11 @@ namespace Respect\Validation\Rules;
use ReflectionClass;
use Respect\Validation\Exceptions\ComponentException;
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Hugo Hamon <hugo.hamon@sensiolabs.com>
*/
class Zend extends AbstractRule
{
protected $messages = [];

View file

@ -16,6 +16,10 @@ namespace Respect\Validation;
use Respect\Validation\Exceptions\ValidationException;
/** Interface for validation rules */
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
interface Validatable
{
public function assert($input): void;

View file

@ -168,6 +168,9 @@ use Symfony\Component\Validator\Validator\ValidatorInterface;
* @method static Validator xdigit(string ...$additionalChars)
* @method static Validator yes($useLocale = false)
* @method static Validator zend($validator, array $params = null)
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class Validator extends AllOf
{

View file

@ -15,6 +15,9 @@ namespace Respect\Validation\Test\Exceptions;
use Respect\Validation\Exceptions\ValidationException;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class StubException extends ValidationException
{
}

View file

@ -15,6 +15,9 @@ namespace Respect\Validation\Test\Rules;
use Respect\Validation\Validatable;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
abstract class AbstractClass implements Validatable
{
}

View file

@ -13,6 +13,9 @@ declare(strict_types=1);
namespace Respect\Validation\Test\Rules;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class Invalid
{
}

View file

@ -15,6 +15,9 @@ namespace Respect\Validation\Test\Rules;
use Respect\Validation\Rules\AbstractRule;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class Valid extends AbstractRule
{
/**

View file

@ -19,6 +19,11 @@ use ReflectionClass;
/**
* @coversNothing
*
* @author Andy Wendt <andy@awendt.com>
* @author Augusto Pascutti <augusto@phpsp.org.br>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class CheckExceptionsTest extends TestCase
{

View file

@ -17,6 +17,10 @@ use PHPUnit\Framework\TestCase;
/**
* @covers \Respect\Validation\Exceptions\NestedValidationException
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class NestedValidationExceptionTest extends TestCase
{

View file

@ -26,6 +26,10 @@ use function sprintf;
/**
* @covers \Respect\Validation\Factory
*
* @author Augusto Pascutti <augusto@phpsp.org.br>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class FactoryTest extends TestCase
{

View file

@ -18,6 +18,10 @@ use Respect\Validation\Validatable;
/**
* @covers \Respect\Validation\Rules\AbstractRelated
*
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class AbstractRelatedTest extends TestCase
{

View file

@ -18,6 +18,10 @@ use Respect\Validation\Exceptions\ValidationException;
/**
* @covers \Respect\Validation\Rules\AbstractRule
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class AbstractRuleTest extends TestCase
{

View file

@ -19,6 +19,11 @@ use PHPUnit\Framework\TestCase;
* @group rule
* @covers \Respect\Validation\Exceptions\AllOfException
* @covers \Respect\Validation\Rules\AllOf
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
*/
class AllOfTest extends TestCase
{

View file

@ -19,6 +19,10 @@ use PHPUnit\Framework\TestCase;
* @group rule
* @covers \Respect\Validation\Exceptions\AnyOfException
* @covers \Respect\Validation\Rules\AnyOf
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class AnyOfTest extends TestCase
{

View file

@ -18,6 +18,10 @@ use Respect\Validation\Test\RuleTestCase;
/**
* @group rule
* @covers \Respect\Validation\Rules\ArrayType
*
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author João Torquato <joao.otl@gmail.com>
*/
final class ArrayTypeTest extends RuleTestCase
{

View file

@ -21,6 +21,11 @@ use stdClass;
/**
* @group rule
* @covers \Respect\Validation\Rules\ArrayVal
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Guilherme Siani <guilherme@siani.com.br>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class ArrayValTest extends RuleTestCase
{

View file

@ -20,6 +20,11 @@ use Respect\Validation\Validatable;
* @group rule
* @covers \Respect\Validation\Exceptions\AttributeException
* @covers \Respect\Validation\Rules\Attribute
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class AttributeTest extends RuleTestCase
{

View file

@ -22,6 +22,10 @@ use Respect\Validation\Test\Stubs\CountableStub;
*
* @covers \Respect\Validation\Rules\AbstractEnvelope
* @covers \Respect\Validation\Rules\Between
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class BetweenTest extends RuleTestCase
{

View file

@ -20,6 +20,12 @@ use PHPUnit\Framework\TestCase;
* @covers \Respect\Validation\Exceptions\CntrlException
* @covers \Respect\Validation\Rules\AbstractFilterRule
* @covers \Respect\Validation\Rules\Cntrl
*
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
* @author Pascal Borreli <pascal@borreli.com>
*/
class CntrlTest extends TestCase
{

View file

@ -20,6 +20,12 @@ use PHPUnit\Framework\TestCase;
* @covers \Respect\Validation\Exceptions\ConsonantException
* @covers \Respect\Validation\Rules\AbstractFilterRule
* @covers \Respect\Validation\Rules\Consonant
*
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Kleber Hamada Sato <kleberhs007@yahoo.com>
* @author Nick Lombard <github@jigsoft.co.za>
* @author Pascal Borreli <pascal@borreli.com>
*/
class ConsonantTest extends TestCase
{

View file

@ -20,6 +20,11 @@ use Respect\Validation\Validator as v;
* @group rule
* @covers \Respect\Validation\Exceptions\DomainException
* @covers \Respect\Validation\Rules\Domain
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Mehmet Tolga Avcioglu <mehmet@activecom.net>
*/
class DomainTest extends TestCase
{

View file

@ -20,6 +20,12 @@ use PHPUnit\Framework\TestCase;
* @covers \Respect\Validation\Exceptions\GraphException
* @covers \Respect\Validation\Rules\AbstractFilterRule
* @covers \Respect\Validation\Rules\Graph
*
* @author Andre Ramaciotti <andre@ramaciotti.com>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Nick Lombard <github@jigsoft.co.za>
* @author Pascal Borreli <pascal@borreli.com>
*/
class GraphTest extends TestCase
{

View file

@ -19,6 +19,10 @@ use PHPUnit\Framework\TestCase;
* @group rule
* @covers \Respect\Validation\Exceptions\HexRgbColorException
* @covers \Respect\Validation\Rules\HexRgbColor
*
* @author Davide Pastore <pasdavide@gmail.com>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class HexRgbColorTest extends TestCase
{

View file

@ -19,6 +19,11 @@ use PHPUnit\Framework\TestCase;
* @group rule
* @covers \Respect\Validation\Exceptions\IpException
* @covers \Respect\Validation\Rules\Ip
*
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Gabriel Caruso <carusogabriel34@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com>
*/
class IpTest extends TestCase
{

Some files were not shown because too many files have changed in this diff Show more