Passed
Push — bugfix/5.1-profile ( 934735...50d43f )
by Michiel
04:55
created
ApiBundle/Authorization/Service/AuthorizationContextService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             $institutions = new InstitutionCollection();
94 94
             $configuredInstitutions = $this->institutionRepository->findAll();
95 95
             foreach ($configuredInstitutions as $institution) {
96
-                $institutions->add(new Institution((string)$institution->institution));
96
+                $institutions->add(new Institution((string) $institution->institution));
97 97
             }
98 98
         } else {
99 99
             // Get the institutions the identity is RA(A) for.
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
     private function isSraa(IdentityId $actorId)
106 106
     {
107
-        $identity = $this->identityService->find((string)$actorId);
107
+        $identity = $this->identityService->find((string) $actorId);
108 108
         if (!$identity) {
109 109
             throw new InvalidArgumentException('The provided id is not associated with any known identity');
110 110
         }
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.