Passed
Push — master ( c44284...d7baa1 )
by Alexey
02:43
created
src/Validations/AbstractValidation.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,9 @@  discard block
 block discarded – undo
19 19
 
20 20
     public function __construct($options = null)
21 21
     {
22
-        if(!is_null($options) && !is_array($options) ) $options = [$options];
22
+        if(!is_null($options) && !is_array($options) ) {
23
+            $options = [$options];
24
+        }
23 25
         $this->options = $options;
24 26
     }
25 27
 
@@ -44,7 +46,9 @@  discard block
 block discarded – undo
44 46
 
45 47
     public function getErrorMessage()
46 48
     {
47
-        if (!is_null($this->errorMessage)) return str_replace("{name}", $this->data->name(), $this->errorMessage);
49
+        if (!is_null($this->errorMessage)) {
50
+            return str_replace("{name}", $this->data->name(), $this->errorMessage);
51
+        }
48 52
 
49 53
         return $this->errorMessage();
50 54
     }
Please login to merge, or discard this patch.