@@ -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 | * |
@@ -71,17 +71,17 @@ discard block |
||
71 | 71 | $name = str_replace(site_url() . 'lib/', '', htmlspecialchars($name)); |
72 | 72 | |
73 | 73 | if (is_localfile($name)) { |
74 | - $name .= (! preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
74 | + $name .= (!preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
75 | 75 | $filename = WEBROOT . 'lib' . DS . $name; |
76 | 76 | |
77 | 77 | return site_url() . 'lib/' . $name . ((file_exists($filename)) ? '?v=' . filemtime($filename) : ''); |
78 | 78 | } |
79 | 79 | |
80 | - return $name . (! preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
80 | + return $name . (!preg_match('#\.css$#i', $name) ? '.css' : ''); |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | |
84 | -if (! function_exists('lib_js_url')) { |
|
84 | +if (!function_exists('lib_js_url')) { |
|
85 | 85 | /** |
86 | 86 | * LIB JS URL |
87 | 87 | * |
@@ -95,17 +95,17 @@ discard block |
||
95 | 95 | $name = str_replace(site_url() . 'lib/', '', htmlspecialchars($name)); |
96 | 96 | |
97 | 97 | if (is_localfile($name)) { |
98 | - $name .= (! preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
98 | + $name .= (!preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
99 | 99 | $filename = WEBROOT . 'lib' . DS . $name; |
100 | 100 | |
101 | 101 | return site_url() . 'lib/' . $name . ((file_exists($filename)) ? '?v=' . filemtime($filename) : ''); |
102 | 102 | } |
103 | 103 | |
104 | - return $name . (! preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
104 | + return $name . (!preg_match('#\.js$#i', $name) ? '.js' : ''); |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
108 | -if (! function_exists('lib_styles')) { |
|
108 | +if (!function_exists('lib_styles')) { |
|
109 | 109 | /** |
110 | 110 | * LIB_STYLES |
111 | 111 | * |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | foreach ($name as $style) { |
125 | 125 | if (is_string($style)) { |
126 | - $style = (! preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
126 | + $style = (!preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
127 | 127 | if (is_file(WEBROOT . 'lib' . DS . str_replace('/', DS, $style))) { |
128 | 128 | $return[] = '<link rel="preload" type="text/css" href="' . lib_css_url($style) . '" as="style"> |
129 | 129 | <link rel="stylesheet" type="text/css" href="' . lib_css_url($style) . '" />'; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | } |
148 | 148 | } |
149 | 149 | |
150 | -if (! function_exists('lib_scripts')) { |
|
150 | +if (!function_exists('lib_scripts')) { |
|
151 | 151 | /** |
152 | 152 | * LIB_SCRIPTS |
153 | 153 | * |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | foreach ($name as $script) { |
167 | 167 | if (is_string($script)) { |
168 | - $script = (! preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
168 | + $script = (!preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
169 | 169 | if (is_file(WEBROOT . 'lib' . DS . str_replace('/', DS, $script))) { |
170 | 170 | $return[] = '<script type="text/javascript" src="' . lib_js_url($script) . '"></script>'; |
171 | 171 | } elseif (is_localfile($script)) { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | } |
188 | 188 | } |
189 | 189 | |
190 | -if (! function_exists('styles')) { |
|
190 | +if (!function_exists('styles')) { |
|
191 | 191 | /** |
192 | 192 | * STYLES |
193 | 193 | * |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | |
206 | 206 | foreach ($name as $style) { |
207 | 207 | if (is_string($style)) { |
208 | - $style = (! preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
208 | + $style = (!preg_match('#\.css$#i', $style) ? $style . '.css' : $style); |
|
209 | 209 | if (is_file(WEBROOT . 'css' . DS . str_replace('/', DS, $style))) { |
210 | 210 | $return[] = '<link rel="preload" type="text/css" href="' . css_url($style) . '" as="style"> |
211 | 211 | <link rel="stylesheet" type="text/css" href="' . css_url($style) . '" />'; |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | } |
230 | 230 | } |
231 | 231 | |
232 | -if (! function_exists('scripts')) { |
|
232 | +if (!function_exists('scripts')) { |
|
233 | 233 | /** |
234 | 234 | * SCRIPTS |
235 | 235 | * |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | foreach ($name as $script) { |
249 | 249 | if (is_string($script)) { |
250 | - $script = (! preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
250 | + $script = (!preg_match('#\.js$#i', $script) ? $script . '.js' : $script); |
|
251 | 251 | if (is_file(WEBROOT . 'js' . DS . str_replace('/', DS, $script))) { |
252 | 252 | $return[] = '<script type="text/javascript" src="' . js_url($script) . '"></script>'; |
253 | 253 | } elseif (is_localfile($script)) { |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | } |
270 | 270 | } |
271 | 271 | |
272 | -if (! function_exists('less_url')) { |
|
272 | +if (!function_exists('less_url')) { |
|
273 | 273 | /** |
274 | 274 | * LESS URL |
275 | 275 | * |
@@ -283,17 +283,17 @@ discard block |
||
283 | 283 | $name = str_replace(site_url() . 'less/', '', htmlspecialchars($name)); |
284 | 284 | |
285 | 285 | if (is_localfile($name)) { |
286 | - $name .= (! preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
286 | + $name .= (!preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
287 | 287 | $filename = WEBROOT . 'less' . DS . $name; |
288 | 288 | |
289 | 289 | return site_url() . 'less/' . $name . ((file_exists($filename)) ? '?v=' . filemtime($filename) : ''); |
290 | 290 | } |
291 | 291 | |
292 | - return $name . (! preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
292 | + return $name . (!preg_match('#\.less$#i', $name) ? '.less' : ''); |
|
293 | 293 | } |
294 | 294 | } |
295 | 295 | |
296 | -if (! function_exists('less_styles')) { |
|
296 | +if (!function_exists('less_styles')) { |
|
297 | 297 | /** |
298 | 298 | * LESS_STYLES |
299 | 299 | * |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | |
312 | 312 | foreach ($name as $style) { |
313 | 313 | if (is_string($style)) { |
314 | - $style = (! preg_match('#\.less$#i', $style) ? $style . '.less' : $style); |
|
314 | + $style = (!preg_match('#\.less$#i', $style) ? $style . '.less' : $style); |
|
315 | 315 | if (is_file(WEBROOT . 'less' . DS . str_replace('/', DS, $style))) { |
316 | 316 | $return[] = '<link rel="stylesheet" type="text/less" href="' . less_url($style) . '" />'; |
317 | 317 | } elseif (is_localfile($style)) { |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | } |
334 | 334 | } |
335 | 335 | |
336 | -if (! function_exists('img_url')) { |
|
336 | +if (!function_exists('img_url')) { |
|
337 | 337 | /** |
338 | 338 | * IMG URL |
339 | 339 | * |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | } |
361 | 361 | } |
362 | 362 | |
363 | -if (! function_exists('img')) { |
|
363 | +if (!function_exists('img')) { |
|
364 | 364 | /** |
365 | 365 | * IMG |
366 | 366 | * |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | } |
392 | 392 | } |
393 | 393 | |
394 | -if (! function_exists('docs_url')) { |
|
394 | +if (!function_exists('docs_url')) { |
|
395 | 395 | /** |
396 | 396 | * DOCS URL |
397 | 397 | * |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | } |
419 | 419 | } |
420 | 420 | |
421 | -if (! function_exists('videos_url')) { |
|
421 | +if (!function_exists('videos_url')) { |
|
422 | 422 | /** |
423 | 423 | * VIDEOS URL |
424 | 424 | * |
@@ -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 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | // @codeCoverageIgnoreStart |
58 | 58 | $force = $this->option('force'); |
59 | 59 | |
60 | - if (! $force && ! $this->confirm(lang('Migrations.rollBackConfirm'))) { |
|
60 | + if (!$force && !$this->confirm(lang('Migrations.rollBackConfirm'))) { |
|
61 | 61 | return; |
62 | 62 | } |
63 | 63 | // @codeCoverageIgnoreEnd |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | $runner->setFiles(Helper::getMigrationFiles(true)); |
75 | 75 | |
76 | - if (! $runner->regress($batch, $group)) { |
|
76 | + if (!$runner->regress($batch, $group)) { |
|
77 | 77 | $this->error(lang('Migrations.generalFault')); // @codeCoverageIgnore |
78 | 78 | } |
79 | 79 |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $status = []; |
74 | 74 | |
75 | 75 | foreach (Helper::getMigrationFiles(true) as $namespace => $files) { |
76 | - if (! on_test()) { |
|
76 | + if (!on_test()) { |
|
77 | 77 | // Rendre Tests\\Support détectable pour les tests |
78 | 78 | $this->ignoredNamespaces[] = 'Tests\Support'; // @codeCoverageIgnore |
79 | 79 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | } |
127 | 127 | |
128 | - if (! $status) { |
|
128 | + if (!$status) { |
|
129 | 129 | // @codeCoverageIgnoreStart |
130 | 130 | $this->error(lang('Migrations.noneFound'))->newLine(); |
131 | 131 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | // @codeCoverageIgnoreStart |
60 | 60 | $force = $this->option('force'); |
61 | 61 | |
62 | - if (! $force && ! $this->confirm(lang('Migrations.refreshConfirm'))) { |
|
62 | + if (!$force && !$this->confirm(lang('Migrations.refreshConfirm'))) { |
|
63 | 63 | return; |
64 | 64 | } |
65 | 65 |