Completed
Push — master ( 610df9...2915ee )
by Helmut
05:49
created
src/Fields/Email/Email.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
 
32 32
     public function setValueFromModel($model)
33 33
     {
34
-        if (isset($model->{$this->name})) $this->value = $model->{$this->name};
34
+        if (isset($model->{$this->name})) {
35
+            $this->value = $model->{$this->name};
36
+        }
35 37
     }
36 38
 
37 39
     public function setValueFromRequest($request)
Please login to merge, or discard this patch.
src/Fields/Search/Search.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
 
32 32
     public function setValueFromModel($model)
33 33
     {
34
-        if (isset($model->{$this->name})) $this->value = $model->{$this->name};
34
+        if (isset($model->{$this->name})) {
35
+            $this->value = $model->{$this->name};
36
+        }
35 37
     }
36 38
 
37 39
     public function setValueFromRequest($request)
Please login to merge, or discard this patch.
src/Fields/Number/Number.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@
 block discarded – undo
41 41
 
42 42
     public function setValueFromModel($model)
43 43
     {
44
-        if (isset($model->{$this->name})) $this->value = $model->{$this->name};
44
+        if (isset($model->{$this->name})) {
45
+            $this->value = $model->{$this->name};
46
+        }
45 47
     }
46 48
 
47 49
     public function setValueFromRequest($request)
Please login to merge, or discard this patch.
src/Fields/Name/Name.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,15 +38,23 @@
 block discarded – undo
38 38
 
39 39
     public function setValueFromDefault()
40 40
     {
41
-        if (isset($this->default['first'])) $this->value_first = $this->default['first'];
42
-        if (isset($this->default['surname'])) $this->value_surname = $this->default['surname'];
41
+        if (isset($this->default['first'])) {
42
+            $this->value_first = $this->default['first'];
43
+        }
44
+        if (isset($this->default['surname'])) {
45
+            $this->value_surname = $this->default['surname'];
46
+        }
43 47
         $this->value = trim($this->value_first.' '.$this->value_surname);
44 48
     }
45 49
 
46 50
     public function setValueFromModel($model)
47 51
     {
48
-        if (isset($model->{$this->name.'_first'})) $this->value_first = $model->{$this->name.'_first'};
49
-        if (isset($model->{$this->name.'_surname'})) $this->value_surname = $model->{$this->name.'_surname'};
52
+        if (isset($model->{$this->name.'_first'})) {
53
+            $this->value_first = $model->{$this->name.'_first'};
54
+        }
55
+        if (isset($model->{$this->name.'_surname'})) {
56
+            $this->value_surname = $model->{$this->name.'_surname'};
57
+        }
50 58
         $this->value = trim($this->value_first.' '.$this->value_surname);
51 59
     }
52 60
 
Please login to merge, or discard this patch.
src/Fields/ParagraphText/ParagraphText.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
 
32 32
     public function setValueFromModel($model)
33 33
     {
34
-        if (isset($model->{$this->name})) $this->value = $model->{$this->name};
34
+        if (isset($model->{$this->name})) {
35
+            $this->value = $model->{$this->name};
36
+        }
35 37
     }
36 38
 
37 39
     public function setValueFromRequest($request)
Please login to merge, or discard this patch.
src/Fields/Dropdown/Dropdown.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,9 @@
 block discarded – undo
51 51
 
52 52
     public function setValueFromModel($model)
53 53
     {
54
-        if (isset($model->{$this->name})) $this->value = $model->{$this->name};
54
+        if (isset($model->{$this->name})) {
55
+            $this->value = $model->{$this->name};
56
+        }
55 57
     }   
56 58
 
57 59
     public function setValueFromRequest($request)
Please login to merge, or discard this patch.
src/Fields/Text/Text.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@
 block discarded – undo
41 41
 
42 42
     public function setValueFromModel($model)
43 43
     {
44
-        if (isset($model->{$this->name})) $this->value = $model->{$this->name};
44
+        if (isset($model->{$this->name})) {
45
+            $this->value = $model->{$this->name};
46
+        }
45 47
     }
46 48
 
47 49
     public function setValueFromRequest($request)
Please login to merge, or discard this patch.