Passed
Push — main ( de2a56...68c1df )
by Dimitri
03:35
created
src/Initializer/kint.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Helpers/date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/Helpers/number.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  *
15 15
  * @credit	<a href="https://codeigniter.com">CodeIgniter 4.2 - number_helper</a>
16 16
  */
17
-if (! function_exists('number_to_size')) {
17
+if (!function_exists('number_to_size')) {
18 18
     /**
19 19
      * Formats a numbers as bytes, based on size, and adds the appropriate suffix
20 20
      *
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         // ignore sub part
36 36
         $generalLocale = $locale;
37
-        if (! empty($locale) && ($underscorePos = strpos($locale, '_'))) {
37
+        if (!empty($locale) && ($underscorePos = strpos($locale, '_'))) {
38 38
             $generalLocale = substr($locale, 0, $underscorePos);
39 39
         }
40 40
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
 }
60 60
 
61
-if (! function_exists('number_to_amount')) {
61
+if (!function_exists('number_to_amount')) {
62 62
     /**
63 63
      * Converts numbers to a more readable representation
64 64
      * when dealing with very large numbers (in the thousands or above),
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         // ignore sub part
89 89
         $generalLocale = $locale;
90
-        if (! empty($locale) && ($underscorePos = strpos($locale, '_'))) {
90
+        if (!empty($locale) && ($underscorePos = strpos($locale, '_'))) {
91 91
             $generalLocale = substr($locale, 0, $underscorePos);
92 92
         }
93 93
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     }
113 113
 }
114 114
 
115
-if (! function_exists('number_to_currency')) {
115
+if (!function_exists('number_to_currency')) {
116 116
     function number_to_currency(float $num, string $currency, ?string $locale = null, int $fraction = 0): string
117 117
     {
118 118
         return format_number($num, 1, $locale, [
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 }
125 125
 
126
-if (! function_exists('format_number')) {
126
+if (!function_exists('format_number')) {
127 127
     /**
128 128
      * A general purpose, locale-aware, number_format method.
129 129
      * Used by all of the functions of the number_helper.
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     }
173 173
 }
174 174
 
175
-if (! function_exists('number_to_roman')) {
175
+if (!function_exists('number_to_roman')) {
176 176
     /**
177 177
      * Convert a number to a roman numeral.
178 178
      *
Please login to merge, or discard this patch.
src/Cli/Commands/Cache/Clear.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Cli/Commands/Cache/Info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/View/Adapters/SmartyAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $this->renderVars['file'] = $this->getRenderedFile($options, $this->renderVars['view'], 'tpl');
62 62
 
63 63
         $layout = $this->layout;
64
-        if (! empty($layout)) {
64
+        if (!empty($layout)) {
65 65
             if (empty(pathinfo($layout, PATHINFO_EXTENSION))) {
66 66
                 $layout .= '.tpl';
67 67
             }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->engine->assign($this->data);
72 72
 
73 73
         // Doit-on mettre en cache?
74
-        if (! empty($this->renderVars['options']['cache_name']) || ! empty($this->renderVars['options']['cache'])) {
74
+        if (!empty($this->renderVars['options']['cache_name']) || !empty($this->renderVars['options']['cache'])) {
75 75
             $this->enableCache();
76 76
             $this->engine->setCacheLifetime(60 * $this->renderVars['options']['cache'] ?? 60);
77 77
             $this->engine->setCompileId($this->renderVars['options']['cache_name'] ?? null);
Please login to merge, or discard this patch.
src/Cli/Console/Command.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     final protected function success(string $message, bool $badge = true, string $label = 'SUCCESS'): self
308 308
     {
309
-        if (! $badge) {
309
+        if (!$badge) {
310 310
             $this->writer->okBold($label);
311 311
         } else {
312 312
             $this->writer->boldWhiteBgGreen(" {$label} ");
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      */
321 321
     final protected function warning(string $message, bool $badge = true, string $label = 'WARNING'): self
322 322
     {
323
-        if (! $badge) {
323
+        if (!$badge) {
324 324
             $this->writer->warnBold($label);
325 325
         } else {
326 326
             $this->writer->boldWhiteBgYellow(" {$label} ");
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      */
335 335
     final protected function info(string $message, bool $badge = true, string $label = 'INFO'): self
336 336
     {
337
-        if (! $badge) {
337
+        if (!$badge) {
338 338
             $this->writer->infoBold($label);
339 339
         } else {
340 340
             $this->writer->boldWhiteBgCyan(" {$label} ");
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      */
349 349
     final protected function error(string $message, bool $badge = true, string $label = 'ERROR'): self
350 350
     {
351
-        if (! $badge) {
351
+        if (!$badge) {
352 352
             $this->writer->errorBold($label);
353 353
         } else {
354 354
             $this->writer->boldWhiteBgRed(" {$label} ");
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      */
454 454
     final protected function json($data): self
455 455
     {
456
-        $this->write(json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), true);
456
+        $this->write(json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), true);
457 457
 
458 458
         return $this;
459 459
     }
Please login to merge, or discard this patch.
src/Http/Middleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function add($middlewares, array $options = []): self
67 67
     {
68
-        if (! is_array($middlewares)) {
68
+        if (!is_array($middlewares)) {
69 69
             $middlewares = [$middlewares];
70 70
         }
71 71
 
Please login to merge, or discard this patch.
src/Http/Concerns/InteractsWithContentTypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.