Completed
Push — master ( 72a246...6ab249 )
by Helmut
05:19
created
src/Fields/Dropdown/Dropdown.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,9 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function setValueFromModel($model)
54 54
     {
55
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
55
+        if (property_exists($model, $this->name)) {
56
+            $this->value = $model->{$this->name};
57
+        }
56 58
     }   
57 59
 
58 60
     public function setValueFromRequest($request)
@@ -62,7 +64,9 @@  discard block
 block discarded – undo
62 64
 
63 65
     public function fillModelWithValue($model)
64 66
     {
65
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
67
+        if (property_exists($model, $this->name)) {
68
+            $model->{$this->name} = $this->value;
69
+        }
66 70
     }   
67 71
 
68 72
     public function validateRequired()
Please login to merge, or discard this patch.
src/Fields/Email/Email.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function setValueFromModel($model)
33 33
     {
34
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
34
+        if (property_exists($model, $this->name)) {
35
+            $this->value = $model->{$this->name};
36
+        }
35 37
     }
36 38
 
37 39
     public function setValueFromRequest($request)
@@ -41,7 +43,9 @@  discard block
 block discarded – undo
41 43
 
42 44
     public function fillModelWithValue($model)
43 45
     {
44
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
46
+        if (property_exists($model, $this->name)) {
47
+            $model->{$this->name} = $this->value;
48
+        }
45 49
     }
46 50
 
47 51
     public function validate()
Please login to merge, or discard this patch.
src/Fields/Number/Number.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function setValueFromModel($model)
43 43
     {
44
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
44
+        if (property_exists($model, $this->name)) {
45
+            $this->value = $model->{$this->name};
46
+        }
45 47
     }
46 48
 
47 49
     public function setValueFromRequest($request)
@@ -51,7 +53,9 @@  discard block
 block discarded – undo
51 53
 
52 54
     public function fillModelWithValue($model)
53 55
     {
54
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
56
+        if (property_exists($model, $this->name)) {
57
+            $model->{$this->name} = $this->value;
58
+        }
55 59
     }   
56 60
 
57 61
     public function validate()
Please login to merge, or discard this patch.
src/Fields/ParagraphText/ParagraphText.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function setValueFromModel($model)
33 33
     {
34
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
34
+        if (property_exists($model, $this->name)) {
35
+            $this->value = $model->{$this->name};
36
+        }
35 37
     }
36 38
 
37 39
     public function setValueFromRequest($request)
@@ -41,7 +43,9 @@  discard block
 block discarded – undo
41 43
 
42 44
     public function fillModelWithValue($model)
43 45
     {
44
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
46
+        if (property_exists($model, $this->name)) {
47
+            $model->{$this->name} = $this->value;
48
+        }
45 49
     }   
46 50
 
47 51
     public function validateRequired()
Please login to merge, or discard this patch.
src/Fields/Search/Search.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function setValueFromModel($model)
33 33
     {
34
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
34
+        if (property_exists($model, $this->name)) {
35
+            $this->value = $model->{$this->name};
36
+        }
35 37
     }
36 38
 
37 39
     public function setValueFromRequest($request)
@@ -41,7 +43,9 @@  discard block
 block discarded – undo
41 43
 
42 44
     public function fillModelWithValue($model)
43 45
     {
44
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
46
+        if (property_exists($model, $this->name)) {
47
+            $model->{$this->name} = $this->value;
48
+        }
45 49
     }   
46 50
 
47 51
     public function validateRequired()
Please login to merge, or discard this patch.
src/Fields/Text/Text.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function setValueFromModel($model)
33 33
     {
34
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
34
+        if (property_exists($model, $this->name)) {
35
+            $this->value = $model->{$this->name};
36
+        }
35 37
     }
36 38
 
37 39
     public function setValueFromRequest($request)
@@ -41,7 +43,9 @@  discard block
 block discarded – undo
41 43
 
42 44
     public function fillModelWithValue($model)
43 45
     {
44
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
46
+        if (property_exists($model, $this->name)) {
47
+            $model->{$this->name} = $this->value;
48
+        }
45 49
     }   
46 50
 
47 51
     public function validateRequired()
Please login to merge, or discard this patch.