Skip to content

Commit

Permalink
Fix some coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquemoody committed Jun 8, 2015
1 parent 124ac05 commit b8c76e3
Show file tree
Hide file tree
Showing 323 changed files with 860 additions and 670 deletions.
1 change: 1 addition & 0 deletions library/ExceptionIterator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation;

use RecursiveArrayIterator;
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/AbstractGroupedException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AbstractGroupedException extends AbstractNestedException
Expand Down
3 changes: 2 additions & 1 deletion library/Exceptions/AbstractNestedException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

use RecursiveIteratorIterator;
Expand Down Expand Up @@ -77,7 +78,7 @@ public function getFullMessage()
public function getRelated($full = false)
{
if (!$full && 1 === count($this->related)
&& current($this->related) instanceof AbstractNestedException) {
&& current($this->related) instanceof self) {
return current($this->related)->getRelated();
} else {
return $this->related;
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/AgeException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AgeException extends AbstractNestedException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/AllOfException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AllOfException extends AbstractGroupedException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/AlnumException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AlnumException extends AlphaException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/AlphaException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AlphaException extends ValidationException
Expand Down
5 changes: 3 additions & 2 deletions library/Exceptions/AlwaysInvalidException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AlwaysInvalidException extends ValidationException
Expand All @@ -8,11 +9,11 @@ class AlwaysInvalidException extends ValidationException
public static $defaultTemplates = array(
self::MODE_DEFAULT => array(
self::STANDARD => '{{name}} is always invalid',
self::SIMPLE => '{{name}} is not valid',
self::SIMPLE => '{{name}} is not valid',
),
self::MODE_NEGATIVE => array(
self::STANDARD => '{{name}} is always valid',
self::SIMPLE => '{{name}} is valid',
self::SIMPLE => '{{name}} is valid',
),
);
}
1 change: 1 addition & 0 deletions library/Exceptions/AlwaysValidException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AlwaysValidException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/ArrException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class ArrException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/AtLeastException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AtLeastException extends AbstractGroupedException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/AttributeException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class AttributeException extends AbstractNestedException
Expand Down
3 changes: 2 additions & 1 deletion library/Exceptions/BankAccountException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class BankAccountException extends ValidationException
Expand All @@ -9,6 +10,6 @@ class BankAccountException extends ValidationException
),
self::MODE_NEGATIVE => array(
self::STANDARD => '{{name}} must not be a bank account',
)
),
);
}
3 changes: 2 additions & 1 deletion library/Exceptions/BankException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class BankException extends ValidationException
Expand All @@ -9,6 +10,6 @@ class BankException extends ValidationException
),
self::MODE_NEGATIVE => array(
self::STANDARD => '{{name}} must not be a bank',
)
),
);
}
1 change: 1 addition & 0 deletions library/Exceptions/BaseException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class BaseException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/BetweenException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class BetweenException extends AbstractNestedException
Expand Down
3 changes: 2 additions & 1 deletion library/Exceptions/BicException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class BicException extends ValidationException
Expand All @@ -9,6 +10,6 @@ class BicException extends ValidationException
),
self::MODE_NEGATIVE => array(
self::STANDARD => '{{name}} must not be a BIC',
)
),
);
}
1 change: 1 addition & 0 deletions library/Exceptions/BoolException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class BoolException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CallException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CallException extends AbstractGroupedException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CallbackException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CallbackException extends AbstractNestedException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CharsetException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CharsetException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CnhException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CnhException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CntrlException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CntrlException extends AlphaException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/ComponentException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

use Exception;
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/ConsonantException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class ConsonantException extends AlphaException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/ContainsException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class ContainsException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CountryCodeException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CountryCodeException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CpfException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CpfException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/CreditCardException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class CreditCardException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/DateException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class DateException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/DigitException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class DigitException extends AlphaException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/DirectoryException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class DirectoryException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/DomainException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class DomainException extends AbstractNestedException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/EachException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class EachException extends AbstractNestedException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/EmailException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class EmailException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/EndsWithException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class EndsWithException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/EqualsException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class EqualsException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/EvenException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class EvenException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

interface ExceptionInterface
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/FalseException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class FalseException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/FilterVarException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class FilterVarException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/FloatException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class FloatException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/GraphException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class GraphException extends AlphaException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/HexRgbColorException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class HexRgbColorException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/HexaException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class HexaException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/InException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class InException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/InstanceException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class InstanceException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/IntException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class IntException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/IpException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class IpException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/JsonException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class JsonException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/KeyException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class KeyException extends AttributeException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/LeapDateException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class LeapDateException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/LeapYearException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class LeapYearException extends ValidationException
Expand Down
1 change: 1 addition & 0 deletions library/Exceptions/LengthException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions;

class LengthException extends ValidationException
Expand Down
3 changes: 2 additions & 1 deletion library/Exceptions/Locale/GermanBankAccountException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions\Locale;

use Respect\Validation\Exceptions\BankAccountException;
Expand All @@ -11,6 +12,6 @@ class GermanBankAccountException extends BankAccountException
),
self::MODE_NEGATIVE => array(
self::STANDARD => '{{name}} must not be a german bank account',
)
),
);
}
3 changes: 2 additions & 1 deletion library/Exceptions/Locale/GermanBankException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Respect\Validation\Exceptions\Locale;

use Respect\Validation\Exceptions\BankException;
Expand All @@ -11,6 +12,6 @@ class GermanBankException extends BankException
),
self::MODE_NEGATIVE => array(
self::STANDARD => '{{name}} must not be a german bank',
)
),
);
}
Loading

0 comments on commit b8c76e3

Please sign in to comment.