Completed
Push — master ( 8ace16...5d30f6 )
by Alexey
03:23
created
src/Validations/IntValidation.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,9 @@
 block discarded – undo
14 14
 
15 15
     public function isValid(ValueObject $data)
16 16
     {
17
-        if (is_bool($data->value())) return false;
17
+        if (is_bool($data->value())) {
18
+            return false;
19
+        }
18 20
         return is_int($data->value()) || preg_match('/^\d+$/', $data->value());
19 21
     }
20 22
 
Please login to merge, or discard this patch.
src/Validations/MinLenValidation.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 block discarded – undo
17 17
 
18 18
     public function getErrorMessage()
19 19
     {
20
-        if(!is_null($this->errorMessage)) return parent::getErrorMessage();
20
+        if(!is_null($this->errorMessage)) {
21
+            return parent::getErrorMessage();
22
+        }
21 23
 
22 24
         return "{$this->data->name()} is too short (minimum {$this->options[0]} characters";
23 25
     }
Please login to merge, or discard this patch.
src/Validations/FloatValidation.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,9 @@
 block discarded – undo
14 14
 
15 15
     public function isValid(ValueObject $data)
16 16
     {
17
-        if ( is_bool($data->value()) ) return false;
17
+        if ( is_bool($data->value()) ) {
18
+            return false;
19
+        }
18 20
         return is_float($data->value()) || preg_match('/^[\d\.]+$/', $data->value());
19 21
     }
20 22
 
Please login to merge, or discard this patch.
src/Validations/MaxValidation.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 block discarded – undo
17 17
 
18 18
     public function getErrorMessage()
19 19
     {
20
-        if(!is_null($this->errorMessage)) return parent::getErrorMessage();
20
+        if(!is_null($this->errorMessage)) {
21
+            return parent::getErrorMessage();
22
+        }
21 23
 
22 24
         return "{$this->data->name()} is too big (maximum {$this->options[0]})";
23 25
     }
Please login to merge, or discard this patch.
src/Validations/MaxLenValidation.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,9 @@
 block discarded – undo
16 16
 
17 17
     public function getErrorMessage()
18 18
     {
19
-        if(!is_null($this->errorMessage)) return parent::getErrorMessage();
19
+        if(!is_null($this->errorMessage)) {
20
+            return parent::getErrorMessage();
21
+        }
20 22
 
21 23
         return "{$this->data->name()} is too long (maximum {$this->options[0]} characters";
22 24
     }
Please login to merge, or discard this patch.
src/Validations/MinValidation.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 block discarded – undo
17 17
 
18 18
     public function getErrorMessage()
19 19
     {
20
-        if(!is_null($this->errorMessage)) return parent::getErrorMessage();
20
+        if(!is_null($this->errorMessage)) {
21
+            return parent::getErrorMessage();
22
+        }
21 23
 
22 24
         return "{$this->data->name()} is too small (minimum {$this->options[0]})";
23 25
     }
Please login to merge, or discard this patch.