Passed
Pull Request — main (#557)
by Johan
10:16 queued 05:20
created
tests/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 use Symfony\Component\Dotenv\Dotenv;
4 4
 
5
-require dirname(__DIR__).'/vendor/autoload.php';
5
+require dirname(__DIR__) . '/vendor/autoload.php';
6 6
 
7
-if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
8
-    require dirname(__DIR__).'/config/bootstrap.php';
7
+if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {
8
+    require dirname(__DIR__) . '/config/bootstrap.php';
9 9
 } elseif (method_exists(Dotenv::class, 'bootEnv')) {
10
-    (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
10
+    (new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
11 11
 }
Please login to merge, or discard this patch.
CommandHandlingBundle/Identity/Service/RecoveryTokenMailService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $subjectParameters = [
109 109
             '%commonName%' => $commonName->getCommonName(),
110 110
             '%email%' => $email->getEmail(),
111
-            '%tokenType%' => (string)$recoveryTokenType,
111
+            '%tokenType%' => (string) $recoveryTokenType,
112 112
         ];
113 113
 
114 114
         $subject = $this->translator->trans(
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
             'templateString' => $emailTemplate->htmlContent,
138 138
             'locale' => $locale->getLocale(),
139 139
             'isRevokedByRa' => $revokedByRa,
140
-            'tokenType' => (string)$recoveryTokenType,
141
-            'tokenIdentifier' => (string)$tokenId,
140
+            'tokenType' => (string) $recoveryTokenType,
141
+            'tokenIdentifier' => (string) $tokenId,
142 142
             'selfServiceUrl' => $this->selfServiceUrl,
143 143
             'commonName' => $commonName->getCommonName(),
144 144
             'emailAddress' => $email->getEmail(),
Please login to merge, or discard this patch.
ApiBundle/Identity/Repository/InstitutionListingRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         $existsQuery = $this->createQueryBuilder('i')
46 46
             ->where('i.institution = :institution')
47
-            ->setParameter('institution', (string)$institution)
47
+            ->setParameter('institution', (string) $institution)
48 48
             ->getQuery()
49 49
             ->getOneOrNullResult();
50 50
 
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Service/DeprovisionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@
 block discarded – undo
89 89
             return;
90 90
         }
91 91
         $command = new ForgetIdentityCommand();
92
-        $command->UUID = (string)Uuid::uuid4();
92
+        $command->UUID = (string) Uuid::uuid4();
93 93
         $command->nameId = $collabPersonId;
94
-        $command->institution = (string)$user->institution;
94
+        $command->institution = (string) $user->institution;
95 95
         $this->logger->debug('Processing the ForgetIdentityCommand');
96 96
         $this->pipeline->process($command);
97 97
     }
Please login to merge, or discard this patch.
ApiBundle/Authorization/Filter/InstitutionAuthorizationRepositoryFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         // Else filter on institutions we are allowed to manage
44 44
         $values = [];
45 45
         foreach ($authorizationContext->getInstitutions() as $institution) {
46
-            $values[] = (string)$institution;
46
+            $values[] = (string) $institution;
47 47
         }
48 48
 
49 49
         $parameter = $this->getParameterName($authorizationAlias, 'institutions');
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Value/SelfAssertedRegistrationVettingType.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
     {
54 54
         return [
55 55
             'type' => $this->type(),
56
-            'recovery_token_id' => (string)$this->authoringRecoveryToken,
56
+            'recovery_token_id' => (string) $this->authoringRecoveryToken,
57 57
         ];
58 58
     }
59 59
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/RecoveryTokenRevokedEvent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@
 block discarded – undo
88 88
     final public function serialize(): array
89 89
     {
90 90
         return [
91
-            'identity_id' => (string)$this->identityId,
92
-            'identity_institution' => (string)$this->identityInstitution,
93
-            'recovery_token_id' => (string)$this->recoveryTokenId,
94
-            'recovery_token_type' => (string)$this->recoveryTokenType,
91
+            'identity_id' => (string) $this->identityId,
92
+            'identity_institution' => (string) $this->identityInstitution,
93
+            'recovery_token_id' => (string) $this->recoveryTokenId,
94
+            'recovery_token_type' => (string) $this->recoveryTokenType,
95 95
         ];
96 96
     }
97 97
 
Please login to merge, or discard this patch.
Surfnet/Stepup/Identity/Event/CompliedWithRecoveryCodeRevocationEvent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,11 +95,11 @@
 block discarded – undo
95 95
     final public function serialize(): array
96 96
     {
97 97
         return [
98
-            'identity_id' => (string)$this->identityId,
99
-            'identity_institution' => (string)$this->identityInstitution,
100
-            'recovery_token_id' => (string)$this->recoveryTokenId,
101
-            'recovery_token_type' => (string)$this->recoveryTokenType,
102
-            'authority_id' => (string)$this->authorityId,
98
+            'identity_id' => (string) $this->identityId,
99
+            'identity_institution' => (string) $this->identityInstitution,
100
+            'recovery_token_id' => (string) $this->recoveryTokenId,
101
+            'recovery_token_type' => (string) $this->recoveryTokenType,
102
+            'authority_id' => (string) $this->authorityId,
103 103
         ];
104 104
     }
105 105
 
Please login to merge, or discard this patch.
tests/database/AuthorizationRepositoryMatrixTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
     {
123 123
         $institutions = [];
124 124
         /** @var Institution $institution */
125
-        foreach($collection->jsonSerialize()['institutions'] as $institution)
125
+        foreach ($collection->jsonSerialize()['institutions'] as $institution)
126 126
         {
127 127
             $institutions[] = $institution->getInstitution();
128 128
         }
Please login to merge, or discard this patch.