@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | */ |
307 | 307 | final protected function success(string $message, bool $badge = true): self |
308 | 308 | { |
309 | - if (! $badge) { |
|
309 | + if (!$badge) { |
|
310 | 310 | $this->writer->okBold('SUCCESS'); |
311 | 311 | } else { |
312 | 312 | $this->writer->boldWhiteBgGreen(' SUCCESS '); |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | */ |
321 | 321 | final protected function warning(string $message, bool $badge = true): self |
322 | 322 | { |
323 | - if (! $badge) { |
|
323 | + if (!$badge) { |
|
324 | 324 | $this->writer->warnBold('WARNING'); |
325 | 325 | } else { |
326 | 326 | $this->writer->boldWhiteBgYellow(' WARNING '); |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | */ |
335 | 335 | final protected function info(string $message, bool $badge = true): self |
336 | 336 | { |
337 | - if (! $badge) { |
|
337 | + if (!$badge) { |
|
338 | 338 | $this->writer->infoBold('INFO'); |
339 | 339 | } else { |
340 | 340 | $this->writer->boldWhiteBgCyan(' INFO '); |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | */ |
349 | 349 | final protected function error(string $message, bool $badge = true): self |
350 | 350 | { |
351 | - if (! $badge) { |
|
351 | + if (!$badge) { |
|
352 | 352 | $this->writer->errorBold('ERROR'); |
353 | 353 | } else { |
354 | 354 | $this->writer->boldWhiteBgRed(' ERROR '); |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | */ |
454 | 454 | final protected function json($data): self |
455 | 455 | { |
456 | - $this->write(json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), true); |
|
456 | + $this->write(json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), true); |
|
457 | 457 | |
458 | 458 | return $this; |
459 | 459 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | foreach ($files as $file) { |
180 | 180 | $className = $locator->getClassname($file); |
181 | 181 | |
182 | - if ($className === '' || ! class_exists($className)) { |
|
182 | + if ($className === '' || !class_exists($className)) { |
|
183 | 183 | continue; |
184 | 184 | } |
185 | 185 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $class = new ReflectionClass($className); |
206 | 206 | $logger = $logger ?: Services::logger(); |
207 | 207 | |
208 | - if (! $class->isInstantiable() || ! $class->isSubclassOf(Command::class)) { |
|
208 | + if (!$class->isInstantiable() || !$class->isSubclassOf(Command::class)) { |
|
209 | 209 | throw CLIException::invalidCommand($className); |
210 | 210 | } |
211 | 211 | |
@@ -232,13 +232,13 @@ discard block |
||
232 | 232 | $value = (array) $value; |
233 | 233 | |
234 | 234 | $description = $value[0]; |
235 | - if (! is_string($description)) { |
|
235 | + if (!is_string($description)) { |
|
236 | 236 | continue; |
237 | 237 | } |
238 | 238 | |
239 | 239 | $default = $value[1] ?? null; |
240 | 240 | $filter = $value[2] ?? null; |
241 | - if ($filter !== null && ! is_callable($filter)) { |
|
241 | + if ($filter !== null && !is_callable($filter)) { |
|
242 | 242 | $filter = null; |
243 | 243 | } |
244 | 244 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $value = (array) $value; |
251 | 251 | |
252 | 252 | $description = $value[0]; |
253 | - if (! is_string($description)) { |
|
253 | + if (!is_string($description)) { |
|
254 | 254 | continue; |
255 | 255 | } |
256 | 256 | |
@@ -260,15 +260,15 @@ discard block |
||
260 | 260 | } |
261 | 261 | |
262 | 262 | $console = $this; |
263 | - $action = function (?array $arguments = [], ?array $options = [], ?bool $suppress = null) use ($instance, $command, $console) { |
|
263 | + $action = function(?array $arguments = [], ?array $options = [], ?bool $suppress = null) use ($instance, $command, $console) { |
|
264 | 264 | foreach ($instance->required as $package) { |
265 | 265 | $package = explode(':', $package); |
266 | 266 | $version = $package[1] ?? null; |
267 | 267 | $package = $package[0]; |
268 | 268 | |
269 | - if (! InstalledVersions::isInstalled($package)) { |
|
269 | + if (!InstalledVersions::isInstalled($package)) { |
|
270 | 270 | $console->io()->info('Cette commande nécessite le package "' . $package . '" mais vous ne l\'avez pas', true); |
271 | - if (! $console->io()->confirm('Voulez-vous l\'installer maintenant ?')) { |
|
271 | + if (!$console->io()->confirm('Voulez-vous l\'installer maintenant ?')) { |
|
272 | 272 | return; |
273 | 273 | } |
274 | 274 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | } |
285 | 285 | |
286 | 286 | $suppress = $suppress ?: $console->suppress; |
287 | - if (! $suppress) { |
|
287 | + if (!$suppress) { |
|
288 | 288 | $console->start($instance->service); |
289 | 289 | } |
290 | 290 | |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | |
300 | 300 | $result = $instance->setOptions($options)->setArguments($arguments)->execute($parameters); |
301 | 301 | |
302 | - if (! $suppress) { |
|
302 | + if (!$suppress) { |
|
303 | 303 | $console->end(); |
304 | 304 | } |
305 | 305 | |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | |
315 | 315 | private function registerException(Logger $logger) |
316 | 316 | { |
317 | - $this->onException(function (Throwable $e, int $exitCode) use ($logger) { |
|
317 | + $this->onException(function(Throwable $e, int $exitCode) use ($logger) { |
|
318 | 318 | $logger->error((string) $e, ['exitCode' => $exitCode, 'klinge' => true]); |
319 | 319 | |
320 | 320 | throw new CLIException($e->getMessage(), $exitCode, $e); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | // @codeCoverageIgnoreStart |
114 | 114 | $this->colorize(lang('CLI.generator.usingBlitzNamespace'), 'yellow'); |
115 | 115 | |
116 | - if (! $this->confirm('Are you sure you want to continue?')) { |
|
116 | + if (!$this->confirm('Are you sure you want to continue?')) { |
|
117 | 117 | $this->eol()->colorize(lang('CLI.generator.cancelOperation'), 'yellow'); |
118 | 118 | |
119 | 119 | return; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | // Écraser des fichiers sans le savoir est une gêne sérieuse, nous allons donc vérifier si nous dupliquons des choses, |
129 | 129 | // si l'option "forcer" n'est pas fournie, nous renvoyons. |
130 | - if (! $this->option('force') && $isFile) { |
|
130 | + if (!$this->option('force') && $isFile) { |
|
131 | 131 | $this->io->error(lang('CLI.generator.fileExist', [clean_path($target)]), true); |
132 | 132 | |
133 | 133 | return; |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | // Vérifie si le répertoire pour enregistrer le fichier existe. |
137 | 137 | $dir = dirname($target); |
138 | 138 | |
139 | - if (! is_dir($dir)) { |
|
139 | + if (!is_dir($dir)) { |
|
140 | 140 | mkdir($dir, 0755, true); |
141 | 141 | } |
142 | 142 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | // Construisez la classe en fonction des détails dont nous disposons. |
146 | 146 | // Nous obtiendrons le contenu de notre fichier à partir du modèle, |
147 | 147 | // puis nous effectuerons les remplacements nécessaires. |
148 | - if (! write_file($target, $content)) { |
|
148 | + if (!write_file($target, $content)) { |
|
149 | 149 | // @codeCoverageIgnoreStart |
150 | 150 | $this->io->error(lang('CLI.generator.fileError', [clean_path($target)]), true); |
151 | 151 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | $class = $matches[1] . ucfirst($matches[2]); |
210 | 210 | } |
211 | 211 | |
212 | - if ($this->enabledSuffixing && $this->getOption('suffix') && ! strripos($class, $component)) { |
|
212 | + if ($this->enabledSuffixing && $this->getOption('suffix') && !strripos($class, $component)) { |
|
213 | 213 | $class .= ucfirst($component); |
214 | 214 | } |
215 | 215 | |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | |
281 | 281 | $base = Services::autoloader()->getNamespace($namespace); |
282 | 282 | |
283 | - if (! $base = reset($base)) { |
|
283 | + if (!$base = reset($base)) { |
|
284 | 284 | $this->io->error(lang('CLI.namespaceNotDefined', [$namespace]), true); |
285 | 285 | |
286 | 286 | return ''; |
@@ -62,10 +62,10 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function __get(string $key): mixed |
64 | 64 | { |
65 | - if (! $this->hasCondition) { |
|
65 | + if (!$this->hasCondition) { |
|
66 | 66 | $condition = $this->target->{$key}; |
67 | 67 | |
68 | - return $this->condition($this->negateConditionOnCapture ? ! $condition : $condition); |
|
68 | + return $this->condition($this->negateConditionOnCapture ? !$condition : $condition); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | return $this->condition |
@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function __call(string $method, array $parameters = []): mixed |
80 | 80 | { |
81 | - if (! $this->hasCondition) { |
|
81 | + if (!$this->hasCondition) { |
|
82 | 82 | $condition = $this->target->{$method}(...$parameters); |
83 | 83 | |
84 | - return $this->condition($this->negateConditionOnCapture ? ! $condition : $condition); |
|
84 | + return $this->condition($this->negateConditionOnCapture ? !$condition : $condition); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | return $this->condition |
@@ -67,10 +67,10 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | if (func_num_args() === 1) { |
70 | - return (new HigherOrderWhenProxy($this))->condition(! $value); |
|
70 | + return (new HigherOrderWhenProxy($this))->condition(!$value); |
|
71 | 71 | } |
72 | 72 | |
73 | - if (! $value) { |
|
73 | + if (!$value) { |
|
74 | 74 | return $callback($this, $value) ?? $this; |
75 | 75 | } |
76 | 76 | if ($default) { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | } catch (Error|BadMethodCallException $e) { |
29 | 29 | $pattern = '~^Call to undefined method (?P<class>[^:]+)::(?P<method>[^\(]+)\(\)$~'; |
30 | 30 | |
31 | - if (! preg_match($pattern, $e->getMessage(), $matches)) { |
|
31 | + if (!preg_match($pattern, $e->getMessage(), $matches)) { |
|
32 | 32 | throw $e; |
33 | 33 | } |
34 | 34 |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | */ |
207 | 207 | public function dump() |
208 | 208 | { |
209 | - Collection::make(func_get_args())->push($this->all())->each(function ($item) { |
|
209 | + Collection::make(func_get_args())->push($this->all())->each(function($item) { |
|
210 | 210 | Kint::dump($item); |
211 | 211 | }); |
212 | 212 | |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | */ |
239 | 239 | public function eachSpread(callable $callback) |
240 | 240 | { |
241 | - return $this->each(function ($chunk, $key) use ($callback) { |
|
241 | + return $this->each(function($chunk, $key) use ($callback) { |
|
242 | 242 | $chunk[] = $key; |
243 | 243 | |
244 | 244 | return $callback(...$chunk); |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | $callback = $this->valueRetriever($key); |
257 | 257 | |
258 | 258 | foreach ($this as $k => $v) { |
259 | - if (! $callback($v, $k)) { |
|
259 | + if (!$callback($v, $k)) { |
|
260 | 260 | return false; |
261 | 261 | } |
262 | 262 | } |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | */ |
301 | 301 | public function isNotEmpty(): bool |
302 | 302 | { |
303 | - return ! $this->isEmpty(); |
|
303 | + return !$this->isEmpty(); |
|
304 | 304 | } |
305 | 305 | |
306 | 306 | /** |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | */ |
313 | 313 | public function mapSpread(callable $callback) |
314 | 314 | { |
315 | - return $this->map(function ($chunk, $key) use ($callback) { |
|
315 | + return $this->map(function($chunk, $key) use ($callback) { |
|
316 | 316 | $chunk[] = $key; |
317 | 317 | |
318 | 318 | return $callback(...$chunk); |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | { |
387 | 387 | $callback = $this->valueRetriever($callback); |
388 | 388 | |
389 | - return $this->filter(fn ($value) => null !== $value)->reduce(function ($result, $item) use ($callback) { |
|
389 | + return $this->filter(fn ($value) => null !== $value)->reduce(function($result, $item) use ($callback) { |
|
390 | 390 | $value = $callback($item); |
391 | 391 | |
392 | 392 | return null === $result || $value > $result ? $value : $result; |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | */ |
632 | 632 | public function whereInstanceOf($type) |
633 | 633 | { |
634 | - return $this->filter(function ($value) use ($type) { |
|
634 | + return $this->filter(function($value) use ($type) { |
|
635 | 635 | if (is_array($type)) { |
636 | 636 | foreach ($type as $classType) { |
637 | 637 | if ($value instanceof $classType) { |
@@ -708,7 +708,7 @@ discard block |
||
708 | 708 | { |
709 | 709 | $result = $initial; |
710 | 710 | |
711 | - $class_basename = function ($class) { |
|
711 | + $class_basename = function($class) { |
|
712 | 712 | $class = is_object($class) ? get_class($class) : $class; |
713 | 713 | |
714 | 714 | return basename(str_replace('\\', '/', $class)); |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | foreach ($this as $key => $value) { |
718 | 718 | $result = $callback(...array_merge($result, [$value, $key])); |
719 | 719 | |
720 | - if (! is_array($result)) { |
|
720 | + if (!is_array($result)) { |
|
721 | 721 | throw new UnexpectedValueException(sprintf( |
722 | 722 | "%s::reduceSpread s'attend à ce que le réducteur renvoie un tableau, mais a obtenu un '%s' à la place.", |
723 | 723 | $class_basename(static::class), |
@@ -741,9 +741,9 @@ discard block |
||
741 | 741 | { |
742 | 742 | $useAsCallable = $this->useAsCallable($callback); |
743 | 743 | |
744 | - return $this->filter(function ($value, $key) use ($callback, $useAsCallable) { |
|
744 | + return $this->filter(function($value, $key) use ($callback, $useAsCallable) { |
|
745 | 745 | return $useAsCallable |
746 | - ? ! $callback($value, $key) |
|
746 | + ? !$callback($value, $key) |
|
747 | 747 | : $value !== $callback; |
748 | 748 | }); |
749 | 749 | } |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | |
777 | 777 | $exists = []; |
778 | 778 | |
779 | - return $this->reject(function ($item, $key) use ($callback, $strict, &$exists) { |
|
779 | + return $this->reject(function($item, $key) use ($callback, $strict, &$exists) { |
|
780 | 780 | if (in_array($id = $callback($item, $key), $exists, $strict)) { |
781 | 781 | return true; |
782 | 782 | } |
@@ -819,7 +819,7 @@ discard block |
||
819 | 819 | */ |
820 | 820 | public function jsonSerialize(): array |
821 | 821 | { |
822 | - return array_map(function ($value) { |
|
822 | + return array_map(function($value) { |
|
823 | 823 | if ($value instanceof JsonSerializable) { |
824 | 824 | return $value->jsonSerialize(); |
825 | 825 | } |
@@ -855,7 +855,7 @@ discard block |
||
855 | 855 | */ |
856 | 856 | public function __toString(): string |
857 | 857 | { |
858 | - if (! $this->escapeWhenCastingToString) { |
|
858 | + if (!$this->escapeWhenCastingToString) { |
|
859 | 859 | return $this->toJson(); |
860 | 860 | } |
861 | 861 | |
@@ -897,7 +897,7 @@ discard block |
||
897 | 897 | */ |
898 | 898 | public function __get(string $key): mixed |
899 | 899 | { |
900 | - if (! in_array($key, static::$proxies, true)) { |
|
900 | + if (!in_array($key, static::$proxies, true)) { |
|
901 | 901 | throw new Exception("La propriété [{$key}] n'existe pas sur cette instance de collection."); |
902 | 902 | } |
903 | 903 | |
@@ -959,7 +959,7 @@ discard block |
||
959 | 959 | $operator = '='; |
960 | 960 | } |
961 | 961 | |
962 | - return function ($item) use ($key, $operator, $value) { |
|
962 | + return function($item) use ($key, $operator, $value) { |
|
963 | 963 | $retrieved = Arr::get($item, $key); |
964 | 964 | |
965 | 965 | $strings = array_filter([$retrieved, $value], fn ($value) => is_string($value) || (is_object($value) && method_exists($value, '__toString'))); |
@@ -998,7 +998,7 @@ discard block |
||
998 | 998 | */ |
999 | 999 | protected function useAsCallable(mixed $value): bool |
1000 | 1000 | { |
1001 | - return ! is_string($value) && is_callable($value); |
|
1001 | + return !is_string($value) && is_callable($value); |
|
1002 | 1002 | } |
1003 | 1003 | |
1004 | 1004 | /** |
@@ -1030,7 +1030,7 @@ discard block |
||
1030 | 1030 | */ |
1031 | 1031 | protected function negate(Closure $callback): Closure |
1032 | 1032 | { |
1033 | - return fn (...$params) => ! $callback(...$params); |
|
1033 | + return fn (...$params) => !$callback(...$params); |
|
1034 | 1034 | } |
1035 | 1035 | |
1036 | 1036 | /** |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | // Se rassurer que le dossier courant pointe sur le dossier du front controller |
19 | 19 | chdir(WEBROOT); |
20 | 20 | |
21 | -return function (array $paths, string $paths_config_file, bool $is_cli) { |
|
21 | +return function(array $paths, string $paths_config_file, bool $is_cli) { |
|
22 | 22 | // Le chemin d'accès vers le dossier de l'application |
23 | 23 | if (is_dir($paths['app'])) { |
24 | 24 | if (($_temp = realpath($paths['app'])) !== false) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | require_once __DIR__ . DS . 'kint.php'; |
95 | 95 | |
96 | - if (! $is_cli) { |
|
96 | + if (!$is_cli) { |
|
97 | 97 | $app->run(); |
98 | 98 | } |
99 | 99 | }; |
@@ -102,35 +102,35 @@ discard block |
||
102 | 102 | */ |
103 | 103 | defined('LAYOUT_PATH') || define('LAYOUT_PATH', VIEW_PATH . 'layouts' . DS); |
104 | 104 | |
105 | -if (! defined('SERVICE_PATH')) { |
|
105 | +if (!defined('SERVICE_PATH')) { |
|
106 | 106 | /** |
107 | 107 | * Services directory path |
108 | 108 | */ |
109 | 109 | define('SERVICE_PATH', APP_PATH . 'services' . DS); |
110 | 110 | } |
111 | 111 | |
112 | -if (! defined('DATABASE_PATH')) { |
|
112 | +if (!defined('DATABASE_PATH')) { |
|
113 | 113 | /** |
114 | 114 | * Database storage directory path |
115 | 115 | */ |
116 | 116 | define('DATABASE_PATH', STORAGE_PATH . 'database' . DS); |
117 | 117 | } |
118 | 118 | |
119 | -if (! defined('DB_SEED_PATH')) { |
|
119 | +if (!defined('DB_SEED_PATH')) { |
|
120 | 120 | /** |
121 | 121 | * Database seeds storage path |
122 | 122 | */ |
123 | 123 | define('DB_SEED_PATH', RESOURCE_PATH . 'database' . DS . 'seeds' . DS); |
124 | 124 | } |
125 | 125 | |
126 | -if (! defined('DB_DUMP_PATH')) { |
|
126 | +if (!defined('DB_DUMP_PATH')) { |
|
127 | 127 | /** |
128 | 128 | * Database backup storage path |
129 | 129 | */ |
130 | 130 | define('DB_DUMP_PATH', DATABASE_PATH . 'dump' . DS); |
131 | 131 | } |
132 | 132 | |
133 | -if (! defined('DB_CACHE_PATH')) { |
|
133 | +if (!defined('DB_CACHE_PATH')) { |
|
134 | 134 | /** |
135 | 135 | * Database cache directory path |
136 | 136 | */ |
@@ -152,11 +152,11 @@ discard block |
||
152 | 152 | */ |
153 | 153 | defined('SECOND') || define('SECOND', 1); |
154 | 154 | defined('MINUTE') || define('MINUTE', 60); |
155 | -defined('HOUR') || define('HOUR', 3600); |
|
156 | -defined('DAY') || define('DAY', 86400); |
|
157 | -defined('WEEK') || define('WEEK', 604800); |
|
158 | -defined('MONTH') || define('MONTH', 2592000); |
|
159 | -defined('YEAR') || define('YEAR', 31536000); |
|
155 | +defined('HOUR') || define('HOUR', 3600); |
|
156 | +defined('DAY') || define('DAY', 86400); |
|
157 | +defined('WEEK') || define('WEEK', 604800); |
|
158 | +defined('MONTH') || define('MONTH', 2592000); |
|
159 | +defined('YEAR') || define('YEAR', 31536000); |
|
160 | 160 | defined('DECADE') || define('DECADE', 315360000); |
161 | 161 | |
162 | 162 | /** |
@@ -177,13 +177,13 @@ discard block |
||
177 | 177 | * - BSD sysexits.h: http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits |
178 | 178 | * - Bash scripting: http://tldp.org/LDP/abs/html/exitcodes.html |
179 | 179 | */ |
180 | -defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // pas d'erreurs |
|
181 | -defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // erreur generique |
|
182 | -defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // erreur de configuration |
|
183 | -defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // fichier non trouvé |
|
184 | -defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // classe inconnue |
|
180 | +defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // pas d'erreurs |
|
181 | +defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // erreur generique |
|
182 | +defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // erreur de configuration |
|
183 | +defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // fichier non trouvé |
|
184 | +defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // classe inconnue |
|
185 | 185 | defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // membre de classe inconnu |
186 | -defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // saisie utilisateur invalide |
|
187 | -defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // erreur de base de données |
|
188 | -defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // code d'erreur attribué automatiquement le plus bas |
|
189 | -defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // code d'erreur attribué automatiquement le plus élevé |
|
186 | +defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // saisie utilisateur invalide |
|
187 | +defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // erreur de base de données |
|
188 | +defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // code d'erreur attribué automatiquement le plus bas |
|
189 | +defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // code d'erreur attribué automatiquement le plus élevé |