mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -29,6 +29,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
|
||||
use function array_combine;
|
||||
use function array_map;
|
||||
use function count;
|
||||
@@ -217,9 +218,13 @@ class SingleTaskListType extends AbstractType
|
||||
$users = $this->getUsersAssigneedToTask($options);
|
||||
$choices = array_combine(
|
||||
// get usernames
|
||||
array_map(static function (User $user) { return $user->getUsername(); }, $users),
|
||||
array_map(static function (User $user) {
|
||||
return $user->getUsername();
|
||||
}, $users),
|
||||
// get ids
|
||||
array_map(static function (User $user) { return $user->getId(); }, $users)
|
||||
array_map(static function (User $user) {
|
||||
return $user->getId();
|
||||
}, $users)
|
||||
);
|
||||
$choices['Unassigned'] = '_unassigned';
|
||||
|
||||
|
Reference in New Issue
Block a user