Passed
Pull Request — master (#8)
by
unknown
10:12
created
public/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 use Symfony\Component\ErrorHandler\Debug;
6 6
 use Symfony\Component\HttpFoundation\Request;
7 7
 
8
-require dirname(__DIR__).'/vendor/autoload.php';
8
+require dirname(__DIR__) . '/vendor/autoload.php';
9 9
 
10
-(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
10
+(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
11 11
 
12 12
 if ($_SERVER['APP_DEBUG']) {
13 13
     umask(0000);
Please login to merge, or discard this patch.
src/Services/PaymentOrdersSEPAExporter.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -216,10 +216,10 @@
 block discarded – undo
216 216
     protected function configureOptions(OptionsResolver $resolver): void
217 217
     {
218 218
         $resolver->setRequired([
219
-                                   'iban', //The IBAN of the sender
220
-                                   'bic', //The BIC of the sender
221
-                                   'name', //The name of the sender
222
-                               ]);
219
+                                    'iban', //The IBAN of the sender
220
+                                    'bic', //The BIC of the sender
221
+                                    'name', //The name of the sender
222
+                                ]);
223 223
 
224 224
         $resolver->setAllowedTypes('iban', ['string', 'null']);
225 225
         $resolver->setAllowedTypes('bic', ['string', 'null']);
Please login to merge, or discard this 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.
ecs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
24 24
 use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
25 25
 
26
-return static function (ContainerConfigurator $containerConfigurator): void {
26
+return static function(ContainerConfigurator $containerConfigurator): void {
27 27
     $parameters = $containerConfigurator->parameters();
28 28
     $parameters->set(Option::SETS, [
29 29
         SetList::CLEAN_CODE,
Please login to merge, or discard this patch.
config/preload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
4
-    require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
3
+if (file_exists(dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php')) {
4
+    require dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php';
5 5
 }
Please login to merge, or discard this patch.
src/EventSubscriber/Fail2BanSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         $ipAddress = $this->request->getCurrentRequest()
51 51
             ->getClientIp();
52
-        $this->logger->error('Authentication failed for IP: '.$ipAddress);
52
+        $this->logger->error('Authentication failed for IP: ' . $ipAddress);
53 53
     }
54 54
 
55 55
     public static function getSubscribedEvents(): array
Please login to merge, or discard this patch.
src/Controller/UserSettingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             throw new RuntimeException('This controller only works only for Part-DB User objects!');
149 149
         }
150 150
 
151
-        if ($this->isCsrfTokenValid('regenerate_backup_codes'.$user->getId(), $request->request->get('_token'))) {
151
+        if ($this->isCsrfTokenValid('regenerate_backup_codes' . $user->getId(), $request->request->get('_token'))) {
152 152
             $backupCodeManager->regenerateBackupCodes($user);
153 153
             $entityManager->flush();
154 154
             $this->addFlash('success', 'user.settings.2fa.backup_codes.regenerated');
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             throw new RuntimeException('This controller only works only for Part-DB User objects!');
176 176
         }
177 177
 
178
-        if ($this->isCsrfTokenValid('devices_reset'.$user->getId(), $request->request->get('_token'))) {
178
+        if ($this->isCsrfTokenValid('devices_reset' . $user->getId(), $request->request->get('_token'))) {
179 179
             $user->invalidateTrustedDevices();
180 180
             $entityManager->flush();
181 181
             $this->addFlash('success', 'tfa_trustedDevice.invalidate.success');
Please login to merge, or discard this patch.
src/Entity/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
             return $this->getFirstName();
312 312
         }
313 313
 
314
-        return $this->getFirstName().' '.$this->getLastName();
314
+        return $this->getFirstName() . ' ' . $this->getLastName();
315 315
     }
316 316
 
317 317
     /**
@@ -460,6 +460,6 @@  discard block
 block discarded – undo
460 460
 
461 461
     public function __toString(): string
462 462
     {
463
-        return $this->getFullName().' ('.$this->username.')';
463
+        return $this->getFullName() . ' (' . $this->username . ')';
464 464
     }
465 465
 }
Please login to merge, or discard this patch.
src/Entity/PaymentOrder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
             return $this->getFirstName();
268 268
         }
269 269
 
270
-        return $this->getFirstName().' '.$this->getLastName();
270
+        return $this->getFirstName() . ' ' . $this->getLastName();
271 271
     }
272 272
 
273 273
     /**
Please login to merge, or discard this patch.
src/Entity/Embeddable/PayeeInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,6 +270,6 @@
 block discarded – undo
270 270
      */
271 271
     public function getAddress(): string
272 272
     {
273
-        return $this->getStreet().', '.$this->getZipCode().' '.$this->getCity();
273
+        return $this->getStreet() . ', ' . $this->getZipCode() . ' ' . $this->getCity();
274 274
     }
275 275
 }
Please login to merge, or discard this patch.