@@ -178,7 +178,7 @@ |
||
| 178 | 178 | */ |
| 179 | 179 | private function getUserFromAccessToken(): ?User |
| 180 | 180 | { |
| 181 | - $accessToken = base64_decode((string)Request::getAuthorizationBearer()); |
|
| 181 | + $accessToken = base64_decode((string) Request::getAuthorizationBearer()); |
|
| 182 | 182 | return (new User())->setData($this->jwt->retrieve($accessToken)->fetchData()); |
| 183 | 183 | } |
| 184 | 184 | |
@@ -273,8 +273,8 @@ |
||
| 273 | 273 | return false; |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | - if(isset($message->error)) { |
|
| 277 | - $error = (array)$message->error; |
|
| 276 | + if (isset($message->error)) { |
|
| 277 | + $error = (array) $message->error; |
|
| 278 | 278 | |
| 279 | 279 | if (!isset($error['.tag']) && !in_array($error['.tag'], self::ACCESS_TOKEN_STATUS)) { |
| 280 | 280 | return false; |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | */ |
| 138 | 138 | public function lastPageNumber(): int |
| 139 | 139 | { |
| 140 | - return (int)ceil($this->total() / $this->perPage); |
|
| 140 | + return (int) ceil($this->total() / $this->perPage); |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function select(...$columns): DbalInterface |
| 33 | 33 | { |
| 34 | - array_walk($columns, function (&$column) { |
|
| 34 | + array_walk($columns, function(&$column) { |
|
| 35 | 35 | if (is_array($column)) { |
| 36 | 36 | $column = array_flip($column); |
| 37 | 37 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | */ |
| 80 | 80 | public function data(): array |
| 81 | 81 | { |
| 82 | - return array_map(function ($element) { |
|
| 82 | + return array_map(function($element) { |
|
| 83 | 83 | $item = clone $this->dbal; |
| 84 | 84 | $item->setData($element); |
| 85 | 85 | $item->setModifiedFields($element); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function select(...$columns): DbalInterface |
| 33 | 33 | { |
| 34 | - array_walk($columns, function (&$column) { |
|
| 34 | + array_walk($columns, function(&$column) { |
|
| 35 | 35 | if (is_array($column)) { |
| 36 | 36 | $column = array_flip($column); |
| 37 | 37 | } |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $switch = $nextItem['switch']; |
| 84 | 84 | $joinType = $nextItem['type']; |
| 85 | 85 | |
| 86 | - $queryBuilder->join(function ($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) { |
|
| 86 | + $queryBuilder->join(function($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) { |
|
| 87 | 87 | |
| 88 | 88 | $newQueryBuilder = (new self($modelToJoin->table))->getOrmModel()->createQueryBuilder(); |
| 89 | 89 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function get(): array |
| 42 | 42 | { |
| 43 | - return array_map(function ($element) { |
|
| 43 | + return array_map(function($element) { |
|
| 44 | 44 | $item = clone $this; |
| 45 | 45 | $item->data = $element; |
| 46 | 46 | $item->modifiedFields = $element; |
@@ -332,6 +332,6 @@ |
||
| 332 | 332 | */ |
| 333 | 333 | private function columnKey(): int |
| 334 | 334 | { |
| 335 | - return (int)array_key_last($this->columns); |
|
| 335 | + return (int) array_key_last($this->columns); |
|
| 336 | 336 | } |
| 337 | 337 | } |
| 338 | 338 | \ No newline at end of file |