@@ -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 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | } |
100 | 100 | } |
101 | 101 | |
102 | - $increments = (int)$input->getOption('increments'); |
|
102 | + $increments = (int) $input->getOption('increments'); |
|
103 | 103 | if ($increments < 1) { |
104 | 104 | $output->writeln( |
105 | 105 | $formatter->formatBlock( |
@@ -45,13 +45,13 @@ |
||
45 | 45 | protected function configure(): void |
46 | 46 | { |
47 | 47 | $this |
48 | - ->addOption( |
|
49 | - 'increments', |
|
50 | - 'i', |
|
51 | - InputOption::VALUE_REQUIRED, |
|
52 | - 'The amount of events that are replayed at once (repeated until all events are replayed)', |
|
53 | - 1000, |
|
54 | - ); |
|
48 | + ->addOption( |
|
49 | + 'increments', |
|
50 | + 'i', |
|
51 | + InputOption::VALUE_REQUIRED, |
|
52 | + 'The amount of events that are replayed at once (repeated until all events are replayed)', |
|
53 | + 1000, |
|
54 | + ); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | protected function execute(InputInterface $input, OutputInterface $output): int |
@@ -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 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | $query->nameId = $request->get('NameID'); |
75 | 75 | $query->commonName = $request->get('commonName'); |
76 | 76 | $query->email = $request->get('email'); |
77 | - $query->pageNumber = (int)$request->get('p', 1); |
|
77 | + $query->pageNumber = (int) $request->get('p', 1); |
|
78 | 78 | |
79 | 79 | $paginator = $this->identityService->search($query); |
80 | 80 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $actorId = new IdentityId($request->get('actorId')); |
82 | 82 | |
83 | 83 | $query = new RaSecondFactorQuery(); |
84 | - $query->pageNumber = (int)$request->get('p', 1); |
|
84 | + $query->pageNumber = (int) $request->get('p', 1); |
|
85 | 85 | $query->name = $request->get('name'); |
86 | 86 | $query->type = $request->get('type'); |
87 | 87 | $query->secondFactorId = $request->get('secondFactorId'); |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $query->raInstitution = $request->get('raInstitution'); |
112 | 112 | } |
113 | 113 | |
114 | - $query->pageNumber = (int)$request->get('p', 1); |
|
114 | + $query->pageNumber = (int) $request->get('p', 1); |
|
115 | 115 | $query->orderBy = $request->get('orderBy'); |
116 | 116 | $query->orderDirection = $request->get('orderDirection'); |
117 | 117 | $query->authorizationContext = $this->authorizationService->buildInstitutionAuthorizationContext( |
@@ -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'); |