@@ -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 | |
@@ -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 | * |
@@ -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 | /** |
@@ -40,11 +40,11 @@ |
||
| 40 | 40 | if (empty($dependency['class']) || empty($dependency['package'])) { |
| 41 | 41 | throw new InvalidArgumentException('Invalid dependencies property'); |
| 42 | 42 | } |
| 43 | - if (! is_string($dependency['class']) || ! is_string($dependency['package'])) { |
|
| 43 | + if (!is_string($dependency['class']) || !is_string($dependency['package'])) { |
|
| 44 | 44 | throw new InvalidArgumentException('Invalid dependencies property'); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if (! class_exists($dependency['class'])) { |
|
| 47 | + if (!class_exists($dependency['class'])) { |
|
| 48 | 48 | throw new RuntimeException(lang('Mail.dependancyNotFound', [$dependency['class'], static::class, $dependency['package']])); |
| 49 | 49 | } |
| 50 | 50 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | public function send(Mail $mail): bool |
| 174 | 174 | { |
| 175 | 175 | foreach ($this->bcc() as $key => $value) { |
| 176 | - if (empty($value) || ! is_string($value)) { |
|
| 176 | + if (empty($value) || !is_string($value)) { |
|
| 177 | 177 | continue; |
| 178 | 178 | } |
| 179 | 179 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | foreach ($this->cc() as $key => $value) { |
| 188 | - if (empty($value) || ! is_string($value)) { |
|
| 188 | + if (empty($value) || !is_string($value)) { |
|
| 189 | 189 | continue; |
| 190 | 190 | } |
| 191 | 191 | |
@@ -198,12 +198,12 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | $content = $this->content(); |
| 200 | 200 | |
| 201 | - if (! empty($content['view'])) { |
|
| 201 | + if (!empty($content['view'])) { |
|
| 202 | 202 | $mail->view($content['view'], $this->data()); |
| 203 | - } elseif (! empty($content['html'])) { |
|
| 203 | + } elseif (!empty($content['html'])) { |
|
| 204 | 204 | $mail->html($content['html']); |
| 205 | 205 | } |
| 206 | - if (! empty($content['text'])) { |
|
| 206 | + if (!empty($content['text'])) { |
|
| 207 | 207 | $mail->text($content['text']); |
| 208 | 208 | } |
| 209 | 209 | |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $mail->priority($this->priority()); |
| 213 | 213 | |
| 214 | 214 | foreach ($this->replyTo() as $key => $value) { |
| 215 | - if (empty($value) || ! is_string($value)) { |
|
| 215 | + if (empty($value) || !is_string($value)) { |
|
| 216 | 216 | continue; |
| 217 | 217 | } |
| 218 | 218 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | return $models; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - if (! self::isLoaded('models', $model)) { |
|
| 76 | + if (!self::isLoaded('models', $model)) { |
|
| 77 | 77 | self::loaded('models', $model, FileLocator::model($model, $connection)); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | private static function isLoaded(string $module, $element): bool |
| 89 | 89 | { |
| 90 | - if (! isset(self::$loads[$module]) || ! is_array(self::$loads[$module])) { |
|
| 90 | + if (!isset(self::$loads[$module]) || !is_array(self::$loads[$module])) { |
|
| 91 | 91 | return false; |
| 92 | 92 | } |
| 93 | 93 | |