mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 11:33:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user