Passed
Push — feature/updates-nov25 ( 25d33b...e99728 )
by Johan
05:23
created
src/Surfnet/Stepup/Identity/Collection/InstitutionCollection.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
     public function serialize(): array
124 124
     {
125
-        return array_map(fn(Institution $institution): string => (string)$institution, $this->elements);
125
+        return array_map(fn(Institution $institution): string => (string) $institution, $this->elements);
126 126
     }
127 127
 
128 128
     /**
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Identity/Service/AbstractSearchService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @return Pagerfanta<T>
36 36
      */
37 37
     protected function createPaginatorFrom(
38
-        QueryBuilder|Query $doctrineQuery,
38
+        QueryBuilder | Query $doctrineQuery,
39 39
         AbstractQuery $query,
40 40
         bool $fetchCollection = true,
41 41
     ): Pagerfanta {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $results = $doctrineQuery->getArrayResult();
72 72
         foreach ($results as $options) {
73 73
             foreach ($options as $key => $value) {
74
-                $val = (string)$value;
74
+                $val = (string) $value;
75 75
                 $filters[$key][$val] = $val;
76 76
             }
77 77
         }
Please login to merge, or discard this patch.
ApiBundle/Identity/Value/AuthorizedInstitutionCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,18 +45,18 @@
 block discarded – undo
45 45
 
46 46
         /** @var Institution $institution */
47 47
         foreach ($raInstitutions as $institution) {
48
-            $collection->authorizations[(string)$institution][] = AuthorityRole::ROLE_RA;
48
+            $collection->authorizations[(string) $institution][] = AuthorityRole::ROLE_RA;
49 49
         }
50 50
         if ($raaInstitutions instanceof InstitutionCollection) {
51 51
             /** @var Institution $institution */
52 52
             foreach ($raaInstitutions as $institution) {
53 53
                 // Override existing lower role
54
-                if (isset($collection->authorizations[(string)$institution])
55
-                    && in_array(AuthorityRole::ROLE_RA, $collection->authorizations[(string)$institution])
54
+                if (isset($collection->authorizations[(string) $institution])
55
+                    && in_array(AuthorityRole::ROLE_RA, $collection->authorizations[(string) $institution])
56 56
                 ) {
57
-                    $collection->authorizations[(string)$institution] = [];
57
+                    $collection->authorizations[(string) $institution] = [];
58 58
                 }
59
-                $collection->authorizations[(string)$institution][] = AuthorityRole::ROLE_RAA;
59
+                $collection->authorizations[(string) $institution][] = AuthorityRole::ROLE_RAA;
60 60
             }
61 61
         }
62 62
         return $collection;
Please login to merge, or discard this patch.
ManagementBundle/Controller/InstitutionConfigurationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         foreach ($configuration as $institution => $options) {
130 130
             assert(is_array($options));
131 131
             $command = new ReconfigureInstitutionConfigurationOptionsCommand();
132
-            $command->UUID = (string)Uuid::uuid4();
132
+            $command->UUID = (string) Uuid::uuid4();
133 133
             $command->institution = $institution;
134 134
             $command->useRaLocationsOption = $options['use_ra_locations'];
135 135
             $command->showRaaContactInformationOption = $options['show_raa_contact_information'];
Please login to merge, or discard this patch.