@@ -42,7 +42,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) : ?> |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function collect(bool $reset = true): array |
| 37 | 37 | { |
| 38 | - if (! $reset && $this->cachedRoutes !== []) { |
|
| 38 | + if (!$reset && $this->cachedRoutes !== []) { |
|
| 39 | 39 | return $this->cachedRoutes; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * the LICENSE file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -if (! function_exists('css_url')) { |
|
| 12 | +if (!function_exists('css_url')) { |
|
| 13 | 13 | /** |
| 14 | 14 | * CSS URL |
| 15 | 15 | * |
@@ -23,17 +23,17 @@ discard block |
||
| 23 | 23 | $name = str_replace(site_url() . 'css/', '', htmlspecialchars($name)); |
| 24 | 24 | |
| 25 | 25 | if (is_localfile($name)) { |
| 26 | - $name .= (! preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 26 | + $name .= (!preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 27 | 27 | $filename = WEBROOT . 'css' . DS . $name; |
| 28 | 28 | |
| 29 | 29 | return site_url() . 'css/' . $name . ((file_exists($filename)) ? '?v=' . filemtime($filename) : ''); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - return $name . (! preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 32 | + return $name . (!preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | -if (! function_exists('js_url')) { |
|
| 36 | +if (!function_exists('js_url')) { |
|
| 37 | 37 | /** |
| 38 | 38 | * JS URL |
| 39 | 39 | * |
@@ -47,17 +47,17 @@ discard block |
||
| 47 | 47 | $name = str_replace(site_url() . 'js/', '', htmlspecialchars($name)); |
| 48 | 48 | |
| 49 | 49 | if (is_localfile($name)) { |
| 50 | - $name .= (! preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 50 | + $name .= (!preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 51 | 51 | $filename = WEBROOT . 'js' . DS . $name; |
| 52 | 52 | |
| 53 | 53 | return site_url() . 'js/' . $name . ((file_exists($filename)) ? '?v=' . filemtime($filename) : ''); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return $name . (! preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 56 | + return $name . (!preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | -if (! function_exists('lib_css_url')) { |
|
| 60 | +if (!function_exists('lib_css_url')) { |
|
| 61 | 61 | /** |
| 62 | 62 | * LIB CSS URL |
| 63 | 63 | * |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | ); |
| 77 | 77 | |
| 78 | 78 | if (is_localfile($name)) { |
| 79 | - $name .= (! preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 79 | + $name .= (!preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 80 | 80 | $paths = ['lib', 'vendor', 'plugins']; |
| 81 | 81 | |
| 82 | 82 | foreach ($paths as $path) { |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | return $site_url . 'lib/' . $name; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - return $name . (! preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 93 | + return $name . (!preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | -if (! function_exists('lib_js_url')) { |
|
| 97 | +if (!function_exists('lib_js_url')) { |
|
| 98 | 98 | /** |
| 99 | 99 | * LIB JS URL |
| 100 | 100 | * |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | ); |
| 114 | 114 | |
| 115 | 115 | if (is_localfile($name)) { |
| 116 | - $name .= (! preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 116 | + $name .= (!preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 117 | 117 | $paths = ['lib', 'vendor', 'plugins']; |
| 118 | 118 | |
| 119 | 119 | foreach ($paths as $path) { |
@@ -127,11 +127,11 @@ discard block |
||
| 127 | 127 | return $site_url . 'lib/' . $name; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - return $name . (! preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 130 | + return $name . (!preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
| 131 | 131 | } |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | -if (! function_exists('lib_styles')) { |
|
| 134 | +if (!function_exists('lib_styles')) { |
|
| 135 | 135 | /** |
| 136 | 136 | * LIB_STYLES |
| 137 | 137 | * |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | foreach ($name as $style) { |
| 151 | 151 | if (is_string($style)) { |
| 152 | - $style = (! preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
| 152 | + $style = (!preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
| 153 | 153 | if (is_file(WEBROOT . 'lib' . DS . str_replace('/', DS, $style))) { |
| 154 | 154 | $return[] = '<link rel="preload" type="text/css" href="' . lib_css_url($style) . '" as="style"> |
| 155 | 155 | <link rel="stylesheet" type="text/css" href="' . lib_css_url($style) . '" />'; |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | -if (! function_exists('lib_scripts')) { |
|
| 176 | +if (!function_exists('lib_scripts')) { |
|
| 177 | 177 | /** |
| 178 | 178 | * LIB_SCRIPTS |
| 179 | 179 | * |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | foreach ($name as $script) { |
| 193 | 193 | if (is_string($script)) { |
| 194 | - $script = (! preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
| 194 | + $script = (!preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
| 195 | 195 | if (is_file(WEBROOT . 'lib' . DS . str_replace('/', DS, $script))) { |
| 196 | 196 | $return[] = '<script type="text/javascript" src="' . lib_js_url($script) . '"></script>'; |
| 197 | 197 | } elseif (is_localfile($script)) { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | -if (! function_exists('styles')) { |
|
| 216 | +if (!function_exists('styles')) { |
|
| 217 | 217 | /** |
| 218 | 218 | * STYLES |
| 219 | 219 | * |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | |
| 232 | 232 | foreach ($name as $style) { |
| 233 | 233 | if (is_string($style)) { |
| 234 | - $style = (! preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
| 234 | + $style = (!preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
| 235 | 235 | if (is_file(WEBROOT . 'css' . DS . str_replace('/', DS, $style))) { |
| 236 | 236 | $return[] = '<link rel="preload" type="text/css" href="' . css_url($style) . '" as="style"> |
| 237 | 237 | <link rel="stylesheet" type="text/css" href="' . css_url($style) . '" />'; |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | } |
| 256 | 256 | } |
| 257 | 257 | |
| 258 | -if (! function_exists('scripts')) { |
|
| 258 | +if (!function_exists('scripts')) { |
|
| 259 | 259 | /** |
| 260 | 260 | * SCRIPTS |
| 261 | 261 | * |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | |
| 274 | 274 | foreach ($name as $script) { |
| 275 | 275 | if (is_string($script)) { |
| 276 | - $script = (! preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
| 276 | + $script = (!preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
| 277 | 277 | if (is_file(WEBROOT . 'js' . DS . str_replace('/', DS, $script))) { |
| 278 | 278 | $return[] = '<script type="text/javascript" src="' . js_url($script) . '"></script>'; |
| 279 | 279 | } elseif (is_localfile($script)) { |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | } |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | -if (! function_exists('less_url')) { |
|
| 298 | +if (!function_exists('less_url')) { |
|
| 299 | 299 | /** |
| 300 | 300 | * LESS URL |
| 301 | 301 | * |
@@ -309,17 +309,17 @@ discard block |
||
| 309 | 309 | $name = str_replace(site_url() . 'less/', '', htmlspecialchars($name)); |
| 310 | 310 | |
| 311 | 311 | if (is_localfile($name)) { |
| 312 | - $name .= (! preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
| 312 | + $name .= (!preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
| 313 | 313 | $filename = WEBROOT . 'less' . DS . $name; |
| 314 | 314 | |
| 315 | 315 | return site_url() . 'less/' . $name . ((file_exists($filename)) ? '?v=' . filemtime($filename) : ''); |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - return $name . (! preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
| 318 | + return $name . (!preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
| 319 | 319 | } |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | -if (! function_exists('less_styles')) { |
|
| 322 | +if (!function_exists('less_styles')) { |
|
| 323 | 323 | /** |
| 324 | 324 | * LESS_STYLES |
| 325 | 325 | * |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | |
| 338 | 338 | foreach ($name as $style) { |
| 339 | 339 | if (is_string($style)) { |
| 340 | - $style = (! preg_match('#\.less$#i', $style) ? $style . '.less' : $style); |
|
| 340 | + $style = (!preg_match('#\.less$#i', $style) ? $style . '.less' : $style); |
|
| 341 | 341 | if (is_file(WEBROOT . 'less' . DS . str_replace('/', DS, $style))) { |
| 342 | 342 | $return[] = '<link rel="stylesheet" type="text/less" href="' . less_url($style) . '" />'; |
| 343 | 343 | } elseif (is_localfile($style)) { |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | } |
| 360 | 360 | } |
| 361 | 361 | |
| 362 | -if (! function_exists('img_url')) { |
|
| 362 | +if (!function_exists('img_url')) { |
|
| 363 | 363 | /** |
| 364 | 364 | * IMG URL |
| 365 | 365 | * |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | } |
| 387 | 387 | } |
| 388 | 388 | |
| 389 | -if (! function_exists('img')) { |
|
| 389 | +if (!function_exists('img')) { |
|
| 390 | 390 | /** |
| 391 | 391 | * IMG |
| 392 | 392 | * |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | } |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | -if (! function_exists('docs_url')) { |
|
| 420 | +if (!function_exists('docs_url')) { |
|
| 421 | 421 | /** |
| 422 | 422 | * DOCS URL |
| 423 | 423 | * |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | } |
| 445 | 445 | } |
| 446 | 446 | |
| 447 | -if (! function_exists('videos_url')) { |
|
| 447 | +if (!function_exists('videos_url')) { |
|
| 448 | 448 | /** |
| 449 | 449 | * VIDEOS URL |
| 450 | 450 | * |
@@ -471,7 +471,7 @@ discard block |
||
| 471 | 471 | } |
| 472 | 472 | } |
| 473 | 473 | |
| 474 | -if (! function_exists('mix')) { |
|
| 474 | +if (!function_exists('mix')) { |
|
| 475 | 475 | /** |
| 476 | 476 | * Obtenez le chemin d'accès à un fichier Mix versionné. |
| 477 | 477 | * |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | if (is_file($publicPath . $manifestDirectory . '/hot')) { |
| 497 | 497 | $url = rtrim(file_get_contents($publicPath . $manifestDirectory . '/hot')); |
| 498 | 498 | |
| 499 | - if (! empty($customUrl = $customUrl = $config->hot_proxy_url)) { |
|
| 499 | + if (!empty($customUrl = $customUrl = $config->hot_proxy_url)) { |
|
| 500 | 500 | return $customUrl . $path; |
| 501 | 501 | } |
| 502 | 502 | |
@@ -509,8 +509,8 @@ discard block |
||
| 509 | 509 | |
| 510 | 510 | $manifestPath = $publicPath . $manifestDirectory . '/mix-manifest.json'; |
| 511 | 511 | |
| 512 | - if (! isset($manifests[$manifestPath])) { |
|
| 513 | - if (! is_file($manifestPath)) { |
|
| 512 | + if (!isset($manifests[$manifestPath])) { |
|
| 513 | + if (!is_file($manifestPath)) { |
|
| 514 | 514 | throw new Exception('Le manifeste Mix n\'existe pas.'); |
| 515 | 515 | } |
| 516 | 516 | |
@@ -519,10 +519,10 @@ discard block |
||
| 519 | 519 | |
| 520 | 520 | $manifest = $manifests[$manifestPath]; |
| 521 | 521 | |
| 522 | - if (! isset($manifest[$path])) { |
|
| 522 | + if (!isset($manifest[$path])) { |
|
| 523 | 523 | $exception = new Exception("Impossible de localiser le fichier Mix: {$path}."); |
| 524 | 524 | |
| 525 | - if (! BLITZ_DEBUG) { |
|
| 525 | + if (!BLITZ_DEBUG) { |
|
| 526 | 526 | return $path; |
| 527 | 527 | } |
| 528 | 528 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | foreach ($files as $file) { |
| 36 | 36 | $className = $this->locator->getClassname($file); |
| 37 | 37 | |
| 38 | - if ($className === '' || ! class_exists($className) || ! is_a($className, EventListenerInterface::class, true)) { |
|
| 38 | + if ($className === '' || !class_exists($className) || !is_a($className, EventListenerInterface::class, true)) { |
|
| 39 | 39 | continue; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -66,14 +66,14 @@ |
||
| 66 | 66 | |
| 67 | 67 | $directory = dirname($path); |
| 68 | 68 | |
| 69 | - if (! is_dir($directory)) { |
|
| 69 | + if (!is_dir($directory)) { |
|
| 70 | 70 | mkdir($directory, 0o777, true); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | if (file_exists($path)) { |
| 74 | 74 | $overwrite = (bool) $this->option('f'); |
| 75 | 75 | |
| 76 | - if (! $overwrite && ! $this->confirm("Le fichier '{$cleanPath}' existe déjà dans la destination. Le remplacé?")) { |
|
| 76 | + if (!$overwrite && !$this->confirm("Le fichier '{$cleanPath}' existe déjà dans la destination. Le remplacé?")) { |
|
| 77 | 77 | $this->error("{$cleanPath} sauté. Si vous souhaitez le remplacer, s'il vous plaît utiliser l'option '-f' ou répondre 'y' à l'invite.")->eol(); |
| 78 | 78 | |
| 79 | 79 | return; |
@@ -127,7 +127,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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, 0o775, true); |
| 486 | 486 | } |
| 487 | 487 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | use BlitzPHP\Container\Services; |
| 13 | 13 | |
| 14 | -if (! function_exists('directory_map')) { |
|
| 14 | +if (!function_exists('directory_map')) { |
|
| 15 | 15 | /** |
| 16 | 16 | * Créer une carte de répertoire |
| 17 | 17 | * |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | -if (! function_exists('directory_mirror')) { |
|
| 32 | +if (!function_exists('directory_mirror')) { |
|
| 33 | 33 | /** |
| 34 | 34 | * Copie récursivement les fichiers et répertoires du répertoire d'origine |
| 35 | 35 | * dans le répertoire cible, c'est-à-dire "miroir" son contenu. |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | -if (! function_exists('write_file')) { |
|
| 45 | +if (!function_exists('write_file')) { |
|
| 46 | 46 | /** |
| 47 | 47 | * Write File |
| 48 | 48 | * |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | -if (! function_exists('delete_files')) { |
|
| 79 | +if (!function_exists('delete_files')) { |
|
| 80 | 80 | /** |
| 81 | 81 | * Delete Files |
| 82 | 82 | * |
@@ -101,18 +101,18 @@ discard block |
||
| 101 | 101 | RecursiveIteratorIterator::CHILD_FIRST |
| 102 | 102 | ) as $object) { |
| 103 | 103 | $filename = $object->getFilename(); |
| 104 | - if (! $hidden && $filename[0] === '.') { |
|
| 104 | + if (!$hidden && $filename[0] === '.') { |
|
| 105 | 105 | continue; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | - if (! $htdocs || ! preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename)) { |
|
| 108 | + if (!$htdocs || !preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename)) { |
|
| 109 | 109 | $isDir = $object->isDir(); |
| 110 | 110 | if ($isDir && $delDir) { |
| 111 | 111 | rmdir($object->getPathname()); |
| 112 | 112 | |
| 113 | 113 | continue; |
| 114 | 114 | } |
| 115 | - if (! $isDir) { |
|
| 115 | + if (!$isDir) { |
|
| 116 | 116 | unlink($object->getPathname()); |
| 117 | 117 | } |
| 118 | 118 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | -if (! function_exists('get_filenames')) { |
|
| 128 | +if (!function_exists('get_filenames')) { |
|
| 129 | 129 | /** |
| 130 | 130 | * Get Filenames |
| 131 | 131 | * |
@@ -154,11 +154,11 @@ discard block |
||
| 154 | 154 | RecursiveIteratorIterator::SELF_FIRST |
| 155 | 155 | ) as $name => $object) { |
| 156 | 156 | $basename = pathinfo($name, PATHINFO_BASENAME); |
| 157 | - if (! $hidden && $basename[0] === '.') { |
|
| 157 | + if (!$hidden && $basename[0] === '.') { |
|
| 158 | 158 | continue; |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | - if ($includeDir || ! $object->isDir()) { |
|
| 161 | + if ($includeDir || !$object->isDir()) { |
|
| 162 | 162 | if ($includePath === false) { |
| 163 | 163 | $files[] = $basename; |
| 164 | 164 | } elseif ($includePath === null) { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | -if (! function_exists('get_dir_file_info')) { |
|
| 181 | +if (!function_exists('get_dir_file_info')) { |
|
| 182 | 182 | /** |
| 183 | 183 | * Get Directory File Information |
| 184 | 184 | * |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | -if (! function_exists('get_file_info')) { |
|
| 227 | +if (!function_exists('get_file_info')) { |
|
| 228 | 228 | /** |
| 229 | 229 | * Get File Info |
| 230 | 230 | * |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | */ |
| 241 | 241 | function get_file_info(string $file, $returnedValues = ['name', 'server_path', 'size', 'date']) |
| 242 | 242 | { |
| 243 | - if (! is_file($file)) { |
|
| 243 | + if (!is_file($file)) { |
|
| 244 | 244 | return null; |
| 245 | 245 | } |
| 246 | 246 | |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | } |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | -if (! function_exists('symbolic_permissions')) { |
|
| 293 | +if (!function_exists('symbolic_permissions')) { |
|
| 294 | 294 | /** |
| 295 | 295 | * Symbolic Permissions |
| 296 | 296 | * |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | } |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | -if (! function_exists('octal_permissions')) { |
|
| 341 | +if (!function_exists('octal_permissions')) { |
|
| 342 | 342 | /** |
| 343 | 343 | * Octal Permissions |
| 344 | 344 | * |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | } |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | -if (! function_exists('same_file')) { |
|
| 356 | +if (!function_exists('same_file')) { |
|
| 357 | 357 | /** |
| 358 | 358 | * Checks if two files both exist and have identical hashes |
| 359 | 359 | * |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | } |
| 366 | 366 | } |
| 367 | 367 | |
| 368 | -if (! function_exists('set_realpath')) { |
|
| 368 | +if (!function_exists('set_realpath')) { |
|
| 369 | 369 | /** |
| 370 | 370 | * Set Realpath |
| 371 | 371 | * |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | // Resolve the path |
| 382 | 382 | if (realpath($path) !== false) { |
| 383 | 383 | $path = realpath($path); |
| 384 | - } elseif ($checkExistence && ! is_dir($path) && ! is_file($path)) { |
|
| 384 | + } elseif ($checkExistence && !is_dir($path) && !is_file($path)) { |
|
| 385 | 385 | throw new InvalidArgumentException('Not a valid path: ' . $path); |
| 386 | 386 | } |
| 387 | 387 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public function addIf(string $key, Closure $callback): void |
| 110 | 110 | { |
| 111 | - if (! $this->has($key)) { |
|
| 111 | + if (!$this->has($key)) { |
|
| 112 | 112 | $this->add($key, $callback); |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | */ |
| 225 | 225 | private function discoveProviders(): void |
| 226 | 226 | { |
| 227 | - if (! self::$discovered) { |
|
| 227 | + if (!self::$discovered) { |
|
| 228 | 228 | $locator = Services::locator(); |
| 229 | 229 | $files = array_merge( |
| 230 | 230 | $locator->search('Config/Providers'), |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | public function getVarData(): array |
| 95 | 95 | { |
| 96 | 96 | return [ |
| 97 | - 'Données de la vues' => array_filter($this->viewer->getData(), static fn ($data) => ! ($data instanceof ErrorBag)), |
|
| 97 | + 'Données de la vues' => array_filter($this->viewer->getData(), static fn ($data) => !($data instanceof ErrorBag)), |
|
| 98 | 98 | ]; |
| 99 | 99 | } |
| 100 | 100 | |