@@ -2,10 +2,10 @@ |
||
| 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 | } |
@@ -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(), |
@@ -44,7 +44,7 @@ |
||
| 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 | |
@@ -89,9 +89,9 @@ |
||
| 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 | } |
@@ -43,7 +43,7 @@ |
||
| 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'); |
@@ -53,7 +53,7 @@ |
||
| 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 | |
@@ -88,10 +88,10 @@ |
||
| 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 | |
@@ -95,11 +95,11 @@ |
||
| 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 | |
@@ -122,7 +122,7 @@ |
||
| 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 | } |