@@ -113,7 +113,7 @@ |
||
| 113 | 113 | Assertion::string( |
| 114 | 114 | $value, |
| 115 | 115 | 'value must be a string (the name_id of the SRAA)', |
| 116 | - $propertyPath . '[' . $index. ']' |
|
| 116 | + $propertyPath . '[' . $index . ']' |
|
| 117 | 117 | ); |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | */ |
| 189 | 189 | private function assertValidInstitutionIdentifiers(array $spLoaConfiguration, $message, $propertyPath) |
| 190 | 190 | { |
| 191 | - $assertLowerCase = function ($sho) { |
|
| 191 | + $assertLowerCase = function($sho) { |
|
| 192 | 192 | return ($sho === strtolower($sho)); |
| 193 | 193 | }; |
| 194 | 194 | |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | $this->configuredInstitutions = array_map( |
| 226 | - function (ConfiguredInstitution $configuredInstitution) { |
|
| 226 | + function(ConfiguredInstitution $configuredInstitution) { |
|
| 227 | 227 | return $configuredInstitution->institution->getInstitution(); |
| 228 | 228 | }, |
| 229 | 229 | $this->configuredInstitutionsService->getAll() |
@@ -244,8 +244,8 @@ discard block |
||
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | $this->whitelistedInstitutions = array_map( |
| 247 | - function (WhitelistEntry $whitelistEntry) { |
|
| 248 | - return (string)$whitelistEntry->institution; |
|
| 247 | + function(WhitelistEntry $whitelistEntry) { |
|
| 248 | + return (string) $whitelistEntry->institution; |
|
| 249 | 249 | }, |
| 250 | 250 | $this->whitelistService->getAllEntries()->toArray() |
| 251 | 251 | ); |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | public function determineNonExistentInstitutions(array $institutions, $configuredInstitutions) |
| 262 | 262 | { |
| 263 | 263 | $normalizedConfiguredInstitutions = array_map( |
| 264 | - function ($institution) { |
|
| 264 | + function($institution) { |
|
| 265 | 265 | return strtolower($institution); |
| 266 | 266 | }, |
| 267 | 267 | $configuredInstitutions |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | |
| 270 | 270 | return array_filter( |
| 271 | 271 | $institutions, |
| 272 | - function ($institution) use ($normalizedConfiguredInstitutions) { |
|
| 272 | + function($institution) use ($normalizedConfiguredInstitutions) { |
|
| 273 | 273 | $normalizedInstitution = strtolower($institution); |
| 274 | 274 | |
| 275 | 275 | return !in_array($normalizedInstitution, $normalizedConfiguredInstitutions); |
@@ -108,7 +108,7 @@ discard block |
||
| 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 |
||
| 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(), |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | return; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - $rasWithoutRaas = array_filter($ras, function (RegistrationAuthorityCredentials $ra) { |
|
| 175 | + $rasWithoutRaas = array_filter($ras, function(RegistrationAuthorityCredentials $ra) { |
|
| 176 | 176 | return !$ra->isRaa(); |
| 177 | 177 | }); |
| 178 | 178 | $this->logger->notice( |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | */ |
| 101 | 101 | private function mapArrayToInstitutions(array $institutions) |
| 102 | 102 | { |
| 103 | - return array_map(function ($institutionName) { |
|
| 103 | + return array_map(function($institutionName) { |
|
| 104 | 104 | return new Institution($institutionName); |
| 105 | 105 | }, $institutions); |
| 106 | 106 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | ->isRequired() |
| 35 | 35 | ->info('Configures the URL where registrants can verify e-mail address ownership.') |
| 36 | 36 | ->validate() |
| 37 | - ->ifTrue(function ($url) { |
|
| 37 | + ->ifTrue(function($url) { |
|
| 38 | 38 | $parts = parse_url($url); |
| 39 | 39 | |
| 40 | 40 | return empty($parts['scheme']) || empty($parts['host']) || empty($parts['path']); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | ->info('Configures the URL for Self Service.') |
| 52 | 52 | ->validate() |
| 53 | 53 | ->ifTrue( |
| 54 | - function ($url) { |
|
| 54 | + function($url) { |
|
| 55 | 55 | return filter_var($url, FILTER_VALIDATE_URL) === false; |
| 56 | 56 | } |
| 57 | 57 | ) |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | ->scalarNode('name') |
| 66 | 66 | ->isRequired() |
| 67 | 67 | ->validate() |
| 68 | - ->ifTrue(function ($name) { |
|
| 68 | + ->ifTrue(function($name) { |
|
| 69 | 69 | return !is_string($name) || empty($name); |
| 70 | 70 | }) |
| 71 | 71 | ->thenInvalid("E-mail sender name must be non-empty string, got '%s'") |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | ->scalarNode('email') |
| 75 | 75 | ->isRequired() |
| 76 | 76 | ->validate() |
| 77 | - ->ifTrue(function ($name) { |
|
| 77 | + ->ifTrue(function($name) { |
|
| 78 | 78 | return !is_string($name) || empty($name); |
| 79 | 79 | }) |
| 80 | 80 | ->thenInvalid("E-mail sender e-mail must be non-empty string, got '%s'") |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | ORDER BY playhead ASC'; |
| 54 | 54 | |
| 55 | 55 | $rows = $this->connection->fetchAll($sql, ['identity_id' => (string) $identityId]); |
| 56 | - $messages = array_map(function (array $row) use ($identityId) { |
|
| 56 | + $messages = array_map(function(array $row) use ($identityId) { |
|
| 57 | 57 | return new SensitiveDataMessage( |
| 58 | 58 | $identityId, |
| 59 | 59 | (int) $row['playhead'], |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | ) { |
| 86 | 86 | $institution = new Institution($command->institution); |
| 87 | 87 | |
| 88 | - $allowedSecondFactors = array_map(function ($allowedSecondFactor) { |
|
| 88 | + $allowedSecondFactors = array_map(function($allowedSecondFactor) { |
|
| 89 | 89 | return new SecondFactorType($allowedSecondFactor); |
| 90 | 90 | }, $command->allowedSecondFactors); |
| 91 | 91 | |