@@ -19,7 +19,9 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | public function __construct($options = null) |
| 21 | 21 | { |
| 22 | - if(!is_null($options) && !is_array($options) ) $options = [$options]; |
|
| 22 | + if(!is_null($options) && !is_array($options) ) { |
|
| 23 | + $options = [$options]; |
|
| 24 | + } |
|
| 23 | 25 | $this->options = $options; |
| 24 | 26 | } |
| 25 | 27 | |
@@ -44,7 +46,9 @@ discard block |
||
| 44 | 46 | |
| 45 | 47 | public function getErrorMessage() |
| 46 | 48 | { |
| 47 | - if (!is_null($this->errorMessage)) return str_replace("{name}", $this->data->name(), $this->errorMessage); |
|
| 49 | + if (!is_null($this->errorMessage)) { |
|
| 50 | + return str_replace("{name}", $this->data->name(), $this->errorMessage); |
|
| 51 | + } |
|
| 48 | 52 | |
| 49 | 53 | return $this->errorMessage(); |
| 50 | 54 | } |