Passed
Push — main ( 5eb528...8b73d6 )
by Dimitri
12:35
created
src/Publisher/Publisher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             // Essayez plusieurs fois en cas de mèches persistantes
128 128
             $attempts = 10;
129 129
 
130
-            while ((bool) $attempts && ! delete_files($directory, true, false, true)) {
130
+            while ((bool) $attempts && !delete_files($directory, true, false, true)) {
131 131
                 // @codeCoverageIgnoreStart
132 132
                 $attempts--;
133 133
                 usleep(100000); // .1s
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
         // Rechercher un fichier existant
468 468
         if (file_exists($to)) {
469 469
             // S'il n'est pas remplacé ou si les fichiers sont identiques, envisagez de réussir
470
-            if (! $replace || same_file($from, $to)) {
470
+            if (!$replace || same_file($from, $to)) {
471 471
                 return;
472 472
             }
473 473
 
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
         }
482 482
 
483 483
         // Assurez-vous que le répertoire existe
484
-        if (! is_dir($directory = pathinfo($to, PATHINFO_DIRNAME))) {
484
+        if (!is_dir($directory = pathinfo($to, PATHINFO_DIRNAME))) {
485 485
             mkdir($directory, 0775, true);
486 486
         }
487 487
 
Please login to merge, or discard this patch.
src/Router/RouteCollection.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      */
256 256
     public function addPlaceholder($placeholder, ?string $pattern = null): self
257 257
     {
258
-        if (! is_array($placeholder)) {
258
+        if (!is_array($placeholder)) {
259 259
             $placeholder = [$placeholder => $pattern];
260 260
         }
261 261
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
             foreach ($collection as $name => $r) {
508 508
                 $key = key($r['route']);
509 509
 
510
-                if (! $withName) {
510
+                if (!$withName) {
511 511
                     $routes[$key] = $r['route'][$key];
512 512
                 } else {
513 513
                     $routes[$key] = [
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
      *
889 889
      * @param array|Closure|string $to
890 890
      */
891
-    public function match(array $verbs = [], string $from = '', $to = '', ?array $options = null): self
891
+    public function match(array $verbs = [], string $from = '', $to = '', ?array $options = null) : self
892 892
     {
893 893
         if (empty($from) || empty($to)) {
894 894
             throw new InvalidArgumentException('Vous devez fournir les paramètres : $from, $to.');
@@ -1057,7 +1057,7 @@  discard block
 block discarded – undo
1057 1057
                 $to   = $route['route'][$from];
1058 1058
 
1059 1059
                 // on ignore les closures
1060
-                if (! is_string($to)) {
1060
+                if (!is_string($to)) {
1061 1061
                     continue;
1062 1062
                 }
1063 1063
 
@@ -1146,7 +1146,7 @@  discard block
 block discarded – undo
1146 1146
 
1147 1147
         // Construisez notre chaîne résultante, en insérant les $params aux endroits appropriés.
1148 1148
         foreach ($matches[0] as $index => $pattern) {
1149
-            if (! preg_match('#^' . $pattern . '$#u', $params[$index])) {
1149
+            if (!preg_match('#^' . $pattern . '$#u', $params[$index])) {
1150 1150
                 throw RouterException::invalidParameterType();
1151 1151
             }
1152 1152
 
@@ -1224,9 +1224,9 @@  discard block
 block discarded – undo
1224 1224
         }
1225 1225
 
1226 1226
         // Limitation du nom d'hôte ?
1227
-        if (! empty($options['hostname'])) {
1227
+        if (!empty($options['hostname'])) {
1228 1228
             // @todo déterminer s'il existe un moyen de mettre les hôtes sur liste blanche ?
1229
-            if (! $this->checkHostname($options['hostname'])) {
1229
+            if (!$this->checkHostname($options['hostname'])) {
1230 1230
                 return;
1231 1231
             }
1232 1232
 
@@ -1234,10 +1234,10 @@  discard block
 block discarded – undo
1234 1234
         }
1235 1235
 
1236 1236
         // Limitation du nom sous-domaine ?
1237
-        elseif (! empty($options['subdomain'])) {
1237
+        elseif (!empty($options['subdomain'])) {
1238 1238
             // Si nous ne correspondons pas au sous-domaine actuel, alors
1239 1239
             // nous n'avons pas besoin d'ajouter la route.
1240
-            if (! $this->checkSubdomains($options['subdomain'])) {
1240
+            if (!$this->checkSubdomains($options['subdomain'])) {
1241 1241
                 return;
1242 1242
             }
1243 1243
 
@@ -1268,7 +1268,7 @@  discard block
 block discarded – undo
1268 1268
         }
1269 1269
 
1270 1270
         // S'il s'agit d'une redirection, aucun traitement
1271
-        if (! isset($options['redirect']) && is_string($to)) {
1271
+        if (!isset($options['redirect']) && is_string($to)) {
1272 1272
             // Si aucun espace de noms n'est trouvé, ajouter l'espace de noms par défaut
1273 1273
             if (strpos($to, '\\') === false || strpos($to, '\\') > 0) {
1274 1274
                 $namespace = $options['namespace'] ?? $this->defaultNamespace;
@@ -1286,7 +1286,7 @@  discard block
 block discarded – undo
1286 1286
         // les routes manuelement définies doivent toujours être la "source de vérité".
1287 1287
         // cela ne fonctionne que parce que les routes découvertes sont ajoutées juste avant
1288 1288
         // pour tenter de router la requête.
1289
-        if (isset($this->routes[$verb][$name]) && ! $overwrite) {
1289
+        if (isset($this->routes[$verb][$name]) && !$overwrite) {
1290 1290
             return;
1291 1291
         }
1292 1292
 
@@ -1310,7 +1310,7 @@  discard block
 block discarded – undo
1310 1310
     private function checkHostname(string $hostname): bool
1311 1311
     {
1312 1312
         // Les appels CLI ne peuvent pas être sur le nom d'hôte.
1313
-        if (! isset($this->httpHost) || is_cli()) {
1313
+        if (!isset($this->httpHost) || is_cli()) {
1314 1314
             return false;
1315 1315
         }
1316 1316
 
@@ -1326,7 +1326,7 @@  discard block
 block discarded – undo
1326 1326
     private function checkSubdomains($subdomains): bool
1327 1327
     {
1328 1328
         // Les appels CLI ne peuvent pas être sur le sous-domaine.
1329
-        if (! isset($_SERVER['HTTP_HOST'])) {
1329
+        if (!isset($_SERVER['HTTP_HOST'])) {
1330 1330
             return false;
1331 1331
         }
1332 1332
 
@@ -1334,13 +1334,13 @@  discard block
 block discarded – undo
1334 1334
             $this->currentSubdomain = $this->determineCurrentSubdomain();
1335 1335
         }
1336 1336
 
1337
-        if (! is_array($subdomains)) {
1337
+        if (!is_array($subdomains)) {
1338 1338
             $subdomains = [$subdomains];
1339 1339
         }
1340 1340
 
1341 1341
         // Les routes peuvent être limitées à n'importe quel sous-domaine. Dans ce cas, cependant,
1342 1342
         // il nécessite la présence d'un sous-domaine.
1343
-        if (! empty($this->currentSubdomain) && in_array('*', $subdomains, true)) {
1343
+        if (!empty($this->currentSubdomain) && in_array('*', $subdomains, true)) {
1344 1344
             return true;
1345 1345
         }
1346 1346
 
@@ -1393,7 +1393,7 @@  discard block
 block discarded – undo
1393 1393
 
1394 1394
     private function getControllerName(Closure|string $handler): ?string
1395 1395
     {
1396
-        if (! is_string($handler)) {
1396
+        if (!is_string($handler)) {
1397 1397
             return null;
1398 1398
         }
1399 1399
 
@@ -1458,7 +1458,7 @@  discard block
 block discarded – undo
1458 1458
 
1459 1459
         // Vérifier les paramètres régionaux non valides
1460 1460
         if ($locale !== null) {
1461
-            if (! in_array($locale, config('app.supported_locales'), true)) {
1461
+            if (!in_array($locale, config('app.supported_locales'), true)) {
1462 1462
                 $locale = null;
1463 1463
             }
1464 1464
         }
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/Helpers/scl.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -647,7 +647,7 @@
 block discarded – undo
647 647
     }
648 648
 
649 649
     return ($action === 'encrypt') ? base64_encode($return) : $return;
650
-      // On renvoie la chaine encrypter ou decrypter
650
+        // On renvoie la chaine encrypter ou decrypter
651 651
 }
652 652
 
653 653
 /**
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 function scl_upLoad($input, $path = '', $size = 2500000, $type = '', $output = '')
28 28
 {
29 29
     // taille par défaut
30
-    $size = (empty($size) || ! is_numeric($size)) ? 2500000 : $size;
30
+    $size = (empty($size) || !is_numeric($size)) ? 2500000 : $size;
31 31
     // Le dossier par defaut est la racine
32
-    $path = (! empty($path) && ! file_exists($path)) ? '' : htmlspecialchars($path);
32
+    $path = (!empty($path) && !file_exists($path)) ? '' : htmlspecialchars($path);
33 33
 
34
-    if (! is_array($input)) {
34
+    if (!is_array($input)) {
35 35
         return [0, 'Entrée non valide'];
36 36
     }
37 37
     if (empty($input['tmp_name']) || empty($input['name']) || empty($input['size'])) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         }
110 110
     }
111 111
 
112
-    if (! in_array(strtolower(pathinfo($input['name'])['extension']), $extensions, true)) {
112
+    if (!in_array(strtolower(pathinfo($input['name'])['extension']), $extensions, true)) {
113 113
         return [3, 'Extension non prise en charge'];
114 114
     }
115 115
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $output    = 'scl_' . date('Ymd') . '-' . date('His');
126 126
         $extension = '0.';
127 127
     } else { // Si on defini le nom de sortie...
128
-        if (! empty(explode('.', $output)[1]) && in_array(strtolower(explode('.', $output)[1]), $extensions, true)) {  // Si l'extension est presente dans ce nom et est valide...
128
+        if (!empty(explode('.', $output)[1]) && in_array(strtolower(explode('.', $output)[1]), $extensions, true)) {  // Si l'extension est presente dans ce nom et est valide...
129 129
             $out       = explode('.', $output);
130 130
             $output    = $out[0]; // On enregistre le fichier avec le nom specifié
131 131
             $extension = '1.' . $out[1]; // On enregistre le fichier avec l'extension specifié (changement d'extension)
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     // si le fichier n'a pas été téléchargé
147
-    if (! move_uploaded_file($input['tmp_name'], $path . $output . '.' . $extension)) {
147
+    if (!move_uploaded_file($input['tmp_name'], $path . $output . '.' . $extension)) {
148 148
         return [4, 'Erreur de téléversement'];
149 149
     }
150 150
 
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
 function scl_minimizeImg($src, $size = [], $relative = false)
166 166
 {
167 167
     // Si le fichier n'existe pas
168
-    if (! file_exists($src)) {
168
+    if (!file_exists($src)) {
169 169
         return [0, 'Fichier inexistant'];
170 170
     }
171 171
     // Si on n'envoi pas un tableau ou un nombre comme tailles
172
-    if (empty($size) || (! is_array($size) && ! is_int($size))) {
172
+    if (empty($size) || (!is_array($size) && !is_int($size))) {
173 173
         return [1, 'Mauvaises dimensions de redimensionnement'];
174 174
     }
175 175
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             return [2, 'Violation du nombre de dimension'];
181 181
         }
182 182
         // Si l'un des element du tableau n'est pas un nombre
183
-        if (! is_int($size[0]) || (! empty($size[1]) && ! is_int($size[1]))) {
183
+        if (!is_int($size[0]) || (!empty($size[1]) && !is_int($size[1]))) {
184 184
             return [3, 'Type de dimension inconnu'];
185 185
         }
186 186
     }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 {
259 259
     // Valeurs par défaut
260 260
     $nbr = (empty($nbr)) ? 8 : (int) $nbr;
261
-    $nbr = (! is_int($nbr)) ? 8 : (int) $nbr;
261
+    $nbr = (!is_int($nbr)) ? 8 : (int) $nbr;
262 262
     $nbr = ($nbr < 3 || $nbr > 64) ? 8 : (int) $nbr;
263 263
 
264 264
     switch ($type) {
@@ -316,12 +316,12 @@  discard block
 block discarded – undo
316 316
 function scl_date($date, $format = 'D, d M Y', $interval = true, $fuseau = 'Europe/Paris')
317 317
 {
318 318
     // Valeurs par défaut
319
-    $format   = (empty($format) || ! is_string($format)) ? 'D, d M Y' : htmlspecialchars(trim($format)); // Le format de sortie, par défaut = D, d M Y
320
-    $fuseau   = (empty($fuseau) || ! is_string($fuseau)) ? 'Europe/Paris' : htmlspecialchars(trim($fuseau)); // fuseau horaire
321
-    $interval = (! is_bool($interval)) ? true : $interval; // Specifie si on gere les intervales ou pas
319
+    $format   = (empty($format) || !is_string($format)) ? 'D, d M Y' : htmlspecialchars(trim($format)); // Le format de sortie, par défaut = D, d M Y
320
+    $fuseau   = (empty($fuseau) || !is_string($fuseau)) ? 'Europe/Paris' : htmlspecialchars(trim($fuseau)); // fuseau horaire
321
+    $interval = (!is_bool($interval)) ? true : $interval; // Specifie si on gere les intervales ou pas
322 322
     $interval = ($interval === false) ? false : true; // Specifie si on gere les intervales ou pas
323 323
 
324
-    $date = new DateTime($date);  // On contruit la date
324
+    $date = new DateTime($date); // On contruit la date
325 325
 
326 326
     // Si on ne gere pas les intervales
327 327
     if ($interval === false) {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
 function scl_hash($str, $lenght = 128, $key = '')
494 494
 {
495 495
     // Valeur par defaut
496
-    $lenght = (empty($lenght) || ! is_int($lenght)) ? 128 : $lenght;
496
+    $lenght = (empty($lenght) || !is_int($lenght)) ? 128 : $lenght;
497 497
     //    Valeurs minimale et maximale pour le haché
498 498
     $lenght = ($lenght < 50) ? 50 : $lenght;
499 499
     $lenght = ($lenght > 200) ? 200 : $lenght;
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
     // Valeur par defaut
541 541
     $action = strtolower($action);
542 542
     $action = ($action !== 'decrypt') ? 'encrypt' : 'decrypt';
543
-    $repeat = (! is_int($repeat) || $repeat < 1) ? 0 : $repeat;
543
+    $repeat = (!is_int($repeat) || $repeat < 1) ? 0 : $repeat;
544 544
 
545 545
     $chars = ''; // Les differents caractères entrés
546 546
     $size  = strlen($str);
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
         'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
568 568
         'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
569 569
     ];
570
-    $chars  = explode(' ', $chars);  // On transforme la chaine précédement créée en tableau
570
+    $chars  = explode(' ', $chars); // On transforme la chaine précédement créée en tableau
571 571
     $return = '';
572 572
 
573 573
     // On parcours tout le dit tableau (ie. on recupere les caracteres un a un)
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 {
666 666
     // Valeur par defaut
667 667
     $str  = htmlspecialchars($str); // On protege la chaine
668
-    $size = (! is_numeric($size)) ? strlen($str) : $size; // Taille à couper
668
+    $size = (!is_numeric($size)) ? strlen($str) : $size; // Taille à couper
669 669
 
670 670
     $lenght = strlen($str); // longueur de la chaine
671 671
     if ($lenght > $size) {
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
 {
699 699
     // Valeur par defaut
700 700
     $str = htmlspecialchars($str); // On protege la chaine
701
-    $max = (! is_numeric($max)) ? strlen($str) : $max; // Taille à couper
701
+    $max = (!is_numeric($max)) ? strlen($str) : $max; // Taille à couper
702 702
 
703 703
     $length = strlen($str); // Nombre de caractères
704 704
 
@@ -964,17 +964,17 @@  discard block
 block discarded – undo
964 964
 function scl_splitInt($nbr, $pas = 3, $separateur = ' ')
965 965
 {
966 966
     // Valeurs par défaut
967
-    if (! is_numeric($nbr)) {
967
+    if (!is_numeric($nbr)) {
968 968
         return;
969 969
     }
970
-    $pas        = (! empty($pas) && is_int($pas)) ? $pas : 3;
970
+    $pas        = (!empty($pas) && is_int($pas)) ? $pas : 3;
971 971
     $separateur = (in_array($separateur, ['.', ' ', ',', '-', '/'], true)) ? $separateur : ' ';
972 972
 
973 973
     $return = ''; // Valeur renvoyée
974 974
 
975 975
     $nombre  = explode('.', $nbr);
976 976
     $nbr     = $nombre[0];
977
-    $virgule = (! empty($nombre[1])) ? '.' . $nombre[1] : '';
977
+    $virgule = (!empty($nombre[1])) ? '.' . $nombre[1] : '';
978 978
 
979 979
     $lenght = strlen($nbr); // nombre de chiffre
980 980
     $nbr    = strrev($nbr); // on inverse le nombre
@@ -1225,7 +1225,7 @@  discard block
 block discarded – undo
1225 1225
 
1226 1226
     $return .= $trio[1] . ' ' . $secon[1] . ' ' . $prim[1];
1227 1227
 
1228
-    if (! ($cent_c === '0' || $cent_c === '') || ! ($dix_c === '0' || $dix_c === '')) {
1228
+    if (!($cent_c === '0' || $cent_c === '') || !($dix_c === '0' || $dix_c === '')) {
1229 1229
         $return .= $trio_c . ' ' . $secon_c;
1230 1230
     }
1231 1231
 
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/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['titleSafe'] ?>">
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['titleSafe'] ?>" 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.
src/Debug/Toolbar.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->config = $config ?? (object) config('toolbar');
67 67
 
68 68
         foreach ($this->config->collectors as $collector) {
69
-            if (! class_exists($collector)) {
69
+            if (!class_exists($collector)) {
70 70
                 logger()->critical(
71 71
                     'Toolbar collector does not exist (' . $collector . ').'
72 72
                     . ' Please check $collectors in the app/Config/toolbar.php file.'
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             $data['vars']['varData'][esc($heading)] = $varData;
133 133
         }
134 134
 
135
-        if (! empty($_SESSION)) {
135
+        if (!empty($_SESSION)) {
136 136
             foreach ($_SESSION as $key => $value) {
137 137
                 // Remplacez les données binaires par une chaîne pour éviter l'échec de json_encode.
138 138
                 if (is_string($value) && preg_match('~[^\x20-\x7E\t\r\n]~', $value)) {
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
         $output = '';
206 206
 
207 207
         foreach ($rows as $row) {
208
-            $hasChildren = isset($row['children']) && ! empty($row['children']);
209
-            $isQuery     = isset($row['query']) && ! empty($row['query']);
208
+            $hasChildren = isset($row['children']) && !empty($row['children']);
209
+            $isQuery     = isset($row['query']) && !empty($row['query']);
210 210
 
211 211
             // Ouvrir la chronologie du contrôleur par défaut
212 212
             $open = $row['name'] === 'Controller';
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 
272 272
         // Le collecter
273 273
         foreach ($collectors as $collector) {
274
-            if (! $collector['hasTimelineData']) {
274
+            if (!$collector['hasTimelineData']) {
275 275
                 continue;
276 276
             }
277 277
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         array_multisort(...$sortArray);
289 289
 
290 290
         // Ajouter une heure de fin à chaque élément
291
-        array_walk($data, static function (&$row) {
291
+        array_walk($data, static function(&$row) {
292 292
             $row['end'] = $row['start'] + $row['duration'];
293 293
         });
294 294
 
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
         $element = array_shift($elements);
308 308
 
309 309
         // Si nous avons des enfants derrière nous, récupérez-les et attachez-les-nous
310
-        while (! empty($elements) && $elements[array_key_first($elements)]['end'] <= $element['end']) {
310
+        while (!empty($elements) && $elements[array_key_first($elements)]['end'] <= $element['end']) {
311 311
             $element['children'][] = array_shift($elements);
312 312
         }
313 313
 
@@ -331,14 +331,14 @@  discard block
 block discarded – undo
331 331
      */
332 332
     protected function collectVarData(): array
333 333
     {
334
-        if (! ($this->config->collectVarData ?? true)) {
334
+        if (!($this->config->collectVarData ?? true)) {
335 335
             return [];
336 336
         }
337 337
 
338 338
         $data = [];
339 339
 
340 340
         foreach ($this->collectors as $collector) {
341
-            if (! $collector->hasVarData()) {
341
+            if (!$collector->hasVarData()) {
342 342
                 continue;
343 343
             }
344 344
 
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         }
373 373
 
374 374
         // Si on a desactiver le debogage ou l'affichage de la debugbar, on s'arrete
375
-        if (! BLITZ_DEBUG || ! $this->config->show_debugbar) {
375
+        if (!BLITZ_DEBUG || !$this->config->show_debugbar) {
376 376
             return $response;
377 377
         }
378 378
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
         // Mise à jour vers microtime() pour que nous puissions obtenir l'historique
388 388
         $time = sprintf('%.6f', Date::now()->format('U.u'));
389 389
 
390
-        if (! is_dir($this->debugPath)) {
390
+        if (!is_dir($this->debugPath)) {
391 391
             mkdir($this->debugPath, 0777);
392 392
         }
393 393
 
Please login to merge, or discard this patch.
src/Helpers/common.php 1 patch
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 // ================================= FONCTIONS D'ACCESSIBILITE ================================= //
27 27
 
28
-if (! function_exists('env')) {
28
+if (!function_exists('env')) {
29 29
     /**
30 30
      * Obtient une variable d'environnement à partir des sources disponibles et fournit une émulation
31 31
      * pour les variables d'environnement non prises en charge ou incohérentes
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     }
42 42
 }
43 43
 
44
-if (! function_exists('helper')) {
44
+if (!function_exists('helper')) {
45 45
     /**
46 46
      * Charge un fichier d'aide en mémoire. Prend en charge les assistants d'espace de noms,
47 47
      * à la fois dans et hors du répertoire 'helpers' d'un répertoire à espace de noms.
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 }
59 59
 
60
-if (! function_exists('model')) {
60
+if (!function_exists('model')) {
61 61
     /**
62 62
      * Simple maniere d'obtenir un modele.
63 63
      *
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return T
69 69
      */
70
-    function model(string|array $name, ?ConnectionInterface &$conn = null)
70
+    function model(string|array $name, ?ConnectionInterface&$conn = null)
71 71
     {
72 72
         return Load::model($name, $conn);
73 73
     }
74 74
 }
75 75
 
76
-if (! function_exists('service')) {
76
+if (!function_exists('service')) {
77 77
     /**
78 78
      * Permet un accès plus propre au fichier de configuration des services.
79 79
      * Renvoie toujours une instance SHARED de la classe, donc
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 }
92 92
 
93
-if (! function_exists('single_service')) {
93
+if (!function_exists('single_service')) {
94 94
     /**
95 95
      * Autoriser l'accès propre à un service.
96 96
      * Renvoie toujours une nouvelle instance de la classe.
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     }
105 105
 }
106 106
 
107
-if (! function_exists('show404')) {
107
+if (!function_exists('show404')) {
108 108
     /**
109 109
      * Afficher une page 404 introuvable dans le navigateur
110 110
      */
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 }
116 116
 
117
-if (! function_exists('config')) {
117
+if (!function_exists('config')) {
118 118
     /**
119 119
      * GET/SET App config
120 120
      *
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     function config(string $config, $value = null, bool $force_set = false)
126 126
     {
127
-        if (! empty($value) || (empty($value) && true === $force_set)) {
127
+        if (!empty($value) || (empty($value) && true === $force_set)) {
128 128
             Config::set($config, $value);
129 129
         }
130 130
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
 // =========================== FONCTIONS DE PREVENTION D'ATTAQUE =========================== //
136 136
 
137
-if (! function_exists('esc')) {
137
+if (!function_exists('esc')) {
138 138
     /**
139 139
      * Effectue un simple échappement automatique des données pour des raisons de sécurité.
140 140
      * Pourrait envisager de rendre cela plus complexe à une date ultérieure.
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     }
162 162
 }
163 163
 
164
-if (! function_exists('h')) {
164
+if (!function_exists('h')) {
165 165
     /**
166 166
      * Méthode pratique pour htmlspecialchars.
167 167
      *
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     }
181 181
 }
182 182
 
183
-if (! function_exists('purify')) {
183
+if (!function_exists('purify')) {
184 184
     /**
185 185
      * Purifiez l'entrée à l'aide de la classe autonome HTMLPurifier.
186 186
      * Utilisez facilement plusieurs configurations de purificateur.
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     }
199 199
 }
200 200
 
201
-if (! function_exists('remove_invisible_characters')) {
201
+if (!function_exists('remove_invisible_characters')) {
202 202
     /**
203 203
      * Supprimer les caractères invisibles
204 204
      *
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     }
212 212
 }
213 213
 
214
-if (! function_exists('stringify_attributes')) {
214
+if (!function_exists('stringify_attributes')) {
215 215
     /**
216 216
      * Chaîner les attributs à utiliser dans les balises HTML.
217 217
      *
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
 // ================================= FONCTIONS D'ENVIRONNEMENT D'EXECUTION ================================= //
227 227
 
228
-if (! function_exists('on_dev')) {
228
+if (!function_exists('on_dev')) {
229 229
     /**
230 230
      * Testez pour voir si nous sommes dans un environnement de développement.
231 231
      */
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     }
242 242
 }
243 243
 
244
-if (! function_exists('on_prod')) {
244
+if (!function_exists('on_prod')) {
245 245
     /**
246 246
      * Testez pour voir si nous sommes dans un environnement de production.
247 247
      */
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     }
258 258
 }
259 259
 
260
-if (! function_exists('on_test')) {
260
+if (!function_exists('on_test')) {
261 261
     /**
262 262
      * Testez pour voir si nous sommes dans un environnement de test
263 263
      */
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     }
270 270
 }
271 271
 
272
-if (! function_exists('is_cli')) {
272
+if (!function_exists('is_cli')) {
273 273
     /**
274 274
      * Testez pour voir si une demande a été faite à partir de la ligne de commande.
275 275
      */
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     }
280 280
 }
281 281
 
282
-if (! function_exists('is_php')) {
282
+if (!function_exists('is_php')) {
283 283
     /**
284 284
      * Détermine si la version actuelle de PHP est égale ou supérieure à la valeur fournie.
285 285
      */
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     }
290 290
 }
291 291
 
292
-if (! function_exists('is_windows')) {
292
+if (!function_exists('is_windows')) {
293 293
     /**
294 294
      * Déterminez si l'environnement actuel est basé sur Windows.
295 295
      */
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
     }
300 300
 }
301 301
 
302
-if (! function_exists('is_https')) {
302
+if (!function_exists('is_https')) {
303 303
     /**
304 304
      * Determines if the application is accessed via an encrypted * (HTTPS) connection.
305 305
      */
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     }
310 310
 }
311 311
 
312
-if (! function_exists('is_localfile')) {
312
+if (!function_exists('is_localfile')) {
313 313
     /**
314 314
      * Vérifiez si le fichier auquel vous souhaitez accéder est un fichier local de votre application ou non
315 315
      */
@@ -319,11 +319,11 @@  discard block
 block discarded – undo
319 319
             return true;
320 320
         }
321 321
 
322
-        return ! preg_match('#^(https?://)#i', $name);
322
+        return !preg_match('#^(https?://)#i', $name);
323 323
     }
324 324
 }
325 325
 
326
-if (! function_exists('is_online')) {
326
+if (!function_exists('is_online')) {
327 327
     /**
328 328
      * Tester si l'application s'exécute en local ou en ligne.
329 329
      */
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     }
334 334
 }
335 335
 
336
-if (! function_exists('is_connected')) {
336
+if (!function_exists('is_connected')) {
337 337
     /**
338 338
      * Verifie si l'utilisateur a une connexion internet active.
339 339
      */
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     }
344 344
 }
345 345
 
346
-if (! function_exists('is_ajax_request')) {
346
+if (!function_exists('is_ajax_request')) {
347 347
     /**
348 348
      * Testez pour voir si une requête contient l'en-tête HTTP_X_REQUESTED_WITH.
349 349
      */
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     }
354 354
 }
355 355
 
356
-if (! function_exists('redirection')) {
356
+if (!function_exists('redirection')) {
357 357
     /**
358 358
      * Redirige l'utilisateur
359 359
      */
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     }
368 368
 }
369 369
 
370
-if (! function_exists('redirect')) {
370
+if (!function_exists('redirect')) {
371 371
     /**
372 372
      * Méthode pratique qui fonctionne avec la $request globale actuelle et
373 373
      * l'instance $router à rediriger à l'aide de routes nommées et le routage inversé
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
     {
382 382
         $redirection = Services::redirection();
383 383
 
384
-        if (! empty($uri)) {
384
+        if (!empty($uri)) {
385 385
             return $redirection->route($uri);
386 386
         }
387 387
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
     }
390 390
 }
391 391
 
392
-if (! function_exists('link_to')) {
392
+if (!function_exists('link_to')) {
393 393
     /**
394 394
      * Étant donné une chaîne de contrôleur/méthode et tous les paramètres,
395 395
      * tentera de créer l'URL relative à la route correspondante.
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
     }
410 410
 }
411 411
 
412
-if (! function_exists('clean_path')) {
412
+if (!function_exists('clean_path')) {
413 413
     /**
414 414
      * Une méthode pratique pour nettoyer les chemins pour
415 415
      * une sortie plus belle. Utile pour les exceptions
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     }
442 442
 }
443 443
 
444
-if (! function_exists('old')) {
444
+if (!function_exists('old')) {
445 445
     /**
446 446
      * Fournit l'accès à "entrée ancienne" qui a été définie dans la session lors d'un redirect()-withInput().
447 447
      *
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
     function old(string $key, ?string $default = null, $escape = 'html')
454 454
     {
455 455
         // Assurez-vous de charger la session
456
-        if (session_status() === PHP_SESSION_NONE && ! on_test()) {
456
+        if (session_status() === PHP_SESSION_NONE && !on_test()) {
457 457
             session(); // @codeCoverageIgnore
458 458
         }
459 459
 
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
 
469 469
 // ================================= FONCTIONS DE DEBOGAGE ================================= //
470 470
 
471
-if (! function_exists('dd')) {
471
+if (!function_exists('dd')) {
472 472
     /**
473 473
      * Prints a Kint debug report and exits.
474 474
      *
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
     }
488 488
 }
489 489
 
490
-if (! function_exists('dump')) {
490
+if (!function_exists('dump')) {
491 491
     /**
492 492
      * Prints a Kint debug report and exits.
493 493
      *
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
     }
505 505
 }
506 506
 
507
-if (! function_exists('deprecationWarning')) {
507
+if (!function_exists('deprecationWarning')) {
508 508
     /**
509 509
      * Méthode d'assistance pour générer des avertissements d'obsolescence
510 510
      *
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
     }
521 521
 }
522 522
 
523
-if (! function_exists('logger')) {
523
+if (!function_exists('logger')) {
524 524
     /**
525 525
      * A convenience/compatibility method for logging events through
526 526
      * the Log system.
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
     {
544 544
         $logger = Services::logger();
545 545
 
546
-        if (! empty($level) && ! empty($message)) {
546
+        if (!empty($level) && !empty($message)) {
547 547
             return $logger->log($level, $message, $context);
548 548
         }
549 549
 
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
     }
552 552
 }
553 553
 
554
-if (! function_exists('cache')) {
554
+if (!function_exists('cache')) {
555 555
     /**
556 556
      * Une méthode pratique qui donne accès au cache
557 557
      * objet. Si aucun paramètre n'est fourni, renverra l'objet,
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
     }
582 582
 }
583 583
 
584
-if (! function_exists('session')) {
584
+if (!function_exists('session')) {
585 585
     /**
586 586
      * Une méthode pratique pour accéder à l'instance de session, ou un élément qui a été défini dans la session.
587 587
      *
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
     }
605 605
 }
606 606
 
607
-if (! function_exists('pr')) {
607
+if (!function_exists('pr')) {
608 608
     /**
609 609
      * print_r() convenience function.
610 610
      *
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
     }
627 627
 }
628 628
 
629
-if (! function_exists('pj')) {
629
+if (!function_exists('pj')) {
630 630
     /**
631 631
      * json pretty print convenience function.
632 632
      *
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
     }
648 648
 }
649 649
 
650
-if (! function_exists('trigger_warning')) {
650
+if (!function_exists('trigger_warning')) {
651 651
     /**
652 652
      * Déclenche un E_USER_WARNING.
653 653
      */
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
     }
658 658
 }
659 659
 
660
-if (! function_exists('vd')) {
660
+if (!function_exists('vd')) {
661 661
     /**
662 662
      * Shortcut to ref, HTML mode
663 663
      *
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
     }
670 670
 }
671 671
 
672
-if (! function_exists('vdt')) {
672
+if (!function_exists('vdt')) {
673 673
     /**
674 674
      * Shortcut to ref, plain text mode
675 675
      *
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
 
684 684
 // ================================= FONCTIONS DIVERSES ================================= //
685 685
 
686
-if (! function_exists('force_https')) {
686
+if (!function_exists('force_https')) {
687 687
     /**
688 688
      * Utilisé pour forcer l'accès à une page via HTTPS.
689 689
      * Utilise une redirection standard, plus définira l'en-tête HSTS
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
     }
742 742
 }
743 743
 
744
-if (! function_exists('getTypeName')) {
744
+if (!function_exists('getTypeName')) {
745 745
     /**
746 746
      * Renvoie la classe d'objets ou le type var de ce n'est pas un objet
747 747
      *
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
     }
756 756
 }
757 757
 
758
-if (! function_exists('ip_address')) {
758
+if (!function_exists('ip_address')) {
759 759
     /**
760 760
      * Renvoie l'adresse IP de l'utilisateur actuel
761 761
      */
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
     }
766 766
 }
767 767
 
768
-if (! function_exists('is_really_writable')) {
768
+if (!function_exists('is_really_writable')) {
769 769
     /**
770 770
      * Tests d'inscriptibilité des fichiers
771 771
      */
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
     }
776 776
 }
777 777
 
778
-if (! function_exists('lang')) {
778
+if (!function_exists('lang')) {
779 779
     /**
780 780
      * Une méthode pratique pour traduire une chaîne ou un tableau d'entrées et formater
781 781
      * le résultat avec le MessageFormatter de l'extension intl.
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
     }
787 787
 }
788 788
 
789
-if (! function_exists('__')) {
789
+if (!function_exists('__')) {
790 790
     /**
791 791
      * Une méthode pratique pour traduire une chaîne ou un tableau d'entrées et formater
792 792
      * le résultat avec le MessageFormatter de l'extension intl.
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
     }
800 800
 }
801 801
 
802
-if (! function_exists('namespace_split')) {
802
+if (!function_exists('namespace_split')) {
803 803
     /**
804 804
      * Séparez l'espace de noms du nom de classe.
805 805
      *
@@ -820,7 +820,7 @@  discard block
 block discarded – undo
820 820
     }
821 821
 }
822 822
 
823
-if (! function_exists('view_exist')) {
823
+if (!function_exists('view_exist')) {
824 824
     /**
825 825
      * Verifie si un fichier de vue existe. Utile pour limiter les failles include
826 826
      */
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
     }
835 835
 }
836 836
 
837
-if (! function_exists('view')) {
837
+if (!function_exists('view')) {
838 838
     /**
839 839
      * Charge une vue
840 840
      *
@@ -850,7 +850,7 @@  discard block
 block discarded – undo
850 850
     }
851 851
 }
852 852
 
853
-if (! function_exists('flash')) {
853
+if (!function_exists('flash')) {
854 854
     /**
855 855
      * Fournisseur d'acces rapide a la classe PHP Flash
856 856
      *
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
     }*/
883 883
 }
884 884
 
885
-if (! function_exists('geo_ip')) {
885
+if (!function_exists('geo_ip')) {
886 886
     /**
887 887
      * Recuperation des coordonnees (pays, ville, etc) d'un utilisateur en fonction de son ip
888 888
      */
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
     }
893 893
 }
894 894
 
895
-if (! function_exists('to_stream')) {
895
+if (!function_exists('to_stream')) {
896 896
     /**
897 897
      * Créez un nouveau flux basé sur le type d'entrée.
898 898
      *
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
     }
916 916
 }
917 917
 
918
-if (! function_exists('value')) {
918
+if (!function_exists('value')) {
919 919
     /**
920 920
      * Renvoie la valeur par défaut de la valeur donnée.
921 921
      */
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
     }
926 926
 }
927 927
 
928
-if (! function_exists('collect')) {
928
+if (!function_exists('collect')) {
929 929
     /**
930 930
      * Créez une collection à partir de la valeur donnée.
931 931
      */
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
     }
936 936
 }
937 937
 
938
-if (! function_exists('with')) {
938
+if (!function_exists('with')) {
939 939
     /**
940 940
      * Renvoie la valeur donnée, éventuellement transmise via le rappel donné.
941 941
      *
@@ -947,7 +947,7 @@  discard block
 block discarded – undo
947 947
     }
948 948
 }
949 949
 
950
-if (! function_exists('tap')) {
950
+if (!function_exists('tap')) {
951 951
     /**
952 952
      * Appelez la Closure donnée avec cette instance puis renvoyez l'instance.
953 953
      */
@@ -957,7 +957,7 @@  discard block
 block discarded – undo
957 957
     }
958 958
 }
959 959
 
960
-if (! function_exists('last')) {
960
+if (!function_exists('last')) {
961 961
     /**
962 962
      * Recupere le dernier element d'un tableau
963 963
      */
@@ -967,7 +967,7 @@  discard block
 block discarded – undo
967 967
     }
968 968
 }
969 969
 
970
-if (! function_exists('invade')) {
970
+if (!function_exists('invade')) {
971 971
     /**
972 972
      * Cette classe offre une fonction d'invasion qui vous permettra de lire / écrire des propriétés privées d'un objet.
973 973
      * Il vous permettra également de définir, obtenir et appeler des méthodes privées.
Please login to merge, or discard this patch.
src/Helpers/path.php 1 patch
Spacing   +107 added lines, -107 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * the LICENSE file that was distributed with this source code.
10 10
  */
11 11
 
12
-if (! function_exists('css_path')) {
12
+if (!function_exists('css_path')) {
13 13
     /**
14 14
      * CSS PATH
15 15
      *
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     function css_path(string $name = ''): string
21 21
     {
22
-        if (! empty($name)) {
22
+        if (!empty($name)) {
23 23
             $name = DS . ltrim($name, '/\\');
24 24
         }
25 25
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     }
28 28
 }
29 29
 
30
-if (! function_exists('js_path')) {
30
+if (!function_exists('js_path')) {
31 31
     /**
32 32
      * JS PATH
33 33
      *
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     function js_path(string $name = ''): string
39 39
     {
40
-        if (! empty($name)) {
40
+        if (!empty($name)) {
41 41
             $name = DS . ltrim($name, '/\\');
42 42
         }
43 43
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 }
47 47
 
48
-if (! function_exists('lib_path')) {
48
+if (!function_exists('lib_path')) {
49 49
     /**
50 50
      * LIB PATH
51 51
      *
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     function lib_path(string $name = ''): string
57 57
     {
58
-        if (! empty($name)) {
58
+        if (!empty($name)) {
59 59
             $name = DS . ltrim($name, '/\\');
60 60
         }
61 61
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     }
64 64
 }
65 65
 
66
-if (! function_exists('less_path')) {
66
+if (!function_exists('less_path')) {
67 67
     /**
68 68
      * LESS PATH
69 69
      *
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     function less_path(string $name = ''): string
75 75
     {
76
-        if (! empty($name)) {
76
+        if (!empty($name)) {
77 77
             $name = DS . ltrim($name, '/\\');
78 78
         }
79 79
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     }
82 82
 }
83 83
 
84
-if (! function_exists('img_path')) {
84
+if (!function_exists('img_path')) {
85 85
     /**
86 86
      * IMG PATH
87 87
      *
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     function img_path(string $name = ''): string
93 93
     {
94
-        if (! empty($name)) {
94
+        if (!empty($name)) {
95 95
             $name = DS . ltrim($name, '/\\');
96 96
         }
97 97
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     }
100 100
 }
101 101
 
102
-if (! function_exists('docs_path')) {
102
+if (!function_exists('docs_path')) {
103 103
     /**
104 104
      * DOCS PATH
105 105
      *
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     function docs_path(string $name = ''): string
111 111
     {
112
-        if (! empty($name)) {
112
+        if (!empty($name)) {
113 113
             $name = DS . ltrim($name, '/\\');
114 114
         }
115 115
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     }
118 118
 }
119 119
 
120
-if (! function_exists('video_path')) {
120
+if (!function_exists('video_path')) {
121 121
     /**
122 122
      * VIDEO PATH
123 123
      *
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     function video_path(string $name = ''): string
129 129
     {
130
-        if (! empty($name)) {
130
+        if (!empty($name)) {
131 131
             $name = DS . ltrim($name, '/\\');
132 132
         }
133 133
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     }
136 136
 }
137 137
 
138
-if (! function_exists('public_path')) {
138
+if (!function_exists('public_path')) {
139 139
     /**
140 140
      * PUBLIC PATH
141 141
      *
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     function public_path(string $name = ''): string
147 147
     {
148
-        if (! empty($name)) {
148
+        if (!empty($name)) {
149 149
             $name = ltrim($name, '/\\');
150 150
         }
151 151
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     }
154 154
 }
155 155
 
156
-if (! function_exists('root_path')) {
156
+if (!function_exists('root_path')) {
157 157
     /**
158 158
      * ROOT PATH
159 159
      *
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     function root_path(string $name = ''): string
165 165
     {
166
-        if (! empty($name)) {
166
+        if (!empty($name)) {
167 167
             $name = ltrim($name, '/\\');
168 168
         }
169 169
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     }
172 172
 }
173 173
 
174
-if (! function_exists('base_path')) {
174
+if (!function_exists('base_path')) {
175 175
     /**
176 176
      * BASE PATH
177 177
      *
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     function base_path(string $name = ''): string
183 183
     {
184
-        if (! empty($name)) {
184
+        if (!empty($name)) {
185 185
             $name = ltrim($name, '/\\');
186 186
         }
187 187
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     }
190 190
 }
191 191
 
192
-if (! function_exists('class_path')) {
192
+if (!function_exists('class_path')) {
193 193
     /**
194 194
      * CLASS PATH
195 195
      *
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     function class_path(string $name = ''): string
201 201
     {
202
-        if (! empty($name)) {
202
+        if (!empty($name)) {
203 203
             $name = DS . ltrim($name, '/\\');
204 204
         }
205 205
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     }
208 208
 }
209 209
 
210
-if (! function_exists('config_path')) {
210
+if (!function_exists('config_path')) {
211 211
     /**
212 212
      * CONFIG PATH
213 213
      *
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     function config_path(string $name = ''): string
219 219
     {
220
-        if (! empty($name)) {
220
+        if (!empty($name)) {
221 221
             $name = DS . ltrim($name, '/\\');
222 222
         }
223 223
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     }
226 226
 }
227 227
 
228
-if (! function_exists('controller_path')) {
228
+if (!function_exists('controller_path')) {
229 229
     /**
230 230
      * CONTROLLER PATH
231 231
      *
@@ -236,10 +236,10 @@  discard block
 block discarded – undo
236 236
      */
237 237
     function controller_path(string $name = '', bool $only = true): string
238 238
     {
239
-        if (! empty($name)) {
239
+        if (!empty($name)) {
240 240
             $name = ltrim($name, '/\\');
241 241
 
242
-            if ($only === true && ! preg_match('#Controller\.php$#', $name)) {
242
+            if ($only === true && !preg_match('#Controller\.php$#', $name)) {
243 243
                 $name = ucfirst(strtolower($name)) . 'Controller.php';
244 244
             }
245 245
         }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     }
249 249
 }
250 250
 
251
-if (! function_exists('entity_path')) {
251
+if (!function_exists('entity_path')) {
252 252
     /**
253 253
      * ENTITY PATH
254 254
      *
@@ -259,10 +259,10 @@  discard block
 block discarded – undo
259 259
      */
260 260
     function entity_path(string $name = '', bool $only = true): string
261 261
     {
262
-        if (! empty($name)) {
262
+        if (!empty($name)) {
263 263
             $name = ltrim($name, '/\\');
264 264
 
265
-            if ($only === true && ! preg_match('#Entity\.php$#', $name)) {
265
+            if ($only === true && !preg_match('#Entity\.php$#', $name)) {
266 266
                 $name = ucfirst($name) . 'Entity.php';
267 267
             }
268 268
         }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     }
272 272
 }
273 273
 
274
-if (! function_exists('helper_path')) {
274
+if (!function_exists('helper_path')) {
275 275
     /**
276 276
      * HELPER PATH
277 277
      *
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      */
283 283
     function helper_path(string $name = '', bool $system = false): string
284 284
     {
285
-        if (! empty($name)) {
285
+        if (!empty($name)) {
286 286
             $name = DS . ltrim($name, '/\\');
287 287
         }
288 288
         if ($system === true) {
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
     }
294 294
 }
295 295
 
296
-if (! function_exists('library_path')) {
296
+if (!function_exists('library_path')) {
297 297
     /**
298 298
      * LIBRARY PATH
299 299
      *
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      */
305 305
     function library_path(string $name = '', bool $system = false): string
306 306
     {
307
-        if (! empty($name)) {
307
+        if (!empty($name)) {
308 308
             $name = DS . ltrim($name, '/\\');
309 309
         }
310 310
         if ($system === true) {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     }
316 316
 }
317 317
 
318
-if (! function_exists('middleware_path')) {
318
+if (!function_exists('middleware_path')) {
319 319
     /**
320 320
      * MIDDLEWARE PATH
321 321
      *
@@ -327,10 +327,10 @@  discard block
 block discarded – undo
327 327
      */
328 328
     function middleware_path(string $name = '', bool $system = false, bool $only = true): string
329 329
     {
330
-        if (! empty($name)) {
330
+        if (!empty($name)) {
331 331
             $name = DS . ltrim($name, '/\\');
332 332
 
333
-            if ($only === true && ! preg_match('#Middleware\.php$#', $name)) {
333
+            if ($only === true && !preg_match('#Middleware\.php$#', $name)) {
334 334
                 $name = ucfirst($name) . 'Middleware.php';
335 335
             }
336 336
         }
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     }
343 343
 }
344 344
 
345
-if (! function_exists('model_path')) {
345
+if (!function_exists('model_path')) {
346 346
     /**
347 347
      * MODEL PATH
348 348
      *
@@ -353,10 +353,10 @@  discard block
 block discarded – undo
353 353
      */
354 354
     function model_path(string $name = '', bool $only = true): string
355 355
     {
356
-        if (! empty($name)) {
356
+        if (!empty($name)) {
357 357
             $name = ltrim($name, '/\\');
358 358
 
359
-            if ($only === true && ! preg_match('#Model\.php$#', $name)) {
359
+            if ($only === true && !preg_match('#Model\.php$#', $name)) {
360 360
                 $name = ucfirst(strtolower($name)) . 'Model.php';
361 361
             }
362 362
         }
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     }
366 366
 }
367 367
 
368
-if (! function_exists('resource_path')) {
368
+if (!function_exists('resource_path')) {
369 369
     /**
370 370
      * RESOURCE PATH
371 371
      *
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      */
376 376
     function resource_path(string $name = ''): string
377 377
     {
378
-        if (! empty($name)) {
378
+        if (!empty($name)) {
379 379
             $name = ltrim($name, '/\\');
380 380
         }
381 381
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
     }
384 384
 }
385 385
 
386
-if (! function_exists('migration_path')) {
386
+if (!function_exists('migration_path')) {
387 387
     /**
388 388
      * MIGRATION PATH
389 389
      *
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      */
394 394
     function migration_path(string $name = ''): string
395 395
     {
396
-        if (! empty($name)) {
396
+        if (!empty($name)) {
397 397
             $name = ltrim($name, '/\\');
398 398
         }
399 399
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
     }
402 402
 }
403 403
 
404
-if (! function_exists('seed_path')) {
404
+if (!function_exists('seed_path')) {
405 405
     /**
406 406
      * SEED PATH
407 407
      *
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
      */
412 412
     function seed_path(string $name = ''): string
413 413
     {
414
-        if (! empty($name)) {
414
+        if (!empty($name)) {
415 415
             $name = ltrim($name, '/\\');
416 416
         }
417 417
 
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
     }
420 420
 }
421 421
 
422
-if (! function_exists('lang_path')) {
422
+if (!function_exists('lang_path')) {
423 423
     /**
424 424
      * LANG PATH
425 425
      *
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
      */
431 431
     function lang_path(string $name = '', bool $system = false): string
432 432
     {
433
-        if (! empty($name)) {
433
+        if (!empty($name)) {
434 434
             $name = DS . ltrim($name, '/\\');
435 435
         }
436 436
         if ($system === true) {
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     }
442 442
 }
443 443
 
444
-if (! function_exists('service_path')) {
444
+if (!function_exists('service_path')) {
445 445
     /**
446 446
      * SERVICE PATH
447 447
      *
@@ -452,10 +452,10 @@  discard block
 block discarded – undo
452 452
      */
453 453
     function service_path(string $name = '', bool $only = true): string
454 454
     {
455
-        if (! empty($name)) {
455
+        if (!empty($name)) {
456 456
             $name = ltrim($name, '/\\');
457 457
 
458
-            if ($only === true && ! preg_match('#Service\.php$#', $name)) {
458
+            if ($only === true && !preg_match('#Service\.php$#', $name)) {
459 459
                 $name = ucfirst($name) . 'Service.php';
460 460
             }
461 461
         }
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     }
465 465
 }
466 466
 
467
-if (! function_exists('view_path')) {
467
+if (!function_exists('view_path')) {
468 468
     /**
469 469
      * VIEW PATH
470 470
      *
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      */
475 475
     function view_path(string $name = ''): string
476 476
     {
477
-        if (! empty($name)) {
477
+        if (!empty($name)) {
478 478
             $name = ltrim($name, '/\\');
479 479
         }
480 480
 
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
     }
483 483
 }
484 484
 
485
-if (! function_exists('layout_path')) {
485
+if (!function_exists('layout_path')) {
486 486
     /**
487 487
      * LAYOUT PATH
488 488
      *
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
      */
493 493
     function layout_path(string $name = ''): string
494 494
     {
495
-        if (! empty($name)) {
495
+        if (!empty($name)) {
496 496
             $name = ltrim($name, '/\\');
497 497
         }
498 498
 
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
     }
501 501
 }
502 502
 
503
-if (! function_exists('partial_path')) {
503
+if (!function_exists('partial_path')) {
504 504
     /**
505 505
      * PARTIAL PATH
506 506
      *
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
      */
511 511
     function partial_path(string $name = ''): string
512 512
     {
513
-        if (! empty($name)) {
513
+        if (!empty($name)) {
514 514
             $name = DS . ltrim($name, '/\\');
515 515
         }
516 516
 
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
     }
519 519
 }
520 520
 
521
-if (! function_exists('app_path')) {
521
+if (!function_exists('app_path')) {
522 522
     /**
523 523
      * APP PATH
524 524
      *
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
      */
529 529
     function app_path(string $name = ''): string
530 530
     {
531
-        if (! empty($name)) {
531
+        if (!empty($name)) {
532 532
             $name = ltrim($name, '/\\');
533 533
         }
534 534
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
     }
537 537
 }
538 538
 
539
-if (! function_exists('cache_path')) {
539
+if (!function_exists('cache_path')) {
540 540
     /**
541 541
      * CACHE PATH
542 542
      *
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     function cache_path(string $name = ''): string
548 548
     {
549
-        if (! empty($name)) {
549
+        if (!empty($name)) {
550 550
             $name = ltrim($name, '/\\');
551 551
         }
552 552
 
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
     }
555 555
 }
556 556
 
557
-if (! function_exists('dump_path')) {
557
+if (!function_exists('dump_path')) {
558 558
     /**
559 559
      * DUMP PATH
560 560
      *
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
      */
565 565
     function dump_path(string $name = ''): string
566 566
     {
567
-        if (! empty($name)) {
567
+        if (!empty($name)) {
568 568
             $name = ltrim($name, '/\\');
569 569
         }
570 570
 
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
     }
573 573
 }
574 574
 
575
-if (! function_exists('storage_path')) {
575
+if (!function_exists('storage_path')) {
576 576
     /**
577 577
      * STORAGE PATH
578 578
      *
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
      */
583 583
     function storage_path(string $name = ''): string
584 584
     {
585
-        if (! empty($name)) {
585
+        if (!empty($name)) {
586 586
             $name = ltrim($name, '/\\');
587 587
         }
588 588
 
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
     }
591 591
 }
592 592
 
593
-if (! function_exists('css_exist')) {
593
+if (!function_exists('css_exist')) {
594 594
     /**
595 595
      * CSS EXIST
596 596
      *
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
     }
605 605
 }
606 606
 
607
-if (! function_exists('js_exist')) {
607
+if (!function_exists('js_exist')) {
608 608
     /**
609 609
      * JS EXIST
610 610
      *
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
     }
619 619
 }
620 620
 
621
-if (! function_exists('lib_exist')) {
621
+if (!function_exists('lib_exist')) {
622 622
     /**
623 623
      * LIB EXIST
624 624
      *
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
     }
633 633
 }
634 634
 
635
-if (! function_exists('less_exist')) {
635
+if (!function_exists('less_exist')) {
636 636
     /**
637 637
      * LESS EXIST
638 638
      *
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     }
647 647
 }
648 648
 
649
-if (! function_exists('img_exist')) {
649
+if (!function_exists('img_exist')) {
650 650
     /**
651 651
      * IMG EXIST
652 652
      *
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
     }
661 661
 }
662 662
 
663
-if (! function_exists('doc_exist')) {
663
+if (!function_exists('doc_exist')) {
664 664
     /**
665 665
      * DOC EXIST
666 666
      *
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
     }
675 675
 }
676 676
 
677
-if (! function_exists('video_exist')) {
677
+if (!function_exists('video_exist')) {
678 678
     /**
679 679
      * VIDEO EXIST
680 680
      *
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
     }
689 689
 }
690 690
 
691
-if (! function_exists('public_exist')) {
691
+if (!function_exists('public_exist')) {
692 692
     /**
693 693
      * PUBLIC EXIST
694 694
      *
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
     }
703 703
 }
704 704
 
705
-if (! function_exists('class_exist')) {
705
+if (!function_exists('class_exist')) {
706 706
     /**
707 707
      * CLASS EXIST
708 708
      *
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
     }
717 717
 }
718 718
 
719
-if (! function_exists('config_exist')) {
719
+if (!function_exists('config_exist')) {
720 720
     /**
721 721
      * CONFIG EXIST
722 722
      *
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
     }
731 731
 }
732 732
 
733
-if (! function_exists('controller_exist')) {
733
+if (!function_exists('controller_exist')) {
734 734
     /**
735 735
      * CONTROLLER EXIST
736 736
      *
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
     }
746 746
 }
747 747
 
748
-if (! function_exists('entity_exist')) {
748
+if (!function_exists('entity_exist')) {
749 749
     /**
750 750
      * ENTITY EXIST
751 751
      *
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
     }
761 761
 }
762 762
 
763
-if (! function_exists('helper_exist')) {
763
+if (!function_exists('helper_exist')) {
764 764
     /**
765 765
      * HELPER EXIST
766 766
      *
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
     }
776 776
 }
777 777
 
778
-if (! function_exists('library_exist')) {
778
+if (!function_exists('library_exist')) {
779 779
     /**
780 780
      * LIBRARY EXIST
781 781
      *
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
     }
791 791
 }
792 792
 
793
-if (! function_exists('middleware_exist')) {
793
+if (!function_exists('middleware_exist')) {
794 794
     /**
795 795
      * MIDDLEWARE EXIST
796 796
      *
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
     }
807 807
 }
808 808
 
809
-if (! function_exists('model_exist')) {
809
+if (!function_exists('model_exist')) {
810 810
     /**
811 811
      * MODEL EXIST
812 812
      *
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
     }
822 822
 }
823 823
 
824
-if (! function_exists('resource_exist')) {
824
+if (!function_exists('resource_exist')) {
825 825
     /**
826 826
      * RESOURCE EXIST
827 827
      *
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
     }
836 836
 }
837 837
 
838
-if (! function_exists('migration_exist')) {
838
+if (!function_exists('migration_exist')) {
839 839
     /**
840 840
      * MIGRATION EXIST
841 841
      *
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
     }
850 850
 }
851 851
 
852
-if (! function_exists('seed_exist')) {
852
+if (!function_exists('seed_exist')) {
853 853
     /**
854 854
      * SEED EXIST
855 855
      *
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
     }
864 864
 }
865 865
 
866
-if (! function_exists('lang_exist')) {
866
+if (!function_exists('lang_exist')) {
867 867
     /**
868 868
      * LANG EXIST
869 869
      *
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
     }
879 879
 }
880 880
 
881
-if (! function_exists('service_exist')) {
881
+if (!function_exists('service_exist')) {
882 882
     /**
883 883
      * SERVICE EXIST
884 884
      *
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
     }
894 894
 }
895 895
 
896
-if (! function_exists('view_exist')) {
896
+if (!function_exists('view_exist')) {
897 897
     /**
898 898
      * VIEW EXIST
899 899
      *
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
     }
908 908
 }
909 909
 
910
-if (! function_exists('layout_exist')) {
910
+if (!function_exists('layout_exist')) {
911 911
     /**
912 912
      * LAYOUT EXIST
913 913
      *
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
     }
922 922
 }
923 923
 
924
-if (! function_exists('partial_exist')) {
924
+if (!function_exists('partial_exist')) {
925 925
     /**
926 926
      * PARTIAL EXIST
927 927
      *
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
     }
936 936
 }
937 937
 
938
-if (! function_exists('app_exist')) {
938
+if (!function_exists('app_exist')) {
939 939
     /**
940 940
      * APP EXIST
941 941
      *
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
     }
950 950
 }
951 951
 
952
-if (! function_exists('cache_exist')) {
952
+if (!function_exists('cache_exist')) {
953 953
     /**
954 954
      * CACHE EXIST
955 955
      *
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
     }
964 964
 }
965 965
 
966
-if (! function_exists('dump_exist')) {
966
+if (!function_exists('dump_exist')) {
967 967
     /**
968 968
      * DUMP EXIST
969 969
      *
@@ -977,7 +977,7 @@  discard block
 block discarded – undo
977 977
     }
978 978
 }
979 979
 
980
-if (! function_exists('storage_exist')) {
980
+if (!function_exists('storage_exist')) {
981 981
     /**
982 982
      * STORAGE EXIST
983 983
      *
@@ -991,7 +991,7 @@  discard block
 block discarded – undo
991 991
     }
992 992
 }
993 993
 
994
-if (! function_exists('include_config')) {
994
+if (!function_exists('include_config')) {
995 995
     /**
996 996
      * INCLUDE CONFIG
997 997
      *
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
     }
1010 1010
 }
1011 1011
 
1012
-if (! function_exists('include_controller')) {
1012
+if (!function_exists('include_controller')) {
1013 1013
     /**
1014 1014
      * INCLUDE CONTROLLER
1015 1015
      *
@@ -1028,7 +1028,7 @@  discard block
 block discarded – undo
1028 1028
     }
1029 1029
 }
1030 1030
 
1031
-if (! function_exists('include_class')) {
1031
+if (!function_exists('include_class')) {
1032 1032
     /**
1033 1033
      * INCLUDE CLASS
1034 1034
      *
@@ -1046,7 +1046,7 @@  discard block
 block discarded – undo
1046 1046
     }
1047 1047
 }
1048 1048
 
1049
-if (! function_exists('include_entity')) {
1049
+if (!function_exists('include_entity')) {
1050 1050
     /**
1051 1051
      * INCLUDE ENTITY
1052 1052
      *
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
     }
1066 1066
 }
1067 1067
 
1068
-if (! function_exists('include_helper')) {
1068
+if (!function_exists('include_helper')) {
1069 1069
     /**
1070 1070
      * INCLUDE HELPER
1071 1071
      *
@@ -1083,7 +1083,7 @@  discard block
 block discarded – undo
1083 1083
     }
1084 1084
 }
1085 1085
 
1086
-if (! function_exists('include_library')) {
1086
+if (!function_exists('include_library')) {
1087 1087
     /**
1088 1088
      * INCLUDE LIBRARY
1089 1089
      *
@@ -1102,7 +1102,7 @@  discard block
 block discarded – undo
1102 1102
     }
1103 1103
 }
1104 1104
 
1105
-if (! function_exists('include_middleware')) {
1105
+if (!function_exists('include_middleware')) {
1106 1106
     /**
1107 1107
      * INCLUDE MIDDLEWARE
1108 1108
      *
@@ -1122,7 +1122,7 @@  discard block
 block discarded – undo
1122 1122
     }
1123 1123
 }
1124 1124
 
1125
-if (! function_exists('include_model')) {
1125
+if (!function_exists('include_model')) {
1126 1126
     /**
1127 1127
      * INCLUDE MODEL
1128 1128
      *
@@ -1141,7 +1141,7 @@  discard block
 block discarded – undo
1141 1141
     }
1142 1142
 }
1143 1143
 
1144
-if (! function_exists('include_resource')) {
1144
+if (!function_exists('include_resource')) {
1145 1145
     /**
1146 1146
      * INCLUDE RESOURCE
1147 1147
      *
@@ -1159,7 +1159,7 @@  discard block
 block discarded – undo
1159 1159
     }
1160 1160
 }
1161 1161
 
1162
-if (! function_exists('include_service')) {
1162
+if (!function_exists('include_service')) {
1163 1163
     /**
1164 1164
      * INCLUDE SERVICE
1165 1165
      *
@@ -1178,7 +1178,7 @@  discard block
 block discarded – undo
1178 1178
     }
1179 1179
 }
1180 1180
 
1181
-if (! function_exists('include_view')) {
1181
+if (!function_exists('include_view')) {
1182 1182
     /**
1183 1183
      * INCLUDE VIEW
1184 1184
      *
@@ -1196,7 +1196,7 @@  discard block
 block discarded – undo
1196 1196
     }
1197 1197
 }
1198 1198
 
1199
-if (! function_exists('include_layout')) {
1199
+if (!function_exists('include_layout')) {
1200 1200
     /**
1201 1201
      * INCLUDE LAYOUT
1202 1202
      *
@@ -1214,7 +1214,7 @@  discard block
 block discarded – undo
1214 1214
     }
1215 1215
 }
1216 1216
 
1217
-if (! function_exists('include_partial')) {
1217
+if (!function_exists('include_partial')) {
1218 1218
     /**
1219 1219
      * INCLUDE PARTIAL
1220 1220
      *
@@ -1232,7 +1232,7 @@  discard block
 block discarded – undo
1232 1232
     }
1233 1233
 }
1234 1234
 
1235
-if (! function_exists('_include_path')) {
1235
+if (!function_exists('_include_path')) {
1236 1236
     /**
1237 1237
      * inclus un fichier
1238 1238
      *
Please login to merge, or discard this patch.