@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | public function send(Mail $mail): bool |
| 174 | 174 | { |
| 175 | 175 | foreach ($this->bcc() as $key => $value) { |
| 176 | - if (empty($value) || ! is_string($value)) { |
|
| 176 | + if (empty($value) || !is_string($value)) { |
|
| 177 | 177 | continue; |
| 178 | 178 | } |
| 179 | 179 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | foreach ($this->cc() as $key => $value) { |
| 188 | - if (empty($value) || ! is_string($value)) { |
|
| 188 | + if (empty($value) || !is_string($value)) { |
|
| 189 | 189 | continue; |
| 190 | 190 | } |
| 191 | 191 | |
@@ -198,12 +198,12 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | $content = $this->content(); |
| 200 | 200 | |
| 201 | - if (! empty($content['view'])) { |
|
| 201 | + if (!empty($content['view'])) { |
|
| 202 | 202 | $mail->view($content['view'], $this->data()); |
| 203 | - } elseif (! empty($content['html'])) { |
|
| 203 | + } elseif (!empty($content['html'])) { |
|
| 204 | 204 | $mail->html($content['html']); |
| 205 | 205 | } |
| 206 | - if (! empty($content['text'])) { |
|
| 206 | + if (!empty($content['text'])) { |
|
| 207 | 207 | $mail->text($content['text']); |
| 208 | 208 | } |
| 209 | 209 | |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $mail->priority($this->priority()); |
| 213 | 213 | |
| 214 | 214 | foreach ($this->replyTo() as $key => $value) { |
| 215 | - if (empty($value) || ! is_string($value)) { |
|
| 215 | + if (empty($value) || !is_string($value)) { |
|
| 216 | 216 | continue; |
| 217 | 217 | } |
| 218 | 218 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | return $models; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - if (! self::isLoaded('models', $model)) { |
|
| 76 | + if (!self::isLoaded('models', $model)) { |
|
| 77 | 77 | self::loaded('models', $model, FileLocator::model($model, $connection)); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | private static function isLoaded(string $module, $element): bool |
| 89 | 89 | { |
| 90 | - if (! isset(self::$loads[$module]) || ! is_array(self::$loads[$module])) { |
|
| 90 | + if (!isset(self::$loads[$module]) || !is_array(self::$loads[$module])) { |
|
| 91 | 91 | return false; |
| 92 | 92 | } |
| 93 | 93 | |
@@ -269,7 +269,7 @@ |
||
| 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 | |
@@ -27,11 +27,11 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -97,7 +97,7 @@ |
||
| 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(); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | // Toujours là ? Ensuite, nous pouvons essayer de faire correspondre l'URI avec |
| 158 | 158 | // Contrôleurs/répertoires, mais l'application peut ne pas |
| 159 | 159 | // vouloir ceci, comme dans le cas des API. |
| 160 | - if (! $this->collection->shouldAutoRoute()) { |
|
| 160 | + if (!$this->collection->shouldAutoRoute()) { |
|
| 161 | 161 | throw new PageNotFoundException("Impossible de trouver une route pour '{$this->collection->getHTTPVerb()}: {$uri}'."); |
| 162 | 162 | } |
| 163 | 163 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | */ |
| 188 | 188 | public function controllerName() |
| 189 | 189 | { |
| 190 | - if (! is_string($this->controller)) { |
|
| 190 | + if (!is_string($this->controller)) { |
|
| 191 | 191 | return $this->controller; |
| 192 | 192 | } |
| 193 | 193 | |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | |
| 228 | 228 | return [ |
| 229 | 229 | $routeArray[0], // Controller |
| 230 | - $routeArray[1] ?? 'index', // Method |
|
| 230 | + $routeArray[1] ?? 'index', // Method |
|
| 231 | 231 | ]; |
| 232 | 232 | } |
| 233 | 233 | |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | // Cette route est-elle censée rediriger vers une autre ? |
| 352 | 352 | if ($this->collection->isRedirect($routeKey)) { |
| 353 | 353 | // remplacement des groupes de routes correspondants par des références : post/([0-9]+) -> post/$1 |
| 354 | - $redirectTo = preg_replace_callback('/(\([^\(]+\))/', static function () { |
|
| 354 | + $redirectTo = preg_replace_callback('/(\([^\(]+\))/', static function() { |
|
| 355 | 355 | static $i = 1; |
| 356 | 356 | |
| 357 | 357 | return '$' . $i++; |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | ); |
| 372 | 372 | |
| 373 | 373 | if ($this->collection->shouldUseSupportedLocalesOnly() |
| 374 | - && ! in_array($matched['locale'], config('App')->supportedLocales, true)) { |
|
| 374 | + && !in_array($matched['locale'], config('App')->supportedLocales, true)) { |
|
| 375 | 375 | // Lancer une exception pour empêcher l'autorouteur, |
| 376 | 376 | // si activé, essayer de trouver une route |
| 377 | 377 | throw PageNotFoundException::localeNotSupported($matched['locale']); |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | |
| 384 | 384 | // Utilisons-nous Closures ? Si tel est le cas, nous devons collecter les paramètres dans un tableau |
| 385 | 385 | // afin qu'ils puissent être transmis ultérieurement à la méthode du contrôleur. |
| 386 | - if (! is_string($handler) && is_callable($handler)) { |
|
| 386 | + if (!is_string($handler) && is_callable($handler)) { |
|
| 387 | 387 | $this->controller = $handler; |
| 388 | 388 | |
| 389 | 389 | // Supprime la chaîne d'origine du tableau matches |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | |
| 460 | 460 | // $this->method contient déjà le nom de la méthode par défaut, |
| 461 | 461 | // donc ne l'écrasez pas avec le vide. |
| 462 | - if (! empty($method)) { |
|
| 462 | + if (!empty($method)) { |
|
| 463 | 463 | $this->setMethod($method); |
| 464 | 464 | } |
| 465 | 465 | |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | $i = 1; |
| 126 | 126 | |
| 127 | 127 | foreach ($route['params'] as $required) { |
| 128 | - if ($longest && ! $required) { |
|
| 128 | + if ($longest && !$required) { |
|
| 129 | 129 | $sampleUri .= '/' . $i++; |
| 130 | 130 | } |
| 131 | 131 | } |
@@ -74,14 +74,14 @@ discard block |
||
| 74 | 74 | return; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - if (! in_array($env, self::$knownTypes, true)) { |
|
| 77 | + if (!in_array($env, self::$knownTypes, true)) { |
|
| 78 | 78 | $this->error(sprintf('Type d\'environnement non valide "%s". Attendu un des "%s".', $env, implode('" et "', self::$knownTypes))); |
| 79 | 79 | $this->newLine(); |
| 80 | 80 | |
| 81 | 81 | return; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - if (! $this->writeNewEnvironmentToEnvFile($env)) { |
|
| 84 | + if (!$this->writeNewEnvironmentToEnvFile($env)) { |
|
| 85 | 85 | $this->error('Erreur dans l\'écriture nouvel environnement dans le fichier `.env`.'); |
| 86 | 86 | $this->newLine(); |
| 87 | 87 | |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | $baseEnv = ROOTPATH . '.env.example'; |
| 102 | 102 | $envFile = ROOTPATH . '.env'; |
| 103 | 103 | |
| 104 | - if (! is_file($envFile)) { |
|
| 105 | - if (! is_file($baseEnv)) { |
|
| 104 | + if (!is_file($envFile)) { |
|
| 105 | + if (!is_file($baseEnv)) { |
|
| 106 | 106 | $this->writer->warn('Les deux fichiers `.env.example` et `.env` sont manquants.', true); |
| 107 | 107 | $this->write('Il est impossible d\'écrire le nouveau type d\'environnement.'); |
| 108 | 108 | $this->newLine(); |
@@ -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_path')) { |
|
| 12 | +if (!function_exists('css_path')) { |
|
| 13 | 13 | /** |
| 14 | 14 | * CSS PATH |
| 15 | 15 | * |
@@ -19,7 +19,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 189 | 189 | } |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | -if (! function_exists('resource_path')) { |
|
| 192 | +if (!function_exists('resource_path')) { |
|
| 193 | 193 | /** |
| 194 | 194 | * BASE RESOURCE PATH |
| 195 | 195 | * |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | function resource_path(string $name = ''): string |
| 201 | 201 | { |
| 202 | - if (! empty($name)) { |
|
| 202 | + if (!empty($name)) { |
|
| 203 | 203 | $name = ltrim($name, '/\\'); |
| 204 | 204 | } |
| 205 | 205 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | -if (! function_exists('class_path')) { |
|
| 210 | +if (!function_exists('class_path')) { |
|
| 211 | 211 | /** |
| 212 | 212 | * CLASS PATH |
| 213 | 213 | * |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | */ |
| 218 | 218 | function class_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 |
||
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | -if (! function_exists('config_path')) { |
|
| 228 | +if (!function_exists('config_path')) { |
|
| 229 | 229 | /** |
| 230 | 230 | * CONFIG PATH |
| 231 | 231 | * |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | */ |
| 236 | 236 | function config_path(string $name = ''): string |
| 237 | 237 | { |
| 238 | - if (! empty($name)) { |
|
| 238 | + if (!empty($name)) { |
|
| 239 | 239 | $name = DS . ltrim($name, '/\\'); |
| 240 | 240 | } |
| 241 | 241 | |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | -if (! function_exists('controller_path')) { |
|
| 246 | +if (!function_exists('controller_path')) { |
|
| 247 | 247 | /** |
| 248 | 248 | * CONTROLLER PATH |
| 249 | 249 | * |
@@ -254,10 +254,10 @@ discard block |
||
| 254 | 254 | */ |
| 255 | 255 | function controller_path(string $name = '', bool $only = true): string |
| 256 | 256 | { |
| 257 | - if (! empty($name)) { |
|
| 257 | + if (!empty($name)) { |
|
| 258 | 258 | $name = ltrim($name, '/\\'); |
| 259 | 259 | |
| 260 | - if ($only === true && ! preg_match('#Controller\.php$#', $name)) { |
|
| 260 | + if ($only === true && !preg_match('#Controller\.php$#', $name)) { |
|
| 261 | 261 | $name = ucfirst(strtolower($name)) . 'Controller.php'; |
| 262 | 262 | } |
| 263 | 263 | } |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | -if (! function_exists('entity_path')) { |
|
| 269 | +if (!function_exists('entity_path')) { |
|
| 270 | 270 | /** |
| 271 | 271 | * ENTITY PATH |
| 272 | 272 | * |
@@ -277,10 +277,10 @@ discard block |
||
| 277 | 277 | */ |
| 278 | 278 | function entity_path(string $name = '', bool $only = true): string |
| 279 | 279 | { |
| 280 | - if (! empty($name)) { |
|
| 280 | + if (!empty($name)) { |
|
| 281 | 281 | $name = ltrim($name, '/\\'); |
| 282 | 282 | |
| 283 | - if ($only === true && ! preg_match('#Entity\.php$#', $name)) { |
|
| 283 | + if ($only === true && !preg_match('#Entity\.php$#', $name)) { |
|
| 284 | 284 | $name = ucfirst($name) . 'Entity.php'; |
| 285 | 285 | } |
| 286 | 286 | } |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | } |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | -if (! function_exists('helper_path')) { |
|
| 292 | +if (!function_exists('helper_path')) { |
|
| 293 | 293 | /** |
| 294 | 294 | * HELPER PATH |
| 295 | 295 | * |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | */ |
| 301 | 301 | function helper_path(string $name = '', bool $system = false): string |
| 302 | 302 | { |
| 303 | - if (! empty($name)) { |
|
| 303 | + if (!empty($name)) { |
|
| 304 | 304 | $name = DS . ltrim($name, '/\\'); |
| 305 | 305 | } |
| 306 | 306 | if ($system === true) { |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | } |
| 312 | 312 | } |
| 313 | 313 | |
| 314 | -if (! function_exists('library_path')) { |
|
| 314 | +if (!function_exists('library_path')) { |
|
| 315 | 315 | /** |
| 316 | 316 | * LIBRARY PATH |
| 317 | 317 | * |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | */ |
| 323 | 323 | function library_path(string $name = '', bool $system = false): string |
| 324 | 324 | { |
| 325 | - if (! empty($name)) { |
|
| 325 | + if (!empty($name)) { |
|
| 326 | 326 | $name = DS . ltrim($name, '/\\'); |
| 327 | 327 | } |
| 328 | 328 | if ($system === true) { |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | } |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | -if (! function_exists('middleware_path')) { |
|
| 336 | +if (!function_exists('middleware_path')) { |
|
| 337 | 337 | /** |
| 338 | 338 | * MIDDLEWARE PATH |
| 339 | 339 | * |
@@ -345,10 +345,10 @@ discard block |
||
| 345 | 345 | */ |
| 346 | 346 | function middleware_path(string $name = '', bool $system = false, bool $only = true): string |
| 347 | 347 | { |
| 348 | - if (! empty($name)) { |
|
| 348 | + if (!empty($name)) { |
|
| 349 | 349 | $name = DS . ltrim($name, '/\\'); |
| 350 | 350 | |
| 351 | - if ($only === true && ! preg_match('#Middleware\.php$#', $name)) { |
|
| 351 | + if ($only === true && !preg_match('#Middleware\.php$#', $name)) { |
|
| 352 | 352 | $name = ucfirst($name) . 'Middleware.php'; |
| 353 | 353 | } |
| 354 | 354 | } |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | } |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | -if (! function_exists('model_path')) { |
|
| 363 | +if (!function_exists('model_path')) { |
|
| 364 | 364 | /** |
| 365 | 365 | * MODEL PATH |
| 366 | 366 | * |
@@ -371,10 +371,10 @@ discard block |
||
| 371 | 371 | */ |
| 372 | 372 | function model_path(string $name = '', bool $only = true): string |
| 373 | 373 | { |
| 374 | - if (! empty($name)) { |
|
| 374 | + if (!empty($name)) { |
|
| 375 | 375 | $name = ltrim($name, '/\\'); |
| 376 | 376 | |
| 377 | - if ($only === true && ! preg_match('#Model\.php$#', $name)) { |
|
| 377 | + if ($only === true && !preg_match('#Model\.php$#', $name)) { |
|
| 378 | 378 | $name = ucfirst(strtolower($name)) . 'Model.php'; |
| 379 | 379 | } |
| 380 | 380 | } |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | } |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | -if (! function_exists('app_resource_path')) { |
|
| 386 | +if (!function_exists('app_resource_path')) { |
|
| 387 | 387 | /** |
| 388 | 388 | * APP RESOURCE PATH |
| 389 | 389 | * |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | */ |
| 394 | 394 | function app_resource_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 |
||
| 401 | 401 | } |
| 402 | 402 | } |
| 403 | 403 | |
| 404 | -if (! function_exists('migration_path')) { |
|
| 404 | +if (!function_exists('migration_path')) { |
|
| 405 | 405 | /** |
| 406 | 406 | * MIGRATION PATH |
| 407 | 407 | * |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | */ |
| 412 | 412 | function migration_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 |
||
| 419 | 419 | } |
| 420 | 420 | } |
| 421 | 421 | |
| 422 | -if (! function_exists('seed_path')) { |
|
| 422 | +if (!function_exists('seed_path')) { |
|
| 423 | 423 | /** |
| 424 | 424 | * SEED PATH |
| 425 | 425 | * |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | */ |
| 430 | 430 | function seed_path(string $name = ''): string |
| 431 | 431 | { |
| 432 | - if (! empty($name)) { |
|
| 432 | + if (!empty($name)) { |
|
| 433 | 433 | $name = ltrim($name, '/\\'); |
| 434 | 434 | } |
| 435 | 435 | |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | } |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | -if (! function_exists('lang_path')) { |
|
| 440 | +if (!function_exists('lang_path')) { |
|
| 441 | 441 | /** |
| 442 | 442 | * LANG PATH |
| 443 | 443 | * |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | */ |
| 449 | 449 | function lang_path(string $name = '', bool $system = false): string |
| 450 | 450 | { |
| 451 | - if (! empty($name)) { |
|
| 451 | + if (!empty($name)) { |
|
| 452 | 452 | $name = DS . ltrim($name, '/\\'); |
| 453 | 453 | } |
| 454 | 454 | if ($system === true) { |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | } |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | -if (! function_exists('service_path')) { |
|
| 462 | +if (!function_exists('service_path')) { |
|
| 463 | 463 | /** |
| 464 | 464 | * SERVICE PATH |
| 465 | 465 | * |
@@ -470,10 +470,10 @@ discard block |
||
| 470 | 470 | */ |
| 471 | 471 | function service_path(string $name = '', bool $only = true): string |
| 472 | 472 | { |
| 473 | - if (! empty($name)) { |
|
| 473 | + if (!empty($name)) { |
|
| 474 | 474 | $name = ltrim($name, '/\\'); |
| 475 | 475 | |
| 476 | - if ($only === true && ! preg_match('#Service\.php$#', $name)) { |
|
| 476 | + if ($only === true && !preg_match('#Service\.php$#', $name)) { |
|
| 477 | 477 | $name = ucfirst($name) . 'Service.php'; |
| 478 | 478 | } |
| 479 | 479 | } |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | } |
| 483 | 483 | } |
| 484 | 484 | |
| 485 | -if (! function_exists('view_path')) { |
|
| 485 | +if (!function_exists('view_path')) { |
|
| 486 | 486 | /** |
| 487 | 487 | * VIEW PATH |
| 488 | 488 | * |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | */ |
| 493 | 493 | function view_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 |
||
| 500 | 500 | } |
| 501 | 501 | } |
| 502 | 502 | |
| 503 | -if (! function_exists('layout_path')) { |
|
| 503 | +if (!function_exists('layout_path')) { |
|
| 504 | 504 | /** |
| 505 | 505 | * LAYOUT PATH |
| 506 | 506 | * |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | */ |
| 511 | 511 | function layout_path(string $name = ''): string |
| 512 | 512 | { |
| 513 | - if (! empty($name)) { |
|
| 513 | + if (!empty($name)) { |
|
| 514 | 514 | $name = ltrim($name, '/\\'); |
| 515 | 515 | } |
| 516 | 516 | |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | } |
| 519 | 519 | } |
| 520 | 520 | |
| 521 | -if (! function_exists('partial_path')) { |
|
| 521 | +if (!function_exists('partial_path')) { |
|
| 522 | 522 | /** |
| 523 | 523 | * PARTIAL PATH |
| 524 | 524 | * |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | */ |
| 529 | 529 | function partial_path(string $name = ''): string |
| 530 | 530 | { |
| 531 | - if (! empty($name)) { |
|
| 531 | + if (!empty($name)) { |
|
| 532 | 532 | $name = DS . ltrim($name, '/\\'); |
| 533 | 533 | } |
| 534 | 534 | |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | } |
| 537 | 537 | } |
| 538 | 538 | |
| 539 | -if (! function_exists('app_path')) { |
|
| 539 | +if (!function_exists('app_path')) { |
|
| 540 | 540 | /** |
| 541 | 541 | * APP PATH |
| 542 | 542 | * |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | */ |
| 547 | 547 | function app_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 |
||
| 554 | 554 | } |
| 555 | 555 | } |
| 556 | 556 | |
| 557 | -if (! function_exists('cache_path')) { |
|
| 557 | +if (!function_exists('cache_path')) { |
|
| 558 | 558 | /** |
| 559 | 559 | * CACHE PATH |
| 560 | 560 | * |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | */ |
| 565 | 565 | function cache_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 |
||
| 572 | 572 | } |
| 573 | 573 | } |
| 574 | 574 | |
| 575 | -if (! function_exists('dump_path')) { |
|
| 575 | +if (!function_exists('dump_path')) { |
|
| 576 | 576 | /** |
| 577 | 577 | * DUMP PATH |
| 578 | 578 | * |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | */ |
| 583 | 583 | function dump_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 |
||
| 590 | 590 | } |
| 591 | 591 | } |
| 592 | 592 | |
| 593 | -if (! function_exists('storage_path')) { |
|
| 593 | +if (!function_exists('storage_path')) { |
|
| 594 | 594 | /** |
| 595 | 595 | * STORAGE PATH |
| 596 | 596 | * |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | */ |
| 601 | 601 | function storage_path(string $name = ''): string |
| 602 | 602 | { |
| 603 | - if (! empty($name)) { |
|
| 603 | + if (!empty($name)) { |
|
| 604 | 604 | $name = ltrim($name, '/\\'); |
| 605 | 605 | } |
| 606 | 606 | |
@@ -608,7 +608,7 @@ discard block |
||
| 608 | 608 | } |
| 609 | 609 | } |
| 610 | 610 | |
| 611 | -if (! function_exists('css_exist')) { |
|
| 611 | +if (!function_exists('css_exist')) { |
|
| 612 | 612 | /** |
| 613 | 613 | * CSS EXIST |
| 614 | 614 | * |
@@ -622,7 +622,7 @@ discard block |
||
| 622 | 622 | } |
| 623 | 623 | } |
| 624 | 624 | |
| 625 | -if (! function_exists('js_exist')) { |
|
| 625 | +if (!function_exists('js_exist')) { |
|
| 626 | 626 | /** |
| 627 | 627 | * JS EXIST |
| 628 | 628 | * |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | } |
| 637 | 637 | } |
| 638 | 638 | |
| 639 | -if (! function_exists('lib_exist')) { |
|
| 639 | +if (!function_exists('lib_exist')) { |
|
| 640 | 640 | /** |
| 641 | 641 | * LIB EXIST |
| 642 | 642 | * |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | } |
| 651 | 651 | } |
| 652 | 652 | |
| 653 | -if (! function_exists('less_exist')) { |
|
| 653 | +if (!function_exists('less_exist')) { |
|
| 654 | 654 | /** |
| 655 | 655 | * LESS EXIST |
| 656 | 656 | * |
@@ -664,7 +664,7 @@ discard block |
||
| 664 | 664 | } |
| 665 | 665 | } |
| 666 | 666 | |
| 667 | -if (! function_exists('img_exist')) { |
|
| 667 | +if (!function_exists('img_exist')) { |
|
| 668 | 668 | /** |
| 669 | 669 | * IMG EXIST |
| 670 | 670 | * |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | } |
| 679 | 679 | } |
| 680 | 680 | |
| 681 | -if (! function_exists('doc_exist')) { |
|
| 681 | +if (!function_exists('doc_exist')) { |
|
| 682 | 682 | /** |
| 683 | 683 | * DOC EXIST |
| 684 | 684 | * |
@@ -692,7 +692,7 @@ discard block |
||
| 692 | 692 | } |
| 693 | 693 | } |
| 694 | 694 | |
| 695 | -if (! function_exists('video_exist')) { |
|
| 695 | +if (!function_exists('video_exist')) { |
|
| 696 | 696 | /** |
| 697 | 697 | * VIDEO EXIST |
| 698 | 698 | * |
@@ -706,7 +706,7 @@ discard block |
||
| 706 | 706 | } |
| 707 | 707 | } |
| 708 | 708 | |
| 709 | -if (! function_exists('public_exist')) { |
|
| 709 | +if (!function_exists('public_exist')) { |
|
| 710 | 710 | /** |
| 711 | 711 | * PUBLIC EXIST |
| 712 | 712 | * |
@@ -720,7 +720,7 @@ discard block |
||
| 720 | 720 | } |
| 721 | 721 | } |
| 722 | 722 | |
| 723 | -if (! function_exists('class_exist')) { |
|
| 723 | +if (!function_exists('class_exist')) { |
|
| 724 | 724 | /** |
| 725 | 725 | * CLASS EXIST |
| 726 | 726 | * |
@@ -734,7 +734,7 @@ discard block |
||
| 734 | 734 | } |
| 735 | 735 | } |
| 736 | 736 | |
| 737 | -if (! function_exists('config_exist')) { |
|
| 737 | +if (!function_exists('config_exist')) { |
|
| 738 | 738 | /** |
| 739 | 739 | * CONFIG EXIST |
| 740 | 740 | * |
@@ -748,7 +748,7 @@ discard block |
||
| 748 | 748 | } |
| 749 | 749 | } |
| 750 | 750 | |
| 751 | -if (! function_exists('controller_exist')) { |
|
| 751 | +if (!function_exists('controller_exist')) { |
|
| 752 | 752 | /** |
| 753 | 753 | * CONTROLLER EXIST |
| 754 | 754 | * |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | } |
| 764 | 764 | } |
| 765 | 765 | |
| 766 | -if (! function_exists('entity_exist')) { |
|
| 766 | +if (!function_exists('entity_exist')) { |
|
| 767 | 767 | /** |
| 768 | 768 | * ENTITY EXIST |
| 769 | 769 | * |
@@ -778,7 +778,7 @@ discard block |
||
| 778 | 778 | } |
| 779 | 779 | } |
| 780 | 780 | |
| 781 | -if (! function_exists('helper_exist')) { |
|
| 781 | +if (!function_exists('helper_exist')) { |
|
| 782 | 782 | /** |
| 783 | 783 | * HELPER EXIST |
| 784 | 784 | * |
@@ -793,7 +793,7 @@ discard block |
||
| 793 | 793 | } |
| 794 | 794 | } |
| 795 | 795 | |
| 796 | -if (! function_exists('library_exist')) { |
|
| 796 | +if (!function_exists('library_exist')) { |
|
| 797 | 797 | /** |
| 798 | 798 | * LIBRARY EXIST |
| 799 | 799 | * |
@@ -808,7 +808,7 @@ discard block |
||
| 808 | 808 | } |
| 809 | 809 | } |
| 810 | 810 | |
| 811 | -if (! function_exists('middleware_exist')) { |
|
| 811 | +if (!function_exists('middleware_exist')) { |
|
| 812 | 812 | /** |
| 813 | 813 | * MIDDLEWARE EXIST |
| 814 | 814 | * |
@@ -824,7 +824,7 @@ discard block |
||
| 824 | 824 | } |
| 825 | 825 | } |
| 826 | 826 | |
| 827 | -if (! function_exists('model_exist')) { |
|
| 827 | +if (!function_exists('model_exist')) { |
|
| 828 | 828 | /** |
| 829 | 829 | * MODEL EXIST |
| 830 | 830 | * |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | } |
| 840 | 840 | } |
| 841 | 841 | |
| 842 | -if (! function_exists('resource_exist')) { |
|
| 842 | +if (!function_exists('resource_exist')) { |
|
| 843 | 843 | /** |
| 844 | 844 | * RESOURCE EXIST |
| 845 | 845 | * |
@@ -853,7 +853,7 @@ discard block |
||
| 853 | 853 | } |
| 854 | 854 | } |
| 855 | 855 | |
| 856 | -if (! function_exists('migration_exist')) { |
|
| 856 | +if (!function_exists('migration_exist')) { |
|
| 857 | 857 | /** |
| 858 | 858 | * MIGRATION EXIST |
| 859 | 859 | * |
@@ -867,7 +867,7 @@ discard block |
||
| 867 | 867 | } |
| 868 | 868 | } |
| 869 | 869 | |
| 870 | -if (! function_exists('seed_exist')) { |
|
| 870 | +if (!function_exists('seed_exist')) { |
|
| 871 | 871 | /** |
| 872 | 872 | * SEED EXIST |
| 873 | 873 | * |
@@ -881,7 +881,7 @@ discard block |
||
| 881 | 881 | } |
| 882 | 882 | } |
| 883 | 883 | |
| 884 | -if (! function_exists('lang_exist')) { |
|
| 884 | +if (!function_exists('lang_exist')) { |
|
| 885 | 885 | /** |
| 886 | 886 | * LANG EXIST |
| 887 | 887 | * |
@@ -896,7 +896,7 @@ discard block |
||
| 896 | 896 | } |
| 897 | 897 | } |
| 898 | 898 | |
| 899 | -if (! function_exists('service_exist')) { |
|
| 899 | +if (!function_exists('service_exist')) { |
|
| 900 | 900 | /** |
| 901 | 901 | * SERVICE EXIST |
| 902 | 902 | * |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | } |
| 912 | 912 | } |
| 913 | 913 | |
| 914 | -if (! function_exists('view_exist')) { |
|
| 914 | +if (!function_exists('view_exist')) { |
|
| 915 | 915 | /** |
| 916 | 916 | * VIEW EXIST |
| 917 | 917 | * |
@@ -925,7 +925,7 @@ discard block |
||
| 925 | 925 | } |
| 926 | 926 | } |
| 927 | 927 | |
| 928 | -if (! function_exists('layout_exist')) { |
|
| 928 | +if (!function_exists('layout_exist')) { |
|
| 929 | 929 | /** |
| 930 | 930 | * LAYOUT EXIST |
| 931 | 931 | * |
@@ -939,7 +939,7 @@ discard block |
||
| 939 | 939 | } |
| 940 | 940 | } |
| 941 | 941 | |
| 942 | -if (! function_exists('partial_exist')) { |
|
| 942 | +if (!function_exists('partial_exist')) { |
|
| 943 | 943 | /** |
| 944 | 944 | * PARTIAL EXIST |
| 945 | 945 | * |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | } |
| 954 | 954 | } |
| 955 | 955 | |
| 956 | -if (! function_exists('app_exist')) { |
|
| 956 | +if (!function_exists('app_exist')) { |
|
| 957 | 957 | /** |
| 958 | 958 | * APP EXIST |
| 959 | 959 | * |
@@ -967,7 +967,7 @@ discard block |
||
| 967 | 967 | } |
| 968 | 968 | } |
| 969 | 969 | |
| 970 | -if (! function_exists('cache_exist')) { |
|
| 970 | +if (!function_exists('cache_exist')) { |
|
| 971 | 971 | /** |
| 972 | 972 | * CACHE EXIST |
| 973 | 973 | * |
@@ -981,7 +981,7 @@ discard block |
||
| 981 | 981 | } |
| 982 | 982 | } |
| 983 | 983 | |
| 984 | -if (! function_exists('dump_exist')) { |
|
| 984 | +if (!function_exists('dump_exist')) { |
|
| 985 | 985 | /** |
| 986 | 986 | * DUMP EXIST |
| 987 | 987 | * |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | } |
| 996 | 996 | } |
| 997 | 997 | |
| 998 | -if (! function_exists('storage_exist')) { |
|
| 998 | +if (!function_exists('storage_exist')) { |
|
| 999 | 999 | /** |
| 1000 | 1000 | * STORAGE EXIST |
| 1001 | 1001 | * |
@@ -1009,7 +1009,7 @@ discard block |
||
| 1009 | 1009 | } |
| 1010 | 1010 | } |
| 1011 | 1011 | |
| 1012 | -if (! function_exists('include_config')) { |
|
| 1012 | +if (!function_exists('include_config')) { |
|
| 1013 | 1013 | /** |
| 1014 | 1014 | * INCLUDE CONFIG |
| 1015 | 1015 | * |
@@ -1027,7 +1027,7 @@ discard block |
||
| 1027 | 1027 | } |
| 1028 | 1028 | } |
| 1029 | 1029 | |
| 1030 | -if (! function_exists('include_controller')) { |
|
| 1030 | +if (!function_exists('include_controller')) { |
|
| 1031 | 1031 | /** |
| 1032 | 1032 | * INCLUDE CONTROLLER |
| 1033 | 1033 | * |
@@ -1046,7 +1046,7 @@ discard block |
||
| 1046 | 1046 | } |
| 1047 | 1047 | } |
| 1048 | 1048 | |
| 1049 | -if (! function_exists('include_class')) { |
|
| 1049 | +if (!function_exists('include_class')) { |
|
| 1050 | 1050 | /** |
| 1051 | 1051 | * INCLUDE CLASS |
| 1052 | 1052 | * |
@@ -1064,7 +1064,7 @@ discard block |
||
| 1064 | 1064 | } |
| 1065 | 1065 | } |
| 1066 | 1066 | |
| 1067 | -if (! function_exists('include_entity')) { |
|
| 1067 | +if (!function_exists('include_entity')) { |
|
| 1068 | 1068 | /** |
| 1069 | 1069 | * INCLUDE ENTITY |
| 1070 | 1070 | * |
@@ -1083,7 +1083,7 @@ discard block |
||
| 1083 | 1083 | } |
| 1084 | 1084 | } |
| 1085 | 1085 | |
| 1086 | -if (! function_exists('include_helper')) { |
|
| 1086 | +if (!function_exists('include_helper')) { |
|
| 1087 | 1087 | /** |
| 1088 | 1088 | * INCLUDE HELPER |
| 1089 | 1089 | * |
@@ -1101,7 +1101,7 @@ discard block |
||
| 1101 | 1101 | } |
| 1102 | 1102 | } |
| 1103 | 1103 | |
| 1104 | -if (! function_exists('include_library')) { |
|
| 1104 | +if (!function_exists('include_library')) { |
|
| 1105 | 1105 | /** |
| 1106 | 1106 | * INCLUDE LIBRARY |
| 1107 | 1107 | * |
@@ -1120,7 +1120,7 @@ discard block |
||
| 1120 | 1120 | } |
| 1121 | 1121 | } |
| 1122 | 1122 | |
| 1123 | -if (! function_exists('include_middleware')) { |
|
| 1123 | +if (!function_exists('include_middleware')) { |
|
| 1124 | 1124 | /** |
| 1125 | 1125 | * INCLUDE MIDDLEWARE |
| 1126 | 1126 | * |
@@ -1140,7 +1140,7 @@ discard block |
||
| 1140 | 1140 | } |
| 1141 | 1141 | } |
| 1142 | 1142 | |
| 1143 | -if (! function_exists('include_model')) { |
|
| 1143 | +if (!function_exists('include_model')) { |
|
| 1144 | 1144 | /** |
| 1145 | 1145 | * INCLUDE MODEL |
| 1146 | 1146 | * |
@@ -1159,7 +1159,7 @@ discard block |
||
| 1159 | 1159 | } |
| 1160 | 1160 | } |
| 1161 | 1161 | |
| 1162 | -if (! function_exists('include_resource')) { |
|
| 1162 | +if (!function_exists('include_resource')) { |
|
| 1163 | 1163 | /** |
| 1164 | 1164 | * INCLUDE RESOURCE |
| 1165 | 1165 | * |
@@ -1177,7 +1177,7 @@ discard block |
||
| 1177 | 1177 | } |
| 1178 | 1178 | } |
| 1179 | 1179 | |
| 1180 | -if (! function_exists('include_service')) { |
|
| 1180 | +if (!function_exists('include_service')) { |
|
| 1181 | 1181 | /** |
| 1182 | 1182 | * INCLUDE SERVICE |
| 1183 | 1183 | * |
@@ -1196,7 +1196,7 @@ discard block |
||
| 1196 | 1196 | } |
| 1197 | 1197 | } |
| 1198 | 1198 | |
| 1199 | -if (! function_exists('include_view')) { |
|
| 1199 | +if (!function_exists('include_view')) { |
|
| 1200 | 1200 | /** |
| 1201 | 1201 | * INCLUDE VIEW |
| 1202 | 1202 | * |
@@ -1214,7 +1214,7 @@ discard block |
||
| 1214 | 1214 | } |
| 1215 | 1215 | } |
| 1216 | 1216 | |
| 1217 | -if (! function_exists('include_layout')) { |
|
| 1217 | +if (!function_exists('include_layout')) { |
|
| 1218 | 1218 | /** |
| 1219 | 1219 | * INCLUDE LAYOUT |
| 1220 | 1220 | * |
@@ -1232,7 +1232,7 @@ discard block |
||
| 1232 | 1232 | } |
| 1233 | 1233 | } |
| 1234 | 1234 | |
| 1235 | -if (! function_exists('include_partial')) { |
|
| 1235 | +if (!function_exists('include_partial')) { |
|
| 1236 | 1236 | /** |
| 1237 | 1237 | * INCLUDE PARTIAL |
| 1238 | 1238 | * |
@@ -1250,7 +1250,7 @@ discard block |
||
| 1250 | 1250 | } |
| 1251 | 1251 | } |
| 1252 | 1252 | |
| 1253 | -if (! function_exists('_include_path')) { |
|
| 1253 | +if (!function_exists('_include_path')) { |
|
| 1254 | 1254 | /** |
| 1255 | 1255 | * inclus un fichier |
| 1256 | 1256 | * |