@@ -29,12 +29,12 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function handle($request, Closure $next) |
| 31 | 31 | { |
| 32 | - if(ConfigHelper::getNestedParam(ConfigInterface::JWT, ConfigInterface::ENABLED) === true) { |
|
| 33 | - if(empty($request->jwt)) { |
|
| 32 | + if (ConfigHelper::getNestedParam(ConfigInterface::JWT, ConfigInterface::ENABLED) === true) { |
|
| 33 | + if (empty($request->jwt)) { |
|
| 34 | 34 | die('JWT token required.'); |
| 35 | 35 | } |
| 36 | 36 | $token = (new Parser())->parse((string)$request->jwt); |
| 37 | - if(Jwt::verify($token, $token->getHeader('jti')) === false) { |
|
| 37 | + if (Jwt::verify($token, $token->getHeader('jti')) === false) { |
|
| 38 | 38 | header('HTTP/1.1 403 Forbidden'); |
| 39 | 39 | die('Access forbidden.'); |
| 40 | 40 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class CustomSql |
| 13 | 13 | { |
| 14 | - private $entity = []; |
|
| 14 | + private $entity = []; |
|
| 15 | 15 | private $isEnabled; |
| 16 | 16 | |
| 17 | 17 | /** |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | class BitMask |
| 13 | 13 | { |
| 14 | - private $entity = []; |
|
| 14 | + private $entity = []; |
|
| 15 | 15 | private $field; |
| 16 | 16 | private $isEnabled; |
| 17 | 17 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function getFlags() |
| 50 | 50 | { |
| 51 | - if(empty($this->entity[$this->field][ConfigInterface::FLAGS])) { |
|
| 51 | + if (empty($this->entity[$this->field][ConfigInterface::FLAGS])) { |
|
| 52 | 52 | throw new AttributesException(ErrorsInterface::JSON_API_ERRORS[ErrorsInterface::HTTP_CODE_FSM_FLAGS], ErrorsInterface::HTTP_CODE_FSM_FLAGS); |
| 53 | 53 | } |
| 54 | 54 | return $this->entity[$this->field][ConfigInterface::FLAGS]; |