@@ -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) |
@@ -14,24 +14,24 @@ |
||
14 | 14 | protected function configureContainer(ContainerConfigurator $container): void |
15 | 15 | { |
16 | 16 | $container->import('../config/{packages}/*.yaml'); |
17 | - $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); |
|
17 | + $container->import('../config/{packages}/' . $this->environment . '/*.yaml'); |
|
18 | 18 | |
19 | - if (is_file(\dirname(__DIR__).'/config/services.yaml')) { |
|
19 | + if (is_file(\dirname(__DIR__) . '/config/services.yaml')) { |
|
20 | 20 | $container->import('../config/services.yaml'); |
21 | - $container->import('../config/{services}_'.$this->environment.'.yaml'); |
|
22 | - } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { |
|
21 | + $container->import('../config/{services}_' . $this->environment . '.yaml'); |
|
22 | + } elseif (is_file($path = \dirname(__DIR__) . '/config/services.php')) { |
|
23 | 23 | (require $path)($container->withPath($path), $this); |
24 | 24 | } |
25 | 25 | } |
26 | 26 | |
27 | 27 | protected function configureRoutes(RoutingConfigurator $routes): void |
28 | 28 | { |
29 | - $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); |
|
29 | + $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); |
|
30 | 30 | $routes->import('../config/{routes}/*.yaml'); |
31 | 31 | |
32 | - if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { |
|
32 | + if (is_file(\dirname(__DIR__) . '/config/routes.yaml')) { |
|
33 | 33 | $routes->import('../config/routes.yaml'); |
34 | - } elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) { |
|
34 | + } elseif (is_file($path = \dirname(__DIR__) . '/config/routes.php')) { |
|
35 | 35 | (require $path)($routes->withPath($path), $this); |
36 | 36 | } |
37 | 37 | } |
@@ -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 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | public function configureOptions(OptionsResolver $resolver): void |
93 | 93 | { |
94 | 94 | $resolver->setDefaults([ |
95 | - 'data_class' => User::class, |
|
96 | - ]); |
|
95 | + 'data_class' => User::class, |
|
96 | + ]); |
|
97 | 97 | } |
98 | 98 | } |
@@ -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; |