Skip to content

Commit 0317245

Browse files
committed
run rector
1 parent faa0c99 commit 0317245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/CLI/CLI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public static function prompt(string $field, $options = null, $validation = null
267267
// Read the input from keyboard.
268268
$input = trim(static::input()) ?: $default;
269269

270-
if ($validation) {
270+
if ($validation !== []) {
271271
while (! static::validate('"' . trim($field) . '"', $input, $validation)) {
272272
$input = static::prompt($field, $options, $validation);
273273
}
@@ -1088,7 +1088,7 @@ public static function table(array $tbody, array $thead = [])
10881088
foreach ($tableRows[$row] as $col) {
10891089
$diff = $maxColsLengths[$column] - static::strlen($col);
10901090

1091-
if ($diff) {
1091+
if ($diff !== 0) {
10921092
$tableRows[$row][$column] .= str_repeat(' ', $diff);
10931093
}
10941094

0 commit comments

Comments
 (0)