cs: Fix code-style (using PHPCSFixer and PHPCS).

This commit is contained in:
Pol Dellaiera
2021-12-21 10:59:23 +01:00
parent b7360955f7
commit 8401ce2656
280 changed files with 742 additions and 319 deletions

View File

@@ -32,6 +32,7 @@ use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use function array_key_exists;
use function array_keys;
use function array_merge;
@@ -308,8 +309,10 @@ class ChillImportUsersCommand extends Command
$permissionGroupsByName = [];
foreach ($this->em->getRepository(PermissionsGroup::class)
->findAll() as $permissionGroup) {
foreach (
$this->em->getRepository(PermissionsGroup::class)
->findAll() as $permissionGroup
) {
$permissionGroupsByName[$permissionGroup->getName()] = $permissionGroup;
}
@@ -338,11 +341,13 @@ class ChillImportUsersCommand extends Command
$this->tempOutput->writeln('You have chosen ' . implode(', ', $keys));
if ($helper->ask(
$this->tempInput,
$this->tempOutput,
new ConfirmationQuestion('Are you sure ?', true)
)) {
if (
$helper->ask(
$this->tempInput,
$this->tempOutput,
new ConfirmationQuestion('Are you sure ?', true)
)
) {
foreach ($keys as $key) {
$this->permissionGroups[$alias][] = $permissionGroupsByName[$key];
}