Passed
Pull Request — main (#523)
by Peter
12:57 queued 07:53
created
tests/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
StepupMiddleware/MiddlewareBundle/Console/Command/ReplayEventsCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
CommandHandlingBundle/Identity/Service/RecoveryTokenMailService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(),
Please login to merge, or discard this patch.
ApiBundle/Identity/Repository/InstitutionListingRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Controller/IdentityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Controller/RaSecondFactorController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Controller/RaListingController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Service/DeprovisionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
ApiBundle/Authorization/Filter/InstitutionAuthorizationRepositoryFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.