Passed
Push — master ( b52b6b...5662c6 )
by Jan
06:20
created
src/Services/PaymentOrdersSEPAExporter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
             // A single payment info where all PaymentOrders are added as transactions
94 94
             $payment = new PaymentInformation(
95
-                static::PAYMENT_PREFIX.' '.uniqid('', false),
95
+                static::PAYMENT_PREFIX . ' ' . uniqid('', false),
96 96
                 $account_info['iban'],
97 97
                 $account_info['bic'],
98 98
                 $account_info['name']
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
         // A single payment info where all PaymentOrders are added as transactions
146 146
         $payment = new PaymentInformation(
147
-            $paymentOrder->getIDString().' '.uniqid('', false),
147
+            $paymentOrder->getIDString() . ' ' . uniqid('', false),
148 148
             $iban,
149 149
             $bic,
150 150
             $account_name
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     protected function getGroupHeader(): GroupHeader
172 172
     {
173 173
         return new GroupHeader(
174
-            static::ID_PREFIX.' '.uniqid('', false),
174
+            static::ID_PREFIX . ' ' . uniqid('', false),
175 175
             static::PARTY_NAME
176 176
         );
177 177
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     protected function getPaymentInfoID(PaymentOrder $paymentOrder): string
184 184
     {
185
-        return $paymentOrder->getIDString().' '.uniqid('', false);
185
+        return $paymentOrder->getIDString() . ' ' . uniqid('', false);
186 186
     }
187 187
 
188 188
     /**
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
         $resolver->setDefault('mode', 'manual');
287 287
         $resolver->setAllowedValues('mode', ['auto', 'manual', 'auto_single']);
288 288
 
289
-        $resolver->setNormalizer('iban', function (Options $options, $value) {
289
+        $resolver->setNormalizer('iban', function(Options $options, $value) {
290 290
             if (null === $value) {
291 291
                 return null;
292 292
             }
Please login to merge, or discard this patch.
src/Services/Upload/PaymentOrderFileNamer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@
 block discarded – undo
52 52
 
53 53
         $filename = mb_strimwidth($slugger->slug($object->getDepartment()->getName() ?? 'unknown'), 0, 16);
54 54
 
55
-        $filename .= '_'.mb_strimwidth($slugger->slug($object->getProjectName()), 0, 16);
55
+        $filename .= '_' . mb_strimwidth($slugger->slug($object->getProjectName()), 0, 16);
56 56
 
57
-        $filename .= '_'.date('ymd-His');
57
+        $filename .= '_' . date('ymd-His');
58 58
 
59
-        $filename .= '_'.bin2hex(random_bytes(5));
59
+        $filename .= '_' . bin2hex(random_bytes(5));
60 60
 
61 61
         //Add original extension
62
-        $filename .= '.'.$originalExtension;
62
+        $filename .= '.' . $originalExtension;
63 63
 
64 64
         return $filename;
65 65
     }
Please login to merge, or discard this patch.
src/Services/PaymentOrderMailLinkGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             //Add subject
58 58
             $mailTo->setHeader('subject', $this->getSubject($paymentOrder));
59 59
 
60
-            $content = 'Link: '.
60
+            $content = 'Link: ' .
61 61
                 $this->adminURLGenerator->setController(PaymentOrderCrudController::class)
62 62
                     ->setEntityId($paymentOrder->getId())
63 63
                     ->setAction('detail')
Please login to merge, or discard this patch.
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 1 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/Kernel.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,24 +14,24 @@
 block discarded – undo
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
     }
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.