mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user