@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | Kint::$display_called_from = $config->display_called_from; |
20 | 20 | Kint::$expanded = $config->expanded; |
21 | 21 | |
22 | -if (! empty($config->plugins)) { |
|
22 | +if (!empty($config->plugins)) { |
|
23 | 23 | Kint::$plugins = $config->plugins; |
24 | 24 | } |
25 | 25 | |
@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | RichRenderer::$folder = $config->rich_folder; |
28 | 28 | RichRenderer::$sort = $config->rich_sort; |
29 | 29 | |
30 | -if (! empty($config->rich_value_plugins)) { |
|
30 | +if (!empty($config->rich_value_plugins)) { |
|
31 | 31 | RichRenderer::$value_plugins = $config->rich_value_plugins; |
32 | 32 | } |
33 | -if (! empty($config->rich_tab_plugins)) { |
|
33 | +if (!empty($config->rich_tab_plugins)) { |
|
34 | 34 | RichRenderer::$tab_plugins = $config->rich_tab_plugins; |
35 | 35 | } |
36 | 36 |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | $this->cookies = $config['cookies']; |
258 | 258 | |
259 | 259 | if (isset($config['uri'])) { |
260 | - if (! $config['uri'] instanceof UriInterface) { |
|
260 | + if (!$config['uri'] instanceof UriInterface) { |
|
261 | 261 | throw new FrameworkException('The `uri` key must be an instance of ' . UriInterface::class); |
262 | 262 | } |
263 | 263 | $uri = $config['uri']; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | $ref = $this->getEnv('HTTP_REFERER'); |
398 | 398 | |
399 | 399 | $base = /* Configure::read('App.fullBaseUrl') . */ $this->webroot; |
400 | - if (! empty($ref) && ! empty($base)) { |
|
400 | + if (!empty($ref) && !empty($base)) { |
|
401 | 401 | if ($local && strpos($ref, $base) === 0) { |
402 | 402 | $ref = substr($ref, strlen($base)); |
403 | 403 | if ($ref === '' || strpos($ref, '//') === 0) { |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | |
410 | 410 | return $ref; |
411 | 411 | } |
412 | - if (! $local) { |
|
412 | + if (!$local) { |
|
413 | 413 | return $ref; |
414 | 414 | } |
415 | 415 | } |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | } |
462 | 462 | |
463 | 463 | $type = strtolower($type); |
464 | - if (! isset(static::$_detectors[$type])) { |
|
464 | + if (!isset(static::$_detectors[$type])) { |
|
465 | 465 | return false; |
466 | 466 | } |
467 | 467 | if ($args) { |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | foreach ($detect['header'] as $header => $value) { |
541 | 541 | $header = $this->getEnv('http_' . $header); |
542 | 542 | if ($header !== null) { |
543 | - if (! is_string($value) && ! is_bool($value) && is_callable($value)) { |
|
543 | + if (!is_string($value) && !is_bool($value) && is_callable($value)) { |
|
544 | 544 | return $value($header); |
545 | 545 | } |
546 | 546 | |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | public function isAll(array $types): bool |
614 | 614 | { |
615 | 615 | foreach ($types as $type) { |
616 | - if (! $this->is($type)) { |
|
616 | + if (!$this->is($type)) { |
|
617 | 617 | return false; |
618 | 618 | } |
619 | 619 | } |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | protected function normalizeHeaderName(string $name): string |
717 | 717 | { |
718 | 718 | $name = str_replace('-', '_', strtoupper($name)); |
719 | - if (! in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'], true)) { |
|
719 | + if (!in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'], true)) { |
|
720 | 720 | $name = 'HTTP_' . $name; |
721 | 721 | } |
722 | 722 | |
@@ -899,8 +899,8 @@ discard block |
||
899 | 899 | $new = clone $this; |
900 | 900 | |
901 | 901 | if ( |
902 | - ! is_string($method) |
|
903 | - || ! preg_match('/^[!#$%&\'*+.^_`\|~0-9a-z-]+$/i', $method) |
|
902 | + !is_string($method) |
|
903 | + || !preg_match('/^[!#$%&\'*+.^_`\|~0-9a-z-]+$/i', $method) |
|
904 | 904 | ) { |
905 | 905 | throw new InvalidArgumentException(sprintf( |
906 | 906 | 'Unsupported HTTP method "%s" provided', |
@@ -1144,7 +1144,7 @@ discard block |
||
1144 | 1144 | } |
1145 | 1145 | } |
1146 | 1146 | |
1147 | - if (! isset($accept[$prefValue])) { |
|
1147 | + if (!isset($accept[$prefValue])) { |
|
1148 | 1148 | $accept[$prefValue] = []; |
1149 | 1149 | } |
1150 | 1150 | if ($prefValue) { |
@@ -1222,7 +1222,7 @@ discard block |
||
1222 | 1222 | if ($name === null) { |
1223 | 1223 | return $this->data; |
1224 | 1224 | } |
1225 | - if (! is_array($this->data) && $name) { |
|
1225 | + if (!is_array($this->data) && $name) { |
|
1226 | 1226 | return $default; |
1227 | 1227 | } |
1228 | 1228 | |
@@ -1363,7 +1363,7 @@ discard block |
||
1363 | 1363 | */ |
1364 | 1364 | public function withProtocolVersion($version): self |
1365 | 1365 | { |
1366 | - if (! preg_match('/^(1\.[01]|2(\.[0])?)$/', $version)) { |
|
1366 | + if (!preg_match('/^(1\.[01]|2(\.[0])?)$/', $version)) { |
|
1367 | 1367 | throw new InvalidArgumentException("Unsupported protocol version '{$version}' provided"); |
1368 | 1368 | } |
1369 | 1369 | $new = clone $this; |
@@ -1385,7 +1385,7 @@ discard block |
||
1385 | 1385 | public function getEnv(string $key, ?string $default = null): ?string |
1386 | 1386 | { |
1387 | 1387 | $key = strtoupper($key); |
1388 | - if (! array_key_exists($key, $this->_environment)) { |
|
1388 | + if (!array_key_exists($key, $this->_environment)) { |
|
1389 | 1389 | $this->_environment[$key] = env($key); |
1390 | 1390 | } |
1391 | 1391 | |
@@ -1597,7 +1597,7 @@ discard block |
||
1597 | 1597 | $file = Arr::get($this->uploadedFiles, $path); |
1598 | 1598 | if (is_array($file)) { |
1599 | 1599 | foreach ($file as $f) { |
1600 | - if (! ($f instanceof UploadedFile)) { |
|
1600 | + if (!($f instanceof UploadedFile)) { |
|
1601 | 1601 | return null; |
1602 | 1602 | } |
1603 | 1603 | } |
@@ -1605,7 +1605,7 @@ discard block |
||
1605 | 1605 | return $file; |
1606 | 1606 | } |
1607 | 1607 | |
1608 | - if (! ($file instanceof UploadedFileInterface)) { |
|
1608 | + if (!($file instanceof UploadedFileInterface)) { |
|
1609 | 1609 | return null; |
1610 | 1610 | } |
1611 | 1611 | |
@@ -1653,7 +1653,7 @@ discard block |
||
1653 | 1653 | continue; |
1654 | 1654 | } |
1655 | 1655 | |
1656 | - if (! $file instanceof UploadedFileInterface) { |
|
1656 | + if (!$file instanceof UploadedFileInterface) { |
|
1657 | 1657 | throw new InvalidArgumentException("Invalid file at '{$path}{$key}'"); |
1658 | 1658 | } |
1659 | 1659 | } |
@@ -1704,7 +1704,7 @@ discard block |
||
1704 | 1704 | } |
1705 | 1705 | |
1706 | 1706 | $host = $uri->getHost(); |
1707 | - if (! $host) { |
|
1707 | + if (!$host) { |
|
1708 | 1708 | return $new; |
1709 | 1709 | } |
1710 | 1710 | $port = $uri->getPort(); |
@@ -1812,7 +1812,7 @@ discard block |
||
1812 | 1812 | $validLocales = config('app.supported_locales'); |
1813 | 1813 | // S'il ne s'agit pas d'un paramètre régional valide, définissez-le |
1814 | 1814 | // aux paramètres régionaux par défaut du site. |
1815 | - if (! in_array($locale, $validLocales, true)) { |
|
1815 | + if (!in_array($locale, $validLocales, true)) { |
|
1816 | 1816 | $locale = config('app.language'); |
1817 | 1817 | } |
1818 | 1818 | |
@@ -1912,7 +1912,7 @@ discard block |
||
1912 | 1912 | $override = true; |
1913 | 1913 | } |
1914 | 1914 | |
1915 | - if ($override && ! in_array($this->_environment['REQUEST_METHOD'], ['PUT', 'POST', 'DELETE', 'PATCH'], true)) { |
|
1915 | + if ($override && !in_array($this->_environment['REQUEST_METHOD'], ['PUT', 'POST', 'DELETE', 'PATCH'], true)) { |
|
1916 | 1916 | $data = []; |
1917 | 1917 | } |
1918 | 1918 | |
@@ -1961,7 +1961,7 @@ discard block |
||
1961 | 1961 | */ |
1962 | 1962 | protected function _processFiles(array $post, array $files): array |
1963 | 1963 | { |
1964 | - if (! is_array($files)) { |
|
1964 | + if (!is_array($files)) { |
|
1965 | 1965 | return $post; |
1966 | 1966 | } |
1967 | 1967 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * @credit <a href="https://codeigniter.com">CodeIgniter 4.2 - date_helper</a> |
18 | 18 | */ |
19 | -if (! function_exists('now')) { |
|
19 | +if (!function_exists('now')) { |
|
20 | 20 | /** |
21 | 21 | * Get "now" time |
22 | 22 | * |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | } |
55 | 55 | |
56 | -if (! function_exists('timezone_select')) { |
|
56 | +if (!function_exists('timezone_select')) { |
|
57 | 57 | /** |
58 | 58 | * Generates a select field of all available timezones |
59 | 59 | * |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @credit <a href="https://codeigniter.com">CodeIgniter 4.2 - number_helper</a> |
16 | 16 | */ |
17 | -if (! function_exists('number_to_size')) { |
|
17 | +if (!function_exists('number_to_size')) { |
|
18 | 18 | /** |
19 | 19 | * Formats a numbers as bytes, based on size, and adds the appropriate suffix |
20 | 20 | * |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | // ignore sub part |
36 | 36 | $generalLocale = $locale; |
37 | - if (! empty($locale) && ($underscorePos = strpos($locale, '_'))) { |
|
37 | + if (!empty($locale) && ($underscorePos = strpos($locale, '_'))) { |
|
38 | 38 | $generalLocale = substr($locale, 0, $underscorePos); |
39 | 39 | } |
40 | 40 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | } |
60 | 60 | |
61 | -if (! function_exists('number_to_amount')) { |
|
61 | +if (!function_exists('number_to_amount')) { |
|
62 | 62 | /** |
63 | 63 | * Converts numbers to a more readable representation |
64 | 64 | * when dealing with very large numbers (in the thousands or above), |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | // ignore sub part |
89 | 89 | $generalLocale = $locale; |
90 | - if (! empty($locale) && ($underscorePos = strpos($locale, '_'))) { |
|
90 | + if (!empty($locale) && ($underscorePos = strpos($locale, '_'))) { |
|
91 | 91 | $generalLocale = substr($locale, 0, $underscorePos); |
92 | 92 | } |
93 | 93 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
115 | -if (! function_exists('number_to_currency')) { |
|
115 | +if (!function_exists('number_to_currency')) { |
|
116 | 116 | function number_to_currency(float $num, string $currency, ?string $locale = null, int $fraction = 0): string |
117 | 117 | { |
118 | 118 | return format_number($num, 1, $locale, [ |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | } |
125 | 125 | |
126 | -if (! function_exists('format_number')) { |
|
126 | +if (!function_exists('format_number')) { |
|
127 | 127 | /** |
128 | 128 | * A general purpose, locale-aware, number_format method. |
129 | 129 | * Used by all of the functions of the number_helper. |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | } |
173 | 173 | } |
174 | 174 | |
175 | -if (! function_exists('number_to_roman')) { |
|
175 | +if (!function_exists('number_to_roman')) { |
|
176 | 176 | /** |
177 | 177 | * Convert a number to a roman numeral. |
178 | 178 | * |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use BlitzPHP\Utilities\String\Inflector; |
13 | 13 | |
14 | -if (! function_exists('camelize')) { |
|
14 | +if (!function_exists('camelize')) { |
|
15 | 15 | /** |
16 | 16 | * Camelize |
17 | 17 | * |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | } |
27 | 27 | |
28 | -if (! function_exists('classify')) { |
|
28 | +if (!function_exists('classify')) { |
|
29 | 29 | /** |
30 | 30 | * Returns model class name ("Person" for the database table "people".) for given database table. |
31 | 31 | * |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
42 | -if (! function_exists('dasherize')) { |
|
42 | +if (!function_exists('dasherize')) { |
|
43 | 43 | /** |
44 | 44 | * Returns the input CamelCasedString as an dashed-string. |
45 | 45 | * |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | -if (! function_exists('delimit')) { |
|
58 | +if (!function_exists('delimit')) { |
|
59 | 59 | /** |
60 | 60 | * Expects a CamelCasedInputString, and produces a lower_case_delimited_string |
61 | 61 | * |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | -if (! function_exists('humanize')) { |
|
73 | +if (!function_exists('humanize')) { |
|
74 | 74 | /** |
75 | 75 | * Humanize |
76 | 76 | * |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | } |
87 | 87 | |
88 | -if (! function_exists('plural')) { |
|
88 | +if (!function_exists('plural')) { |
|
89 | 89 | /** |
90 | 90 | * Plural |
91 | 91 | * |
@@ -99,30 +99,30 @@ discard block |
||
99 | 99 | { |
100 | 100 | $result = (string) $str; |
101 | 101 | |
102 | - if (! is_countable($result)) { |
|
102 | + if (!is_countable($result)) { |
|
103 | 103 | return $result; |
104 | 104 | } |
105 | 105 | |
106 | 106 | $plural_rules = [ |
107 | - '/(quiz)$/' => '\1zes', // quizzes |
|
108 | - '/^(ox)$/' => '\1\2en', // ox |
|
109 | - '/([m|l])ouse$/' => '\1ice', // mouse, louse |
|
110 | - '/(matr|vert|ind)ix|ex$/' => '\1ices', // matrix, vertex, index |
|
111 | - '/(x|ch|ss|sh)$/' => '\1es', // search, switch, fix, box, process, address |
|
112 | - '/([^aeiouy]|qu)y$/' => '\1ies', // query, ability, agency |
|
113 | - '/(hive)$/' => '\1s', // archive, hive |
|
114 | - '/(?:([^f])fe|([lr])f)$/' => '\1\2ves', // half, safe, wife |
|
115 | - '/sis$/' => 'ses', // basis, diagnosis |
|
116 | - '/([ti])um$/' => '\1a', // datum, medium |
|
117 | - '/(p)erson$/' => '\1eople', // person, salesperson |
|
118 | - '/(m)an$/' => '\1en', // man, woman, spokesman |
|
119 | - '/(c)hild$/' => '\1hildren', // child |
|
120 | - '/(buffal|tomat)o$/' => '\1\2oes', // buffalo, tomato |
|
121 | - '/(bu|campu)s$/' => '\1\2ses', // bus, campus |
|
122 | - '/(alias|status|virus)$/' => '\1es', // alias |
|
123 | - '/(octop)us$/' => '\1i', // octopus |
|
124 | - '/(ax|cris|test)is$/' => '\1es', // axis, crisis |
|
125 | - '/s$/' => 's', // no change (compatibility) |
|
107 | + '/(quiz)$/' => '\1zes', // quizzes |
|
108 | + '/^(ox)$/' => '\1\2en', // ox |
|
109 | + '/([m|l])ouse$/' => '\1ice', // mouse, louse |
|
110 | + '/(matr|vert|ind)ix|ex$/' => '\1ices', // matrix, vertex, index |
|
111 | + '/(x|ch|ss|sh)$/' => '\1es', // search, switch, fix, box, process, address |
|
112 | + '/([^aeiouy]|qu)y$/' => '\1ies', // query, ability, agency |
|
113 | + '/(hive)$/' => '\1s', // archive, hive |
|
114 | + '/(?:([^f])fe|([lr])f)$/' => '\1\2ves', // half, safe, wife |
|
115 | + '/sis$/' => 'ses', // basis, diagnosis |
|
116 | + '/([ti])um$/' => '\1a', // datum, medium |
|
117 | + '/(p)erson$/' => '\1eople', // person, salesperson |
|
118 | + '/(m)an$/' => '\1en', // man, woman, spokesman |
|
119 | + '/(c)hild$/' => '\1hildren', // child |
|
120 | + '/(buffal|tomat)o$/' => '\1\2oes', // buffalo, tomato |
|
121 | + '/(bu|campu)s$/' => '\1\2ses', // bus, campus |
|
122 | + '/(alias|status|virus)$/' => '\1es', // alias |
|
123 | + '/(octop)us$/' => '\1i', // octopus |
|
124 | + '/(ax|cris|test)is$/' => '\1es', // axis, crisis |
|
125 | + '/s$/' => 's', // no change (compatibility) |
|
126 | 126 | '/$/' => 's', |
127 | 127 | ]; |
128 | 128 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | } |
139 | 139 | |
140 | -if (! function_exists('pluralize')) { |
|
140 | +if (!function_exists('pluralize')) { |
|
141 | 141 | /** |
142 | 142 | * Return $word in plural form. |
143 | 143 | * |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | } |
153 | 153 | |
154 | -if (! function_exists('singular')) { |
|
154 | +if (!function_exists('singular')) { |
|
155 | 155 | /** |
156 | 156 | * Singular |
157 | 157 | * |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | { |
166 | 166 | $result = (string) $str; |
167 | 167 | |
168 | - if (! is_countable($result)) { |
|
168 | + if (!is_countable($result)) { |
|
169 | 169 | return $result; |
170 | 170 | } |
171 | 171 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | } |
212 | 212 | } |
213 | 213 | |
214 | -if (! function_exists('singularize')) { |
|
214 | +if (!function_exists('singularize')) { |
|
215 | 215 | /** |
216 | 216 | * Return $word in singular form. |
217 | 217 | * |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } |
226 | 226 | } |
227 | 227 | |
228 | -if (! function_exists('tableize')) { |
|
228 | +if (!function_exists('tableize')) { |
|
229 | 229 | /** |
230 | 230 | * Returns corresponding table name for given model $className. ("people" for the model class "Person"). |
231 | 231 | * |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | } |
240 | 240 | } |
241 | 241 | |
242 | -if (! function_exists('underscore')) { |
|
242 | +if (!function_exists('underscore')) { |
|
243 | 243 | /** |
244 | 244 | * Underscore |
245 | 245 | * |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | } |
254 | 254 | } |
255 | 255 | |
256 | -if (! function_exists('variable')) { |
|
256 | +if (!function_exists('variable')) { |
|
257 | 257 | /** |
258 | 258 | * Returns camelBacked version of an underscored string. |
259 | 259 | * |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | } |
268 | 268 | } |
269 | 269 | |
270 | -if (! function_exists('counted')) { |
|
270 | +if (!function_exists('counted')) { |
|
271 | 271 | /** |
272 | 272 | * Counted |
273 | 273 | * |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | } |
286 | 286 | } |
287 | 287 | |
288 | -if (! function_exists('pascalize')) { |
|
288 | +if (!function_exists('pascalize')) { |
|
289 | 289 | /** |
290 | 290 | * Pascalize |
291 | 291 | * |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | } |
302 | 302 | } |
303 | 303 | |
304 | -if (! function_exists('is_pluralizable')) { |
|
304 | +if (!function_exists('is_pluralizable')) { |
|
305 | 305 | /** |
306 | 306 | * Checks if the given word has a plural version. |
307 | 307 | * |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | */ |
310 | 310 | function is_pluralizable(string $word): bool |
311 | 311 | { |
312 | - return ! in_array( |
|
312 | + return !in_array( |
|
313 | 313 | strtolower($word), |
314 | 314 | [ |
315 | 315 | 'advice', |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | } |
385 | 385 | } |
386 | 386 | |
387 | -if (! function_exists('ordinal')) { |
|
387 | +if (!function_exists('ordinal')) { |
|
388 | 388 | /** |
389 | 389 | * Returns the suffix that should be added to a |
390 | 390 | * number to denote the position in an ordered |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | } |
412 | 412 | } |
413 | 413 | |
414 | -if (! function_exists('ordinalize')) { |
|
414 | +if (!function_exists('ordinalize')) { |
|
415 | 415 | /** |
416 | 416 | * Turns a number into an ordinal string used |
417 | 417 | * to denote the position in an ordered sequence |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $config = config('cache'); |
55 | 55 | $handler = $this->argument('driver', $config['handler']); |
56 | 56 | |
57 | - if (! array_key_exists($handler, $config['valid_handlers'])) { |
|
57 | + if (!array_key_exists($handler, $config['valid_handlers'])) { |
|
58 | 58 | $this->fail($handler . 'n\'est pas un gestionnaire de cache valide.'); |
59 | 59 | |
60 | 60 | return; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $config['handler'] = $handler; |
64 | 64 | $cache = Services::cache($config); |
65 | 65 | |
66 | - if (! $cache->clear()) { |
|
66 | + if (!$cache->clear()) { |
|
67 | 67 | // @codeCoverageIgnoreStart |
68 | 68 | $this->fail('Erreur lors de l\'effacement du cache.'); |
69 | 69 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | 'nom' => $key, |
70 | 70 | 'chemin du serveur' => clean_path($field['server_path']), |
71 | 71 | 'taille' => number_to_size($field['size']), |
72 | - 'date' => $field['date'], // @todo formatter avec Utilities\Date |
|
72 | + 'date' => $field['date'], // @todo formatter avec Utilities\Date |
|
73 | 73 | ]; |
74 | 74 | } |
75 | 75 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | $name = $this->argument('name'); |
58 | 58 | if (empty($name)) { |
59 | - $name = $this->prompt(lang('Migrations.migSeeder'), null, static function ($val) { |
|
59 | + $name = $this->prompt(lang('Migrations.migSeeder'), null, static function($val) { |
|
60 | 60 | if (empty($val)) { |
61 | 61 | throw new InvalidArgumentException('Veuillez entrer le nom du seeder.'); |
62 | 62 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $runner->clearMessages(); |
64 | 64 | $runner->setFiles(Helper::getMigrationFiles($this->option('all') === true, $namespace)); |
65 | 65 | |
66 | - if (! $runner->latest($group)) { |
|
66 | + if (!$runner->latest($group)) { |
|
67 | 67 | $this->fail(lang('Migrations.generalFault')); // @codeCoverageIgnore |
68 | 68 | } |
69 | 69 |