Passed
Push — main ( d71b68...a743f7 )
by Dimitri
08:12 queued 04:09
created
src/Mail/Mailable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Loader/Load.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Router/RouteBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
269 269
      */
270 270
     private function attribute(string $key, $value): self
271 271
     {
272
-        if (! in_array($key, $this->allowedAttributes, true)) {
272
+        if (!in_array($key, $this->allowedAttributes, true)) {
273 273
             throw new InvalidArgumentException("L'attribute [{$key}] n'existe pas.");
274 274
         }
275 275
 
Please login to merge, or discard this patch.
src/Cli/Commands/Generators/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
             } elseif ($rest) {
98 98
                 $rest = is_string($rest) ? $rest : 'controller';
99 99
 
100
-                if (! in_array($rest, ['controller', 'presenter'], true)) {
100
+                if (!in_array($rest, ['controller', 'presenter'], true)) {
101 101
                     // @codeCoverageIgnoreStart
102 102
                     $rest = $this->choice(lang('CLI.generator.parentClass'), ['controller', 'presenter']);
103 103
                     $this->newLine();
Please login to merge, or discard this patch.
src/Cli/Commands/Routes/AutoRouteCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             $i = 1;
126 126
 
127 127
             foreach ($route['params'] as $required) {
128
-                if ($longest && ! $required) {
128
+                if ($longest && !$required) {
129 129
                     $sampleUri .= '/' . $i++;
130 130
                 }
131 131
             }
Please login to merge, or discard this patch.
src/Cli/Commands/Utilities/Environment.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
             return;
75 75
         }
76 76
 
77
-        if (! in_array($env, self::$knownTypes, true)) {
77
+        if (!in_array($env, self::$knownTypes, true)) {
78 78
             $this->error(sprintf('Type d\'environnement non valide "%s". Attendu un des "%s".', $env, implode('" et "', self::$knownTypes)));
79 79
             $this->newLine();
80 80
 
81 81
             return;
82 82
         }
83 83
 
84
-        if (! $this->writeNewEnvironmentToEnvFile($env)) {
84
+        if (!$this->writeNewEnvironmentToEnvFile($env)) {
85 85
             $this->error('Erreur dans l\'écriture nouvel environnement dans le fichier `.env`.');
86 86
             $this->newLine();
87 87
 
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
         $baseEnv = ROOTPATH . '.env.example';
102 102
         $envFile = ROOTPATH . '.env';
103 103
 
104
-        if (! is_file($envFile)) {
105
-            if (! is_file($baseEnv)) {
104
+        if (!is_file($envFile)) {
105
+            if (!is_file($baseEnv)) {
106 106
                 $this->writer->warn('Les deux fichiers `.env.example` et `.env` sont manquants.', true);
107 107
                 $this->write('Il est impossible d\'écrire le nouveau type d\'environnement.');
108 108
                 $this->newLine();
Please login to merge, or discard this patch.
src/Constants/constants.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -107,35 +107,35 @@  discard block
 block discarded – undo
107 107
  */
108 108
 defined('LAYOUT_PATH') || define('LAYOUT_PATH', VIEW_PATH . 'layouts' . DS);
109 109
 
110
-if (! defined('SERVICE_PATH')) {
110
+if (!defined('SERVICE_PATH')) {
111 111
     /**
112 112
      * Services directory path
113 113
      */
114 114
     define('SERVICE_PATH', APP_PATH . 'services' . DS);
115 115
 }
116 116
 
117
-if (! defined('DATABASE_PATH')) {
117
+if (!defined('DATABASE_PATH')) {
118 118
     /**
119 119
      * Database storage directory path
120 120
      */
121 121
     define('DATABASE_PATH', STORAGE_PATH . 'database' . DS);
122 122
 }
123 123
 
124
-if (! defined('DB_SEED_PATH')) {
124
+if (!defined('DB_SEED_PATH')) {
125 125
     /**
126 126
      * Database seeds storage path
127 127
      */
128 128
     define('DB_SEED_PATH', APP_RESOURCE_PATH . 'database' . DS . 'seeds' . DS);
129 129
 }
130 130
 
131
-if (! defined('DB_DUMP_PATH')) {
131
+if (!defined('DB_DUMP_PATH')) {
132 132
     /**
133 133
      * Database backup storage path
134 134
      */
135 135
     define('DB_DUMP_PATH', DATABASE_PATH . 'dump' . DS);
136 136
 }
137 137
 
138
-if (! defined('DB_CACHE_PATH')) {
138
+if (!defined('DB_CACHE_PATH')) {
139 139
     /**
140 140
      * Database cache directory path
141 141
      */
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
  */
158 158
 defined('SECOND') || define('SECOND', 1);
159 159
 defined('MINUTE') || define('MINUTE', 60);
160
-defined('HOUR')   || define('HOUR', 3600);
161
-defined('DAY')    || define('DAY', 86400);
162
-defined('WEEK')   || define('WEEK', 604800);
163
-defined('MONTH')  || define('MONTH', 2592000);
164
-defined('YEAR')   || define('YEAR', 31536000);
160
+defined('HOUR') || define('HOUR', 3600);
161
+defined('DAY') || define('DAY', 86400);
162
+defined('WEEK') || define('WEEK', 604800);
163
+defined('MONTH') || define('MONTH', 2592000);
164
+defined('YEAR') || define('YEAR', 31536000);
165 165
 defined('DECADE') || define('DECADE', 315360000);
166 166
 
167 167
 /**
@@ -182,13 +182,13 @@  discard block
 block discarded – undo
182 182
  * - BSD sysexits.h: http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
183 183
  * - Bash scripting: http://tldp.org/LDP/abs/html/exitcodes.html
184 184
  */
185
-defined('EXIT_SUCCESS')        || define('EXIT_SUCCESS', 0); // pas d'erreurs
186
-defined('EXIT_ERROR')          || define('EXIT_ERROR', 1); // erreur generique
187
-defined('EXIT_CONFIG')         || define('EXIT_CONFIG', 3); // erreur de configuration
188
-defined('EXIT_UNKNOWN_FILE')   || define('EXIT_UNKNOWN_FILE', 4); // fichier non trouvé
189
-defined('EXIT_UNKNOWN_CLASS')  || define('EXIT_UNKNOWN_CLASS', 5); // classe inconnue
185
+defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // pas d'erreurs
186
+defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // erreur generique
187
+defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // erreur de configuration
188
+defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // fichier non trouvé
189
+defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // classe inconnue
190 190
 defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // membre de classe inconnu
191
-defined('EXIT_USER_INPUT')     || define('EXIT_USER_INPUT', 7); // saisie utilisateur invalide
192
-defined('EXIT_DATABASE')       || define('EXIT_DATABASE', 8); // erreur de base de données
193
-defined('EXIT__AUTO_MIN')      || define('EXIT__AUTO_MIN', 9); // code d'erreur attribué automatiquement le plus bas
194
-defined('EXIT__AUTO_MAX')      || define('EXIT__AUTO_MAX', 125); // code d'erreur attribué automatiquement le plus élevé
191
+defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // saisie utilisateur invalide
192
+defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // erreur de base de données
193
+defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // code d'erreur attribué automatiquement le plus bas
194
+defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // code d'erreur attribué automatiquement le plus élevé
Please login to merge, or discard this patch.
src/Helpers/kint.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 // Ce helper est automatiquement chargé par BlitzPHP.
15 15
 
16
-if (! function_exists('dd')) {
16
+if (!function_exists('dd')) {
17 17
     /**
18 18
      * Imprime un rapport de débogage Kint et coupe le script.
19 19
      *
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     }
33 33
 }
34 34
 
35
-if (! function_exists('dump')) {
35
+if (!function_exists('dump')) {
36 36
     /**
37 37
      * Imprime un rapport de débogage Kint sans couper le script.
38 38
      *
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     }
50 50
 }
51 51
 
52
-if (! function_exists('d') && ! class_exists(Kint::class)) {
52
+if (!function_exists('d') && !class_exists(Kint::class)) {
53 53
     // Au cas où Kint n'est pas chargé
54 54
     /**
55 55
      * @param array $vars
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     }
61 61
 }
62 62
 
63
-if (! function_exists('trace')) {
63
+if (!function_exists('trace')) {
64 64
     /**
65 65
      * Fournit un backtrace au point d'exécution actuel, à partir de Kint.
66 66
      *
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     function trace()
72 72
     {
73
-        if (! class_exists(Kint::class)) {
73
+        if (!class_exists(Kint::class)) {
74 74
             return 0;
75 75
         }
76 76
 
Please login to merge, or discard this patch.
src/Debug/Toolbar/Views/toolbar.tpl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         </span>
43 43
 
44 44
         <?php foreach ($collectors as $c) : ?>
45
-            <?php if (! $c['isEmpty'] && ($c['hasTabContent'] || $c['hasLabel'])) : ?>
45
+            <?php if (!$c['isEmpty'] && ($c['hasTabContent'] || $c['hasLabel'])) : ?>
46 46
                 <span class="blitzphp-label">
47 47
                     <a href="javascript: void(0)" data-tab="blitzphp-<?= $c['key'] ?>">
48 48
                         <img src="<?= $c['icon'] ?>">
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     <!-- Collector-provided Tabs -->
104 104
     <?php foreach ($collectors as $c) : ?>
105
-        <?php if (! $c['isEmpty']) : ?>
105
+        <?php if (!$c['isEmpty']) : ?>
106 106
             <?php if ($c['hasTabContent']) : ?>
107 107
                 <div id="blitzphp-<?= $c['key'] ?>" class="tab">
108 108
                     <h2><?= $c['title'] ?> <span><?= $c['titleDetails'] ?></span></h2>
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         </a>
150 150
 
151 151
         <?php if (isset($vars['session'])) : ?>
152
-            <?php if (! empty($vars['session'])) : ?>
152
+            <?php if (!empty($vars['session'])) : ?>
153 153
                 <table id="session_table">
154 154
                     <tbody>
155 155
                     <?php foreach ($vars['session'] as $key => $value) : ?>
Please login to merge, or discard this patch.