Passed
Push — master ( 8b9d91...2feccc )
by Tim
08:38
created
src/IdP/ADFS.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $metadata = MetaDataStorageHandler::getMetadataHandler();
36 36
         $spMetadata = $metadata->getMetaDataConfig($issuer, 'adfs-sp-remote');
37 37
 
38
-        Logger::info('ADFS - IdP.prp: Incoming Authentication request: ' . $issuer . ' id ' . $requestid);
38
+        Logger::info('ADFS - IdP.prp: Incoming Authentication request: '.$issuer.' id '.$requestid);
39 39
 
40 40
         $state = [
41 41
             'Responder' => [ADFS::class, 'sendResponse'],
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         $spEntityId = $spMetadata['entityid'];
355 355
         $spMetadata = Configuration::loadFromArray(
356 356
             $spMetadata,
357
-            '$metadata[' . var_export($spEntityId, true) . ']'
357
+            '$metadata['.var_export($spEntityId, true).']'
358 358
         );
359 359
 
360 360
         $attributes = $state['Attributes'];
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         $idpEntityId = $idpMetadata->getString('entityid');
376 376
 
377 377
         $idp->addAssociation([
378
-            'id' => 'adfs:' . $spEntityId,
378
+            'id' => 'adfs:'.$spEntityId,
379 379
             'Handler' => ADFS::class,
380 380
             'adfs:entityID' => $spEntityId,
381 381
         ]);
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         $wresult = ADFS::signResponse($response, $privateKeyFile, $certificateFile, $algo, $passphrase);
400 400
 
401 401
         $wctx = $state['adfs:wctx'];
402
-        $wreply = $state['adfs:wreply'] ? : $spMetadata->getValue('prp');
402
+        $wreply = $state['adfs:wreply'] ?: $spMetadata->getValue('prp');
403 403
         ADFS::postResponse($wreply, $wresult, $wctx);
404 404
     }
405 405
 
@@ -457,8 +457,8 @@  discard block
 block discarded – undo
457 457
         $metadata = MetaDataStorageHandler::getMetadataHandler();
458 458
         $spMetadata = $metadata->getMetaDataConfig($association['adfs:entityID'], 'adfs-sp-remote');
459 459
         $returnTo = Module::getModuleURL(
460
-            'adfs/idp/prp.php?assocId=' . urlencode($association["id"]) . '&relayState=' . urlencode($relayState)
460
+            'adfs/idp/prp.php?assocId='.urlencode($association["id"]).'&relayState='.urlencode($relayState)
461 461
         );
462
-        return $spMetadata->getValue('prp') . '?wa=wsignoutcleanup1.0&wreply=' . urlencode($returnTo);
462
+        return $spMetadata->getValue('prp').'?wa=wsignoutcleanup1.0&wreply='.urlencode($returnTo);
463 463
     }
464 464
 }
Please login to merge, or discard this patch.
src/Controller/Adfs.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 ];
123 123
             }
124 124
 
125
-            $adfs_service_location = Module::getModuleURL('adfs') . '/idp/prp.php';
125
+            $adfs_service_location = Module::getModuleURL('adfs').'/idp/prp.php';
126 126
             $metaArray = [
127 127
                 'metadata-set'        => 'adfs-idp-remote',
128 128
                 'entityid'            => $idpentityid,
@@ -228,13 +228,13 @@  discard block
 block discarded – undo
228 228
         Logger::info('ADFS - IdP.prp: Accessing ADFS IdP endpoint prp');
229 229
 
230 230
         $idpEntityId = $this->metadata->getMetaDataCurrentEntityID('adfs-idp-hosted');
231
-        $idp = IdP::getById('adfs:' . $idpEntityId);
231
+        $idp = IdP::getById('adfs:'.$idpEntityId);
232 232
 
233 233
         if ($request->query->has('wa')) {
234 234
             $wa = $request->query->get('wa');
235 235
             if ($wa === 'wsignout1.0') {
236 236
                 return new StreamedResponse(
237
-                    function () use ($idp) {
237
+                    function() use ($idp) {
238 238
                         ADFS_IDP::receiveLogoutMessage($idp);
239 239
                     }
240 240
                 );
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
             $logoutError = null;
253 253
 
254 254
             return new StreamedResponse(
255
-                function () use ($idp, /** @scrutinizer ignore-type */ $assocId, $relayState, $logoutError) {
255
+                function() use ($idp, /** @scrutinizer ignore-type */ $assocId, $relayState, $logoutError) {
256 256
                     $idp->handleLogoutResponse($assocId, $relayState, $logoutError);
257 257
                 }
258 258
             );
Please login to merge, or discard this patch.