Passed
Push — feature/updates-nov25 ( 7756b8...94cd38 )
by Johan
05:12
created
src/Surfnet/StepupMiddleware/GatewayBundle/Entity/SamlEntity.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
         #[ORM\Column(type: 'text')]
50 50
         public string $configuration,
51 51
     ) {
52
-        $this->id = (string)Uuid::uuid4();
52
+        $this->id = (string) Uuid::uuid4();
53 53
     }
54 54
 
55 55
     public static function createServiceProvider(string $entityId, array $configuration): self
Please login to merge, or discard this patch.
ManagementBundle/Validator/ServiceProviderConfigurationValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
         string $message,
167 167
         string $propertyPath,
168 168
     ): void {
169
-        $assertLowerCase = fn($sho): bool => $sho === strtolower((string)$sho);
169
+        $assertLowerCase = fn($sho): bool => $sho === strtolower((string) $sho);
170 170
 
171 171
         // The array keys match the institution name / SHO.
172 172
         $lowerCaseTestResults = array_map($assertLowerCase, array_keys($spLoaConfiguration));
Please login to merge, or discard this patch.
ManagementBundle/Validator/Constraints/HasValidConfigurationStructure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 /**
5 5
  * Copyright 2014 SURFnet bv
6 6
  *
Please login to merge, or discard this patch.
ManagementBundle/Validator/ConfigurationStructureValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             // method is not in the interface yet, but the old method is deprecated.
54 54
             $violation = $this->context->buildViolation($exception->getMessage());
55 55
             $violation->atPath($exception->getPropertyPath());
56
-        } catch (CoreInvalidArgumentException|TypeError $exception) {
56
+        } catch (CoreInvalidArgumentException | TypeError $exception) {
57 57
             $violation = $this->context->buildViolation($exception->getMessage());
58 58
         }
59 59
 
Please login to merge, or discard this patch.
StepupMiddleware/ManagementBundle/Configuration/Entity/EmailTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public static function create(string $name, string $locale, string $htmlContent): self
54 54
     {
55 55
         $self = new self();
56
-        $self->id = (string)Uuid::uuid4();
56
+        $self->id = (string) Uuid::uuid4();
57 57
 
58 58
         $self->name = $name;
59 59
         $self->locale = $locale;
Please login to merge, or discard this patch.
StepupMiddleware/ManagementBundle/Controller/ConfigurationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
         $command = new UpdateConfigurationCommand();
52 52
         $command->configuration = $request->getContent();
53
-        $command->UUID = (string)Uuid::uuid4();
53
+        $command->UUID = (string) Uuid::uuid4();
54 54
 
55 55
         return $this->handleCommand($request, $command);
56 56
     }
Please login to merge, or discard this patch.
StepupMiddleware/ManagementBundle/Controller/WhitelistController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->denyAccessUnlessGranted('ROLE_MANAGEMENT');
54 54
 
55 55
         $command = new ReplaceWhitelistCommand();
56
-        $command->UUID = (string)Uuid::uuid4();
56
+        $command->UUID = (string) Uuid::uuid4();
57 57
         $command->institutions = $this->getInstitutionsFromBody($request);
58 58
 
59 59
         return $this->handleCommand($request, $command);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $this->denyAccessUnlessGranted('ROLE_MANAGEMENT');
65 65
 
66 66
         $command = new AddToWhitelistCommand();
67
-        $command->UUID = (string)Uuid::uuid4();
67
+        $command->UUID = (string) Uuid::uuid4();
68 68
         $command->institutionsToBeAdded = $this->getInstitutionsFromBody($request);
69 69
 
70 70
         return $this->handleCommand($request, $command);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $this->denyAccessUnlessGranted('ROLE_MANAGEMENT');
76 76
 
77 77
         $command = new RemoveFromWhitelistCommand();
78
-        $command->UUID = (string)Uuid::uuid4();
78
+        $command->UUID = (string) Uuid::uuid4();
79 79
         $command->institutionsToBeRemoved = $this->getInstitutionsFromBody($request);
80 80
 
81 81
         return $this->handleCommand($request, $command);
Please login to merge, or discard this patch.
ManagementBundle/Controller/RightToBeForgottenController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $this->assertMayForget(new NameId($payload['name_id']), new Institution($payload['institution']));
65 65
 
66 66
         $command = new ForgetIdentityCommand();
67
-        $command->UUID = (string)Uuid::uuid4();
67
+        $command->UUID = (string) Uuid::uuid4();
68 68
         $command->nameId = $payload['name_id'];
69 69
         $command->institution = $payload['institution'];
70 70
 
Please login to merge, or discard this patch.
SensitiveData/Repository/SensitiveDataMessageRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
                 WHERE identity_id = :identity_id
44 44
                 ORDER BY playhead ASC';
45 45
 
46
-        $rows = $this->connection->fetchAllAssociative($sql, ['identity_id' => (string)$identityId]);
46
+        $rows = $this->connection->fetchAllAssociative($sql, ['identity_id' => (string) $identityId]);
47 47
         $messages = array_map(fn(array $row): SensitiveDataMessage => new SensitiveDataMessage(
48 48
             $identityId,
49
-            (int)$row['playhead'],
49
+            (int) $row['playhead'],
50 50
             SensitiveData::deserialize(JsonHelper::decode($row['sensitive_data'])),
51 51
         ), $rows);
52 52
 
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
             foreach ($sensitiveDataMessageStream as $sensitiveDataMessage) {
65 65
                 /** @var SensitiveDataMessage $sensitiveDataMessage */
66 66
                 $this->connection->insert('event_stream_sensitive_data', [
67
-                    'identity_id' => (string)$sensitiveDataMessage->getIdentityId(),
67
+                    'identity_id' => (string) $sensitiveDataMessage->getIdentityId(),
68 68
                     'playhead' => $sensitiveDataMessage->getPlayhead(),
69
-                    'sensitive_data' => json_encode((object)$sensitiveDataMessage->getSensitiveData()->serialize()),
69
+                    'sensitive_data' => json_encode((object) $sensitiveDataMessage->getSensitiveData()->serialize()),
70 70
                 ]);
71 71
             }
72 72
             $this->connection->commit();
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
                 /** @var SensitiveDataMessage $sensitiveDataMessage */
89 89
                 $this->connection->update(
90 90
                     'event_stream_sensitive_data',
91
-                    ['sensitive_data' => json_encode((object)$sensitiveDataMessage->getSensitiveData()->serialize())],
91
+                    ['sensitive_data' => json_encode((object) $sensitiveDataMessage->getSensitiveData()->serialize())],
92 92
                     [
93
-                        'identity_id' => (string)$sensitiveDataMessage->getIdentityId(),
93
+                        'identity_id' => (string) $sensitiveDataMessage->getIdentityId(),
94 94
                         'playhead' => $sensitiveDataMessage->getPlayhead(),
95 95
                     ],
96 96
                 );
Please login to merge, or discard this patch.