@@ -80,7 +80,7 @@ |
||
| 80 | 80 | if ($authAdapter == 'api') { |
| 81 | 81 | $jwt = (new JWToken()) |
| 82 | 82 | ->setLeeway(1) |
| 83 | - ->setClaims((array)config()->get('auth.claims')); |
|
| 83 | + ->setClaims((array) config()->get('auth.claims')); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | $authAdapterClassName = __NAMESPACE__ . '\\Adapters\\' . ucfirst($authAdapter) . 'Adapter'; |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | return []; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | - return (array)require_once $userDependencies; |
|
| 185 | + return (array) require_once $userDependencies; |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $router->findRoute(); |
| 77 | 77 | |
| 78 | 78 | if (config()->get('multilang')) { |
| 79 | - Lang::getInstance((int)config()->get(Lang::LANG_SEGMENT))->load(); |
|
| 79 | + Lang::getInstance((int) config()->get(Lang::LANG_SEGMENT))->load(); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | $debugger->addToStoreCell(Debugger::HOOKS, LogLevel::INFO, HookManager::getRegistered()); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function getHandler(): Logger |
| 42 | 42 | { |
| 43 | - if(is_debug_mode()) { |
|
| 43 | + if (is_debug_mode()) { |
|
| 44 | 44 | return LoggerFactory::createLogger(); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | { |
| 52 | 52 | $this->fs = Di::get(FileSystem::class); |
| 53 | 53 | |
| 54 | - if(!$this->fs->isDirectory( $params['path'])) { |
|
| 54 | + if (!$this->fs->isDirectory($params['path'])) { |
|
| 55 | 55 | throw LoggerException::logPathIsNotDirectory($params['path']); |
| 56 | 56 | } |
| 57 | 57 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | return []; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - return array_reduce(array_keys($data), function ($headers, $key) use ($data) { |
|
| 48 | + return array_reduce(array_keys($data), function($headers, $key) use ($data) { |
|
| 49 | 49 | if (strpos($key, 'HTTP_') === 0) { |
| 50 | 50 | $formattedKey = strtolower(str_replace('_', '-', substr($key, 5))); |
| 51 | 51 | $headers[$formattedKey] = $data[$key]; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | ]; |
| 99 | 99 | |
| 100 | 100 | if (isset($this->moduleOptions['cacheable'])) { |
| 101 | - $this->currentRoute['cache_settings']['shouldCache'] = (bool)$this->moduleOptions['cacheable']; |
|
| 101 | + $this->currentRoute['cache_settings']['shouldCache'] = (bool) $this->moduleOptions['cacheable']; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | if (is_callable($params[0])) { |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function get(string $field, ?string $value): ?User; |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * Add |
|
| 34 | - * @param array $data |
|
| 35 | - * @return User |
|
| 36 | - */ |
|
| 32 | + /** |
|
| 33 | + * Add |
|
| 34 | + * @param array $data |
|
| 35 | + * @return User |
|
| 36 | + */ |
|
| 37 | 37 | public function add(array $data): User; |
| 38 | 38 | |
| 39 | 39 | /** |