Passed
Push — master ( 26de48...72187c )
by Jan
14:14
created
src/Admin/Filter/MoneyAmountFilterType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
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.');
Please login to merge, or discard this patch.
src/Admin/Filter/DepartmentTypeFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Admin/Field/VichyFileField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Admin/Field/PasswordField.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
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
             ]);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Form/SepaExportType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Form/DepartmentChoiceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Form/TFA/TFAGoogleSettingsType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Command/UserChangePasswordCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/UserDisable2faCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.