@@ -122,7 +122,7 @@ |
||
| 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 | /** |
@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -45,18 +45,18 @@ |
||
| 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; |
@@ -129,7 +129,7 @@ |
||
| 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']; |