@@ -158,7 +158,7 @@ |
||
| 158 | 158 | */ |
| 159 | 159 | public function fetchData(): ?array |
| 160 | 160 | { |
| 161 | - return isset($this->fetchedPayload->data) ? (array)$this->fetchedPayload->data : null; |
|
| 161 | + return isset($this->fetchedPayload->data) ? (array) $this->fetchedPayload->data : null; |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
@@ -82,9 +82,9 @@ |
||
| 82 | 82 | if (!empty($value)) { |
| 83 | 83 | $captcha = CaptchaFactory::get(); |
| 84 | 84 | |
| 85 | - if (!$captcha->verify($value)){ |
|
| 85 | + if (!$captcha->verify($value)) { |
|
| 86 | 86 | $errorCode = $captcha->getErrorMessage(); |
| 87 | - $this->addError($field, 'captcha.'.$errorCode, $param); |
|
| 87 | + $this->addError($field, 'captcha.' . $errorCode, $param); |
|
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | } |
@@ -27,7 +27,9 @@ |
||
| 27 | 27 | use Quantum\Exceptions\BaseException; |
| 28 | 28 | use ReflectionException; |
| 29 | 29 | |
| 30 | -if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR); |
|
| 30 | +if (!defined('DS')) { |
|
| 31 | + define('DS', DIRECTORY_SEPARATOR); |
|
| 32 | +} |
|
| 31 | 33 | |
| 32 | 34 | /** |
| 33 | 35 | * Class ConsoleAppAdapter |
@@ -44,7 +44,9 @@ |
||
| 44 | 44 | use ReflectionException; |
| 45 | 45 | use Quantum\Di\Di; |
| 46 | 46 | |
| 47 | -if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR); |
|
| 47 | +if (!defined('DS')) { |
|
| 48 | + define('DS', DIRECTORY_SEPARATOR); |
|
| 49 | +} |
|
| 48 | 50 | |
| 49 | 51 | /** |
| 50 | 52 | * Class WebAppAdapter |