@@ -31,7 +31,9 @@ |
||
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) |
@@ -31,7 +31,9 @@ |
||
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) |
@@ -41,7 +41,9 @@ |
||
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) |
@@ -38,15 +38,23 @@ |
||
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 |
@@ -31,7 +31,9 @@ |
||
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) |
@@ -51,7 +51,9 @@ |
||
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) |
@@ -41,7 +41,9 @@ |
||
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) |