@@ -152,10 +152,10 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | $getter = 'get'.ucfirst($key); |
| 155 | - if (is_callable([ $this, $getter])) { |
|
| 155 | + if (is_callable([$this, $getter])) { |
|
| 156 | 156 | $value = $this->{$getter}(); |
| 157 | 157 | } |
| 158 | - else if (is_callable([ $this, $key ])) { |
|
| 158 | + else if (is_callable([$this, $key])) { |
|
| 159 | 159 | $value = $this->{$key}(); |
| 160 | 160 | } else { |
| 161 | 161 | if (!isset($this->{$key})) { |
@@ -197,9 +197,9 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | $getter = 'get'.ucfirst($key); |
| 200 | - if (is_callable([ $this, $getter])) { |
|
| 200 | + if (is_callable([$this, $getter])) { |
|
| 201 | 201 | return $this->{$getter}(); |
| 202 | - } elseif (is_callable([ $this, $key ])) { |
|
| 202 | + } elseif (is_callable([$this, $key])) { |
|
| 203 | 203 | return $this->{$key}(); |
| 204 | 204 | } else { |
| 205 | 205 | if (isset($this->{$key})) { |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | $setter = 'set'.ucfirst($key); |
| 244 | - if (is_callable([ $this, $setter ])) { |
|
| 244 | + if (is_callable([$this, $setter])) { |
|
| 245 | 245 | $this->{$setter}($value); |
| 246 | 246 | } else { |
| 247 | 247 | $this->{$key} = $value; |
@@ -154,8 +154,7 @@ |
||
| 154 | 154 | $getter = 'get'.ucfirst($key); |
| 155 | 155 | if (is_callable([ $this, $getter])) { |
| 156 | 156 | $value = $this->{$getter}(); |
| 157 | - } |
|
| 158 | - else if (is_callable([ $this, $key ])) { |
|
| 157 | + } else if (is_callable([ $this, $key ])) { |
|
| 159 | 158 | $value = $this->{$key}(); |
| 160 | 159 | } else { |
| 161 | 160 | if (!isset($this->{$key})) { |