@@ -48,8 +48,8 @@ |
||
48 | 48 | ]); |
49 | 49 | |
50 | 50 | $builder->addModelTransformer(new CallbackTransformer( |
51 | - static function ($data) { return $data; }, |
|
52 | - static function ($data) { |
|
51 | + static function($data) { return $data; }, |
|
52 | + static function($data) { |
|
53 | 53 | if (ComparisonType::BETWEEN === $data['comparison']) { |
54 | 54 | if (null === $data['value'] || '' === $data['value'] || null === $data['value2'] || '' === $data['value2']) { |
55 | 55 | throw new TransformationFailedException('Two values must be provided when "BETWEEN" comparison is selected.'); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $choices = []; |
37 | 37 | |
38 | 38 | foreach (Department::ALLOWED_TYPES as $type) { |
39 | - $choices['department.type.'.$type] = $type; |
|
39 | + $choices['department.type.' . $type] = $type; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $choices['department.type.section_misc'] = 'section_misc'; |
@@ -69,6 +69,6 @@ discard block |
||
69 | 69 | $filterDataDto->getValue() |
70 | 70 | ); |
71 | 71 | } |
72 | - $queryBuilder->leftJoin($filterDataDto->getEntityAlias().'.department', 'department'); |
|
72 | + $queryBuilder->leftJoin($filterDataDto->getEntityAlias() . '.department', 'department'); |
|
73 | 73 | } |
74 | 74 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | use FieldTrait; |
31 | 31 | |
32 | - public static function new(string $propertyName, ?string $label = null): VichyFileField |
|
32 | + public static function new(string $propertyName, ?string $label = null) : VichyFileField |
|
33 | 33 | { |
34 | 34 | return (new self()) |
35 | 35 | ->setProperty($propertyName) |
@@ -38,10 +38,10 @@ |
||
38 | 38 | ->setTemplateName('crud/field/text') |
39 | 39 | ->setFormTypeOptions([ |
40 | 40 | 'type' => PasswordType::class, |
41 | - 'first_options' => [ |
|
41 | + 'first_options' => [ |
|
42 | 42 | 'label' => 'password.new', |
43 | 43 | ], |
44 | - 'second_options' => [ |
|
44 | + 'second_options' => [ |
|
45 | 45 | 'label' => 'password.repeat', |
46 | 46 | ], |
47 | 47 | ]); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | use FieldTrait; |
32 | 32 | |
33 | - public static function new(string $propertyName, ?string $label = null): PasswordField |
|
33 | + public static function new(string $propertyName, ?string $label = null) : PasswordField |
|
34 | 34 | { |
35 | 35 | return (new self()) |
36 | 36 | ->setProperty($propertyName) |
@@ -56,8 +56,8 @@ |
||
56 | 56 | 'data-mode-manual' => true, |
57 | 57 | ], |
58 | 58 | 'placeholder' => 'sepa_export.bank_account.placeholder', |
59 | - 'choice_label' => function (BankAccount $account) { |
|
60 | - return $account->getExportAccountName().' ['.$account->getIban().']'; |
|
59 | + 'choice_label' => function(BankAccount $account) { |
|
60 | + return $account->getExportAccountName() . ' [' . $account->getIban() . ']'; |
|
61 | 61 | }, |
62 | 62 | ]); |
63 | 63 |
@@ -49,8 +49,8 @@ |
||
49 | 49 | ], |
50 | 50 | ]); |
51 | 51 | |
52 | - $resolver->setDefault('group_by', function (Department $choice, $key, $value) { |
|
53 | - return $this->translator->trans('department.type.'.$choice->getType() ?? 'misc'); |
|
52 | + $resolver->setDefault('group_by', function(Department $choice, $key, $value) { |
|
53 | + return $this->translator->trans('department.type.' . $choice->getType() ?? 'misc'); |
|
54 | 54 | }); |
55 | 55 | } |
56 | 56 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | public function buildForm(FormBuilderInterface $builder, array $options): void |
41 | 41 | { |
42 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event): void { |
|
42 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event): void { |
|
43 | 43 | $form = $event->getForm(); |
44 | 44 | /** @var User $user */ |
45 | 45 | $user = $event->getData(); |
@@ -63,12 +63,12 @@ |
||
63 | 63 | ]); |
64 | 64 | |
65 | 65 | if (null === $user) { |
66 | - $io->error('No user found with username '.$username); |
|
66 | + $io->error('No user found with username ' . $username); |
|
67 | 67 | |
68 | 68 | return self::FAILURE; |
69 | 69 | } |
70 | 70 | |
71 | - $io->confirm('You are about to change the password of following user: '.$username.' Continue?'); |
|
71 | + $io->confirm('You are about to change the password of following user: ' . $username . ' Continue?'); |
|
72 | 72 | |
73 | 73 | $password = $input->getOption('password'); |
74 | 74 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | return self::FAILURE; |
66 | 66 | } |
67 | 67 | |
68 | - $io->warning('You are about to remove all Two-Factor-Authentication methods of following user: '.$user->getUsername()); |
|
68 | + $io->warning('You are about to remove all Two-Factor-Authentication methods of following user: ' . $user->getUsername()); |
|
69 | 69 | $io->warning('Only continue if you are sure about the identity of the person that asked you to do this!'); |
70 | 70 | |
71 | 71 | $continue = false; |