apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -21,8 +21,6 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use function ctype_digit;
final class ChillPersonMoveCommand extends Command
{
public function __construct(
@@ -41,11 +39,11 @@ final class ChillPersonMoveCommand extends Command
];
foreach ($deleteEntities as $key => $de) {
$ctxt['delete_entity_' . $key] = $de;
$ctxt['delete_entity_'.$key] = $de;
}
foreach ($sqls as $key => $sql) {
$ctxt['sql_' . $key] = $sql;
$ctxt['sql_'.$key] = $sql;
}
return $ctxt;
@@ -100,6 +98,7 @@ final class ChillPersonMoveCommand extends Command
$this->chillLogger->notice('Move a person from command line succeeded', $ctxt);
}
return 0;
}
@@ -117,9 +116,8 @@ final class ChillPersonMoveCommand extends Command
}
$id = $input->getOption($name);
if (ctype_digit((string) $id) === false) {
throw new RuntimeException("The id in \"{$name}\" field does not contains "
. "only digits: {$id}");
if (false === \ctype_digit((string) $id)) {
throw new RuntimeException("The id in \"{$name}\" field does not contains only digits: {$id}");
}
}
}