From a38071f03ec3fb1475c95df4ba32de3270ab411c Mon Sep 17 00:00:00 2001 From: Milos Tomic Date: Mon, 26 Dec 2016 14:51:52 +0100 Subject: [PATCH] code style fixes --- .php_cs | 2 +- src/Tmilos/Value/AbstractEnum.php | 2 +- src/Tmilos/Value/AbstractValue.php | 2 +- src/Tmilos/Value/Enum.php | 2 +- .../Value/Spec/FixedLengthRandomStringValue.php | 11 ++++++++++- src/Tmilos/Value/Spec/Gender.php | 2 +- src/Tmilos/Value/Spec/IntValue.php | 2 +- src/Tmilos/Value/Spec/MaxLengthStringValue.php | 9 +++++++++ src/Tmilos/Value/Spec/NonEmptyTrimmedStringValue.php | 9 +++++++++ src/Tmilos/Value/Value.php | 2 +- 10 files changed, 35 insertions(+), 8 deletions(-) diff --git a/.php_cs b/.php_cs index d9b672e..f8ce05b 100644 --- a/.php_cs +++ b/.php_cs @@ -5,7 +5,7 @@ $finder = PhpCsFixer\Finder::create() ; $header = << diff --git a/src/Tmilos/Value/AbstractEnum.php b/src/Tmilos/Value/AbstractEnum.php index 216291f..9b616a9 100644 --- a/src/Tmilos/Value/AbstractEnum.php +++ b/src/Tmilos/Value/AbstractEnum.php @@ -1,7 +1,7 @@ * diff --git a/src/Tmilos/Value/AbstractValue.php b/src/Tmilos/Value/AbstractValue.php index 491a100..7e25760 100644 --- a/src/Tmilos/Value/AbstractValue.php +++ b/src/Tmilos/Value/AbstractValue.php @@ -1,7 +1,7 @@ * diff --git a/src/Tmilos/Value/Enum.php b/src/Tmilos/Value/Enum.php index 164303e..8d322e7 100644 --- a/src/Tmilos/Value/Enum.php +++ b/src/Tmilos/Value/Enum.php @@ -1,7 +1,7 @@ * diff --git a/src/Tmilos/Value/Spec/FixedLengthRandomStringValue.php b/src/Tmilos/Value/Spec/FixedLengthRandomStringValue.php index 9ff6863..7a36220 100644 --- a/src/Tmilos/Value/Spec/FixedLengthRandomStringValue.php +++ b/src/Tmilos/Value/Spec/FixedLengthRandomStringValue.php @@ -1,5 +1,14 @@ + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + namespace Tmilos\Value\Spec; use Tmilos\Value\AbstractValue; @@ -19,7 +28,7 @@ protected static function getRequiredLength() */ public static function generate() { - return new static(bin2hex(random_bytes(static::getRequiredLength()/2))); + return new static(bin2hex(random_bytes(static::getRequiredLength() / 2))); } public static function isValid($value) diff --git a/src/Tmilos/Value/Spec/Gender.php b/src/Tmilos/Value/Spec/Gender.php index b6b97eb..b486696 100644 --- a/src/Tmilos/Value/Spec/Gender.php +++ b/src/Tmilos/Value/Spec/Gender.php @@ -1,7 +1,7 @@ * diff --git a/src/Tmilos/Value/Spec/IntValue.php b/src/Tmilos/Value/Spec/IntValue.php index 5722301..45732cd 100644 --- a/src/Tmilos/Value/Spec/IntValue.php +++ b/src/Tmilos/Value/Spec/IntValue.php @@ -1,7 +1,7 @@ * diff --git a/src/Tmilos/Value/Spec/MaxLengthStringValue.php b/src/Tmilos/Value/Spec/MaxLengthStringValue.php index b2bc442..b12e65c 100644 --- a/src/Tmilos/Value/Spec/MaxLengthStringValue.php +++ b/src/Tmilos/Value/Spec/MaxLengthStringValue.php @@ -1,5 +1,14 @@ + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + namespace Tmilos\Value\Spec; class MaxLengthStringValue extends NonEmptyTrimmedStringValue diff --git a/src/Tmilos/Value/Spec/NonEmptyTrimmedStringValue.php b/src/Tmilos/Value/Spec/NonEmptyTrimmedStringValue.php index 818a04c..27e780a 100644 --- a/src/Tmilos/Value/Spec/NonEmptyTrimmedStringValue.php +++ b/src/Tmilos/Value/Spec/NonEmptyTrimmedStringValue.php @@ -1,5 +1,14 @@ + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + namespace Tmilos\Value\Spec; use Tmilos\Value\AbstractValue; diff --git a/src/Tmilos/Value/Value.php b/src/Tmilos/Value/Value.php index 4e513c3..9c2cb8e 100644 --- a/src/Tmilos/Value/Value.php +++ b/src/Tmilos/Value/Value.php @@ -1,7 +1,7 @@ *