@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | return false; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - if (is_callable([ $this, $key ])) { |
|
| 154 | + if (is_callable([$this, $key])) { |
|
| 155 | 155 | $value = $this->{$key}(); |
| 156 | 156 | } else { |
| 157 | 157 | if (!isset($this->{$key})) { |
@@ -193,9 +193,9 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | $getter = 'get'.ucfirst($key); |
| 196 | - if (is_callable([ $this, $getter])) { |
|
| 196 | + if (is_callable([$this, $getter])) { |
|
| 197 | 197 | return $this->{$getter}(); |
| 198 | - } elseif (is_callable([ $this, $key ])) { |
|
| 198 | + } elseif (is_callable([$this, $key])) { |
|
| 199 | 199 | return $this->{$key}(); |
| 200 | 200 | } else { |
| 201 | 201 | if (isset($this->{$key})) { |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | $setter = 'set'.ucfirst($key); |
| 240 | - if (is_callable([ $this, $setter ])) { |
|
| 240 | + if (is_callable([$this, $setter])) { |
|
| 241 | 241 | $this->{$setter}($value); |
| 242 | 242 | } else { |
| 243 | 243 | $this->{$key} = $value; |