Passed
Push — master ( 26de48...72187c )
by Jan
14:14
created
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/BankAccount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,6 +210,6 @@
 block discarded – undo
210 210
      */
211 211
     public function __toString(): string
212 212
     {
213
-        return ($this->name ?? 'unknown').' ['.$this->iban.']';
213
+        return ($this->name ?? 'unknown') . ' [' . $this->iban . ']';
214 214
     }
215 215
 }
Please login to merge, or discard this patch.
src/Services/GitVersionInfo.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function getGitBranchName(): ?string
48 48
     {
49
-        return $this->cache->get('git_branch', function (ItemInterface $item) {
49
+        return $this->cache->get('git_branch', function(ItemInterface $item) {
50 50
             $item->expiresAfter(4320); //Recache every 12h
51
-            if (is_file($this->project_dir.'/.git/HEAD')) {
52
-                $git = file($this->project_dir.'/.git/HEAD');
51
+            if (is_file($this->project_dir . '/.git/HEAD')) {
52
+                $git = file($this->project_dir . '/.git/HEAD');
53 53
                 $head = explode('/', $git[0], 3);
54 54
 
55 55
                 if (!isset($head[2])) {
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function getGitCommitHash(int $length = 7): ?string
77 77
     {
78
-        return $this->cache->get('git_hash', function (ItemInterface $item) use ($length) {
78
+        return $this->cache->get('git_hash', function(ItemInterface $item) use ($length) {
79 79
             $item->expiresAfter(4320); //Recache every 12h
80 80
 
81
-            $filename = $this->project_dir.'/.git/refs/remotes/origin/'.$this->getGitBranchName();
81
+            $filename = $this->project_dir . '/.git/refs/remotes/origin/' . $this->getGitBranchName();
82 82
             if (is_file($filename)) {
83 83
                 $head = file($filename);
84 84
 
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.