Test Setup Failed
Push — master ( ce5d50...76dac7 )
by Tomasz
09:40
created
core/Federation.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         if (\config\Master::MAILSETTINGS['notify_nro']) {
368 368
             foreach ($admins as $id) {
369 369
                 $user = new User($id);
370
-                 /// organisation
370
+                    /// organisation
371 371
                 $retval = $user->sendMailToUser(sprintf(_("%s in your federation was created"), common\Entity::$nomenclature_participant), $message);
372 372
                 if ($retval === FALSE) {
373 373
                     $this->loggerInstance->debug(2, "Mail to federation admin was NOT sent!\n");
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         $newReq = new CertificationAuthorityEduPkiServer();
435 435
         $reqserial = $newReq->sendRequestToCa($csr, $revocationPin, $expiryDays);
436 436
         if ($reqserial > 0) {
437
-             $this->loggerInstance->writeAudit($user, "NEW", "Certificate request - NRO: ".$this->tld." - serial: ".$reqserial." - subject: ".$csr['SUBJECT']);
437
+                $this->loggerInstance->writeAudit($user, "NEW", "Certificate request - NRO: ".$this->tld." - serial: ".$reqserial." - subject: ".$csr['SUBJECT']);
438 438
             $reqQuery = "INSERT INTO federation_servercerts "
439 439
                 ."(federation_id, ca_name, request_serial, distinguished_name, status, revocation_pin) "
440 440
                 ."VALUES (?, 'eduPKI', ?, ?, 'REQUESTED', ?)";
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
         $result = $this->databaseHandle->exec($query);
495 495
         $rows = $result->fetch_all();
496 496
         foreach ($rows as $row) {
497
-           $activeProfiles[] = $row[0];
497
+            $activeProfiles[] = $row[0];
498 498
         }
499 499
         $query = "SELECT institution.inst_id AS inst_id, profile.profile_id AS profile_id, profile_option.option_value AS cert FROM profile_option JOIN profile ON profile_option.profile_id=profile.profile_id JOIN institution ON profile.inst_id=institution.inst_id WHERE profile_option.option_name='eap:ca_file' and institution.country='".$this->tld."'";        
500 500
         $result = $this->databaseHandle->exec($query);
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
                 'country' => strtoupper($idp->federation),
580 580
                 'instance' => $idp,
581 581
                 'realms' => $idpQuery->realms]
582
-                 ;
582
+                    ;
583 583
             $returnarray[$idp->identifier] = $idpInfo;
584 584
         }
585 585
         if ($activeOnly != 0) { // we're only doing this once.
Please login to merge, or discard this patch.
web/admin/overview_federation.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -493,17 +493,17 @@  discard block
 block discarded – undo
493 493
                 }
494 494
                 echo "<td class='inst_td'>
495 495
                          <input type='hidden' name='inst' value='" 
496
-                       . $index."'>"
497
-                       . "<span style='display:none' class='inst_name'>".$my_idp."</span>"
498
-                       . "<span>".$idp_instance->name."</span>"
499
-                       . " (<a href='overview_org.php?inst_id="
500
-                       . $idp_instance->identifier."'>" 
501
-                       . (in_array($index, $userIdps) ? _("manage") : _("view"))
502
-                       . "</a>)"
503
-                       . (empty($listOfSilverbulletRealms) ? "" : "<ul><li>") 
504
-                       . implode("</li><li>", $listOfSilverbulletRealms) 
505
-                       . (empty($listOfSilverbulletRealms) ? "" : "</li><ul>")
506
-                       . "</td>";
496
+                        . $index."'>"
497
+                        . "<span style='display:none' class='inst_name'>".$my_idp."</span>"
498
+                        . "<span>".$idp_instance->name."</span>"
499
+                        . " (<a href='overview_org.php?inst_id="
500
+                        . $idp_instance->identifier."'>" 
501
+                        . (in_array($index, $userIdps) ? _("manage") : _("view"))
502
+                        . "</a>)"
503
+                        . (empty($listOfSilverbulletRealms) ? "" : "<ul><li>") 
504
+                        . implode("</li><li>", $listOfSilverbulletRealms) 
505
+                        . (empty($listOfSilverbulletRealms) ? "" : "</li><ul>")
506
+                        . "</td>";
507 507
                 // deployment status; need to dive into profiles for this
508 508
                 // show happy eyeballs if at least one profile is configured/showtime     
509 509
                 if (\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') {
@@ -560,8 +560,8 @@  discard block
 block discarded – undo
560 560
                             echo "<form method='post' action='overview_federation.php' accept-charset='UTF-8'>
561 561
                                 <input type='hidden' name='invitation_id' value='".$oneinvite['token']."'/>
562 562
                                 <button class='delete' type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_DELETE."'>"._("Revoke Invitation")."</button> "
563
-                           . sprintf(_("(expires %s)"), $oneinvite['expiry'])
564
-                           . "</form>";
563
+                            . sprintf(_("(expires %s)"), $oneinvite['expiry'])
564
+                            . "</form>";
565 565
                         }
566 566
                         echo "      </td>";                          
567 567
                         echo "         </tr>";
Please login to merge, or discard this patch.