Skip to content

Commit

Permalink
Marked all classes as final
Browse files Browse the repository at this point in the history
  • Loading branch information
PeeHaa committed Dec 2, 2018
1 parent 4f57938 commit bdbca2c
Show file tree
Hide file tree
Showing 166 changed files with 166 additions and 166 deletions.
2 changes: 1 addition & 1 deletion src/Enum/File/Image/Svg/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace HarmonyIO\Validation\Enum\File\Image\Svg;

class Attribute
final class Attribute
{
public const ACCENT_HEIGHT = 'accent-height';
public const ACCUMULATE = 'accumulate';
Expand Down
2 changes: 1 addition & 1 deletion src/Enum/Network/Dns/RecordType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* @method static RecordType MAILA()
* @method static RecordType ALL()
*/
class RecordType extends Enum
final class RecordType extends Enum
{
// phpcs:disable SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedConstant
private const A = Record::A;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
namespace HarmonyIO\Validation\Exception;

//phpcs:ignore SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix
class Exception extends \Exception
abstract class Exception extends \Exception
{
}
2 changes: 1 addition & 1 deletion src/Exception/FileInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace HarmonyIO\Validation\Exception;

class FileInfo extends Exception
final class FileInfo extends Exception
{
}
2 changes: 1 addition & 1 deletion src/Exception/InvalidAgeRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace HarmonyIO\Validation\Exception;

class InvalidAgeRange extends Exception
final class InvalidAgeRange extends Exception
{
private const MESSAGE_TEMPLATE = 'The minimum age (`%d`) can not be greater than the maximum age (`%d`).';

Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidAspectRatio.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace HarmonyIO\Validation\Exception;

class InvalidAspectRatio extends Exception
final class InvalidAspectRatio extends Exception
{
private const MESSAGE_TEMPLATE = 'The aspect ratio (`%s`) could not be parsed.';

Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidCidrRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace HarmonyIO\Validation\Exception;

class InvalidCidrRange extends Exception
final class InvalidCidrRange extends Exception
{
public function __construct(string $message, int $code)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace HarmonyIO\Validation\Exception;

class InvalidFullyQualifiedClassOrInterfaceName extends Exception
final class InvalidFullyQualifiedClassOrInterfaceName extends Exception
{
private const MESSAGE_TEMPLATE = 'Expected type `%s` should be a valid fully qualified class or interface name.';

Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace HarmonyIO\Validation\Exception;

class InvalidResponse extends Exception
final class InvalidResponse extends Exception
{
}
2 changes: 1 addition & 1 deletion src/Exception/InvalidXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace HarmonyIO\Validation\Exception;

class InvalidXml extends Exception
final class InvalidXml extends Exception
{
}
2 changes: 1 addition & 1 deletion src/Exception/RequestFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace HarmonyIO\Validation\Exception;

class RequestFailed extends Exception
final class RequestFailed extends Exception
{
}
2 changes: 1 addition & 1 deletion src/Rule/Age/Exact.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Amp\Success;
use HarmonyIO\Validation\Rule\Rule;

class Exact implements Rule
final class Exact implements Rule
{
/** @var int */
private $age;
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/Age/Maximum.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Amp\Success;
use HarmonyIO\Validation\Rule\Rule;

class Maximum implements Rule
final class Maximum implements Rule
{
/** @var int */
private $maximumAge;
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/Age/Minimum.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Amp\Success;
use HarmonyIO\Validation\Rule\Rule;

class Minimum implements Rule
final class Minimum implements Rule
{
/** @var int */
private $minimumAge;
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/Age/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use HarmonyIO\Validation\Rule\Combinator\All;
use HarmonyIO\Validation\Rule\Rule;

class Range implements Rule
final class Range implements Rule
{
/** @var int */
private $minimumAge;
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Albania.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Albania implements Rule
final class Albania implements Rule
{
private const PATTERN = '~^AL\d{2}\d{8}[a–zA-Z0-9]{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Andorra.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Andorra implements Rule
final class Andorra implements Rule
{
private const PATTERN = '~^AD\d{2}\d{4}\d{4}[a–zA-Z0-9]{12}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Austria.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Austria implements Rule
final class Austria implements Rule
{
private const PATTERN = '~^AT\d{2}\d{5}\d{11}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Azerbaijan.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Azerbaijan implements Rule
final class Azerbaijan implements Rule
{
private const PATTERN = '~^AZ\d{2}[A-Z]{4}[a-zA-Z0-9]{20}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Bahrain.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Bahrain implements Rule
final class Bahrain implements Rule
{
private const PATTERN = '~^BH\d{2}[A-Z]{4}[a-zA-Z0-9]{14}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Belgium.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Belgium implements Rule
final class Belgium implements Rule
{
private const PATTERN = '~^BE\d{2}\d{3}\d{7}\d{2}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/BosniaAndHerzegovina.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class BosniaAndHerzegovina implements Rule
final class BosniaAndHerzegovina implements Rule
{
private const PATTERN = '~^BA39\d{3}\d{3}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Brazil.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Brazil implements Rule
final class Brazil implements Rule
{
private const PATTERN = '~^BR\d{2}\d{8}\d{5}\d{10}[A-Z]{1}[a-zA-Z0-9]{1}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/BritishVirginIslands.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class BritishVirginIslands implements Rule
final class BritishVirginIslands implements Rule
{
private const PATTERN = '~^VG\d{2}[A-Z]{4}\d{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Bulgaria.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Bulgaria implements Rule
final class Bulgaria implements Rule
{
private const PATTERN = '~^BG\d{2}[A-Z]{4}\d{4}[a-zA-Z0-9]{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/CostaRica.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class CostaRica implements Rule
final class CostaRica implements Rule
{
private const PATTERN = '~^CR\d{2}0\d{3}\d{14}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Croatia.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Croatia implements Rule
final class Croatia implements Rule
{
private const PATTERN = '~^HR\d{2}\d{7}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Cyprus.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Cyprus implements Rule
final class Cyprus implements Rule
{
private const PATTERN = '~^CY\d{2}\d{3}\d{5}[a-zA-Z0-9]{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/CzechRepublic.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class CzechRepublic implements Rule
final class CzechRepublic implements Rule
{
private const PATTERN = '~^CZ\d{2}\d{4}\d{6}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Denmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Denmark implements Rule
final class Denmark implements Rule
{
private const PATTERN = '~^DK\d{2}\d{4}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/DominicanRepublic.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class DominicanRepublic implements Rule
final class DominicanRepublic implements Rule
{
private const PATTERN = '~^DO\d{2}[A-Z]{4}\d{20}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/EastTimor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class EastTimor implements Rule
final class EastTimor implements Rule
{
private const PATTERN = '~^TL38\d{3}\d{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Estonia.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Estonia implements Rule
final class Estonia implements Rule
{
private const PATTERN = '~^EE\d{2}\d{2}\d{2}\d{12}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/FaroeIslands.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class FaroeIslands implements Rule
final class FaroeIslands implements Rule
{
private const PATTERN = '~^FO\d{2}\d{4}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Finland.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Finland implements Rule
final class Finland implements Rule
{
private const PATTERN = '~^FI\d{2}\d{6}\d{8}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/France.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class France implements Rule
final class France implements Rule
{
private const PATTERN = '~^FR\d{2}\d{5}\d{5}[a-zA-Z0-9]{11}\d{2}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Georgia.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Georgia implements Rule
final class Georgia implements Rule
{
private const PATTERN = '~^GE\d{2}[A-Z]{2}\d{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Germany.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Germany implements Rule
final class Germany implements Rule
{
private const PATTERN = '~^DE\d{2}\d{8}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Gibraltar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Gibraltar implements Rule
final class Gibraltar implements Rule
{
private const PATTERN = '~^GI\d{2}[A-Z]{4}[a-zA-Z0-9]{15}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Greece.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Greece implements Rule
final class Greece implements Rule
{
private const PATTERN = '~^GR\d{2}\d{3}\d{4}[a-zA-Z0-9]{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Greenland.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Greenland implements Rule
final class Greenland implements Rule
{
private const PATTERN = '~^GL\d{2}\d{4}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Guatemala.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Guatemala implements Rule
final class Guatemala implements Rule
{
private const PATTERN = '~^GT\d{2}[A-Z]{4}\d{2}\d{2}[a-zA-Z0-9]{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Hungary.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Hungary implements Rule
final class Hungary implements Rule
{
private const PATTERN = '~^HU\d{2}\d{3}\d{5}\d{16}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Iceland.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Iceland implements Rule
final class Iceland implements Rule
{
private const PATTERN = '~^IS\d{2}\d{4}\d{2}\d{6}\d{10}$~';

Expand Down
2 changes: 1 addition & 1 deletion src/Rule/BankAccount/Iban/Country/Ireland.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HarmonyIO\Validation\Rule\BankAccount\Iban\IbanChecksum;
use HarmonyIO\Validation\Rule\Rule;

class Ireland implements Rule
final class Ireland implements Rule
{
private const PATTERN = '~^IE\d{2}[A-Z]{4}\d{6}\d{8}$~';

Expand Down
Loading

0 comments on commit bdbca2c

Please sign in to comment.