@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function format($data) |
| 27 | 27 | { |
| 28 | - if (! is_array($data)) { |
|
| 28 | + if (!is_array($data)) { |
|
| 29 | 29 | $data = (array) $data; |
| 30 | 30 | } |
| 31 | 31 | |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | */ |
| 109 | 109 | public function timelineData(): array |
| 110 | 110 | { |
| 111 | - if (! $this->hasTimeline) { |
|
| 111 | + if (!$this->hasTimeline) { |
|
| 112 | 112 | return []; |
| 113 | 113 | } |
| 114 | 114 | |
@@ -84,14 +84,14 @@ |
||
| 84 | 84 | $command = is_string($command) ? $command : 'command:name'; |
| 85 | 85 | $type = is_string($type) ? $type : 'basic'; |
| 86 | 86 | |
| 87 | - if (! in_array($type, ['basic', 'generator'], true)) { |
|
| 87 | + if (!in_array($type, ['basic', 'generator'], true)) { |
|
| 88 | 88 | // @codeCoverageIgnoreStart |
| 89 | 89 | $type = $this->choice(lang('CLI.generator.commandType'), ['basic', 'generator'], 'basic'); |
| 90 | 90 | $this->eol(); |
| 91 | 91 | // @codeCoverageIgnoreEnd |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - if (! is_string($group)) { |
|
| 94 | + if (!is_string($group)) { |
|
| 95 | 95 | $group = $type === 'generator' ? 'Generators' : 'BlitzPHP'; |
| 96 | 96 | } |
| 97 | 97 | |
@@ -152,19 +152,19 @@ |
||
| 152 | 152 | */ |
| 153 | 153 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
| 154 | 154 | { |
| 155 | - if (! in_array($request->getMethod(), $this->methods, true)) { |
|
| 155 | + if (!in_array($request->getMethod(), $this->methods, true)) { |
|
| 156 | 156 | return $handler->handle($request); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | [$type] = explode(';', $request->getHeaderLine('Content-Type')); |
| 160 | 160 | $type = strtolower($type); |
| 161 | - if (! isset($this->parsers[$type])) { |
|
| 161 | + if (!isset($this->parsers[$type])) { |
|
| 162 | 162 | return $handler->handle($request); |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | $parser = $this->parsers[$type]; |
| 166 | 166 | $result = $parser($request->getBody()->getContents()); |
| 167 | - if (! is_array($result)) { |
|
| 167 | + if (!is_array($result)) { |
|
| 168 | 168 | throw HttpException::badRequest(); |
| 169 | 169 | } |
| 170 | 170 | $request = $request->withParsedBody($result); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | Kint::$display_called_from = $config->display_called_from; |
| 20 | 20 | Kint::$expanded = $config->expanded; |
| 21 | 21 | |
| 22 | -if (! empty($config->plugins)) { |
|
| 22 | +if (!empty($config->plugins)) { |
|
| 23 | 23 | Kint::$plugins = $config->plugins; |
| 24 | 24 | } |
| 25 | 25 | |
@@ -27,10 +27,10 @@ discard block |
||
| 27 | 27 | RichRenderer::$folder = $config->rich_folder; |
| 28 | 28 | RichRenderer::$sort = $config->rich_sort; |
| 29 | 29 | |
| 30 | -if (! empty($config->rich_value_plugins)) { |
|
| 30 | +if (!empty($config->rich_value_plugins)) { |
|
| 31 | 31 | RichRenderer::$value_plugins = $config->rich_value_plugins; |
| 32 | 32 | } |
| 33 | -if (! empty($config->rich_tab_plugins)) { |
|
| 33 | +if (!empty($config->rich_tab_plugins)) { |
|
| 34 | 34 | RichRenderer::$tab_plugins = $config->rich_tab_plugins; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * |
| 17 | 17 | * @credit <a href="https://codeigniter.com">CodeIgniter 4.2 - date_helper</a> |
| 18 | 18 | */ |
| 19 | -if (! function_exists('now')) { |
|
| 19 | +if (!function_exists('now')) { |
|
| 20 | 20 | /** |
| 21 | 21 | * Get "now" time |
| 22 | 22 | * |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | -if (! function_exists('timezone_select')) { |
|
| 56 | +if (!function_exists('timezone_select')) { |
|
| 57 | 57 | /** |
| 58 | 58 | * Generates a select field of all available timezones |
| 59 | 59 | * |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $config = config('cache'); |
| 55 | 55 | $handler = $this->argument('driver', $config['handler']); |
| 56 | 56 | |
| 57 | - if (! array_key_exists($handler, $config['valid_handlers'])) { |
|
| 57 | + if (!array_key_exists($handler, $config['valid_handlers'])) { |
|
| 58 | 58 | $this->fail($handler . 'n\'est pas un gestionnaire de cache valide.'); |
| 59 | 59 | |
| 60 | 60 | return; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $config['handler'] = $handler; |
| 64 | 64 | $cache = Services::cache($config); |
| 65 | 65 | |
| 66 | - if (! $cache->clear()) { |
|
| 66 | + if (!$cache->clear()) { |
|
| 67 | 67 | // @codeCoverageIgnoreStart |
| 68 | 68 | $this->fail('Erreur lors de l\'effacement du cache.'); |
| 69 | 69 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | 'nom' => $key, |
| 70 | 70 | 'chemin du serveur' => clean_path($field['server_path']), |
| 71 | 71 | 'taille' => number_to_size($field['size']), |
| 72 | - 'date' => $field['date'], // @todo formatter avec Utilities\Date |
|
| 72 | + 'date' => $field['date'], // @todo formatter avec Utilities\Date |
|
| 73 | 73 | ]; |
| 74 | 74 | } |
| 75 | 75 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function expectsJson(): bool |
| 33 | 33 | { |
| 34 | - return ($this->ajax() && ! $this->pjax() && $this->acceptsAnyContentType()) || $this->wantsJson(); |
|
| 34 | + return ($this->ajax() && !$this->pjax() && $this->acceptsAnyContentType()) || $this->wantsJson(); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |