Test Setup Failed
Push — master ( defeb2...c0e551 )
by Tomasz
11:33
created
web/skins/modern/Divs.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     public function divSilverbullet() {
125 125
         $retval = "
126 126
 <div id='silverbullet'>"
127
-               .$this->Gui->textTemplates->templates[user\SB_GO_AWAY] .
127
+                .$this->Gui->textTemplates->templates[user\SB_GO_AWAY] .
128 128
                 "</div>
129 129
     ";
130 130
         return $retval;
@@ -293,8 +293,8 @@  discard block
 block discarded – undo
293 293
                 }
294 294
 
295 295
                 $retval .= "<td><button name='$d' class='other_os' id='$d'>".$D['display']."</button>"
296
-                       ."</td>"
297
-                       ."<td><button name='$d' class='more_info_b' id='info_b_$d'>i</button></td></tr>\n";
296
+                        ."</td>"
297
+                        ."<td><button name='$d' class='more_info_b' id='info_b_$d'>i</button></td></tr>\n";
298 298
                 $deviceIndex++;
299 299
             }
300 300
             $retval .= "</tbody>";
@@ -341,11 +341,11 @@  discard block
 block discarded – undo
341 341
         <tr>
342 342
             <td>" .
343 343
                 $this->Gui->catVersion
344
-               ."
344
+                ."
345 345
             </td>";
346 346
 
347 347
         if (!empty(\config\Master::APPEARANCE['privacy_notice_url'])) {
348
-              $retval .= "<td>".$this->Gui->catCopyrifhtAndLicense."<br><span id='privacy_notice_cons'>".\config\ConfAssistant::CONSORTIUM['display_name']."</span> <a href='".\config\Master::APPEARANCE['privacy_notice_url']."'>".sprintf(_("%s Privacy Notice"), '')."</a></td>";
348
+                $retval .= "<td>".$this->Gui->catCopyrifhtAndLicense."<br><span id='privacy_notice_cons'>".\config\ConfAssistant::CONSORTIUM['display_name']."</span> <a href='".\config\Master::APPEARANCE['privacy_notice_url']."'>".sprintf(_("%s Privacy Notice"), '')."</a></td>";
349 349
         }
350 350
         $retval .= "<td>";
351 351
         if (\config\ConfAssistant::CONSORTIUM['name'] == "eduroam" && isset(\config\ConfAssistant::CONSORTIUM['deployment-voodoo']) && \config\ConfAssistant::CONSORTIUM['deployment-voodoo'] == "Operations Team") {
Please login to merge, or discard this patch.
web/lib/admin/OptionDisplay.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
                         }
219 219
                     }
220 220
                 }
221
-                 break;
221
+                    break;
222 222
             default:
223 223
                 break;
224 224
         }
Please login to merge, or discard this patch.
config/Master-template.php 1 patch
Indentation   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -150,7 +150,6 @@  discard block
 block discarded – undo
150 150
          *    mails, just configure the signing cert with these parameters. All must
151 151
          *    be non-NULL for signing to happen. If you don't need a keypass, make 
152 152
          *    it an empty string instead.
153
-
154 153
          * @var array
155 154
          */
156 155
         const MAILSETTINGS = [// we always use Submission
@@ -163,8 +162,8 @@  discard block
 block discarded – undo
163 162
             'keyfilename' => NULL,
164 163
             'keypass' => NULL,
165 164
             'notify_nro' => false, // normally should be set to TRUE abd causes 
166
-                                   // notifications being sent to NRO admins when
167
-                                   // important changes are made
165
+                                    // notifications being sent to NRO admins when
166
+                                    // important changes are made
168 167
         ];
169 168
         /**
170 169
          * List of all supported languages in CAT. Comment some if you want to disable them
Please login to merge, or discard this patch.
web/diag/action_realmcheck.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -578,9 +578,9 @@  discard block
 block discarded – undo
578 578
                     $naptr = $rfc7585suite->relevantNAPTR();
579 579
                     if ($naptr == \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED) {
580 580
                         if ($dynType == "") {
581
-                        	echo "<tr><td>" . _("Dynamic discovery test is not configured") . "</td><td>";
581
+                            echo "<tr><td>" . _("Dynamic discovery test is not configured") . "</td><td>";
582 582
                         } else {
583
-                        	echo "<tr><td>" . _("OpenRoaming connectivity test is not configured") . "</td><td>";
583
+                            echo "<tr><td>" . _("OpenRoaming connectivity test is not configured") . "</td><td>";
584 584
                         }
585 585
                     } else {
586 586
                         echo "<table>";
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
                         echo "}
699 699
               </script>";
700 700
                         } else {
701
-                   echo ' 
701
+                    echo ' 
702 702
               function run_openroaming() {
703 703
                  running_ajax_openroaming = 0;
704 704
                  $("#main_openroaming_ico").attr("src",icon_loading);
@@ -720,10 +720,10 @@  discard block
 block discarded – undo
720 720
                         } 
721 721
                     }
722 722
                     if ($dynType == '') {
723
-                         $naptrs[0] = $naptr;
724
-                     } else {
725
-                         $naptrs[1] = $naptr;
726
-                     }
723
+                            $naptrs[0] = $naptr;
724
+                        } else {
725
+                            $naptrs[1] = $naptr;
726
+                        }
727 727
                 }
728 728
                     echo "<strong>" . _("Static connectivity tests") . "</strong>
729 729
          <table><tr>
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
          </tr></table>";
737 737
                     }
738 738
                     if (isset($orrealm) && count($orrealm) && ($naptrs[1] > 0)) {
739
-                      echo "<hr><strong>" . _("OpenRoaming connectivity tests") . "</strong>
739
+                        echo "<hr><strong>" . _("OpenRoaming connectivity tests") . "</strong>
740 740
          <table><tr>
741 741
          <td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='main_openroaming_ico' class='icon'></td><td id='main_openroaming_result' style='display:none'>&nbsp;</td>
742 742
          </tr></table>";
@@ -774,12 +774,12 @@  discard block
 block discarded – undo
774 774
             <?php
775 775
             for ($i=3; $i<5; $i++) {
776 776
                 if ($i == 3 && $naptrs[0] <= 0) {
777
-                   continue;
777
+                    continue;
778 778
                 }
779 779
                 if ($i == 4) {
780
-                   if ((count($orrealm) == 0) || ($naptrs[1] <= 0)) {
781
-                       continue;
782
-                   }
780
+                    if ((count($orrealm) == 0) || ($naptrs[1] <= 0)) {
781
+                        continue;
782
+                    }
783 783
                 }
784 784
                 if ($i == 3) {
785 785
                     $rfc7585suite = $dnsChecks;
@@ -796,16 +796,16 @@  discard block
 block discarded – undo
796 796
                     echo "_tests'><fieldset class='option_container'>
797 797
                 <legend><strong>";
798 798
                     if ($i==3) {
799
-                     echo _("DYNAMIC connectivity tests");
799
+                        echo _("DYNAMIC connectivity tests");
800 800
                     } else {
801
-                     echo _("OpenRoaming connectivity tests");
801
+                        echo _("OpenRoaming connectivity tests");
802 802
                     }
803 803
                     echo  "</strong></legend>";
804 804
                     $prefix1 = 'dynamic';
805 805
                     $prefix2 = '';
806 806
                     if ($i == 4) {
807
-                    	$prefix1 = 'openroaming';
808
-                    	$prefix2 = $prefix1;
807
+                        $prefix1 = 'openroaming';
808
+                        $prefix2 = $prefix1;
809 809
                     }
810 810
                     $resultstoprint = [];
811 811
                     if (count($rfc7585suite->NAPTR_hostname_records) > 0) {
Please login to merge, or discard this patch.
core/ProfileSilverbullet.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@
 block discarded – undo
361 361
                 . "     OR"
362 362
                 . "  ( u.id = c.silverbullet_user_id AND c.expiry >= NOW() AND c.revocation_status != 'REVOKED' ) "
363 363
                 . ")", "i", $this->identifier);
364
-      // SELECT -> resource, not boolean
364
+        // SELECT -> resource, not boolean
365 365
         while ($res = mysqli_fetch_object(/** @scrutinizer ignore-type */ $users)) {
366 366
             $userCount[$res->usercount] = "ACTIVE";
367 367
         }
Please login to merge, or discard this patch.
web/admin/sort_profiles.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     foreach ($D as $id=>$priority) {
130 130
         echo "<input type='hidden' class='profiles' id='profile-$id' name='profile-$id' value='$priority'>";
131 131
     }
132
-  ?>
132
+    ?>
133 133
 </form>
134 134
 <?php echo $deco->footer();
135 135
 
Please login to merge, or discard this patch.
web/admin/edit_profile.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -181,9 +181,9 @@  discard block
 block discarded – undo
181 181
         </legend>
182 182
         <?php
183 183
         if ($wizardStyle) {
184
-             echo "<p>" . _("We will now define a profile for your user group(s).  You can add as many profiles as you like by choosing the appropriate button on the end of the page. After we are done, the wizard is finished and you will be taken to the main IdP administration page.") . "</p>";
184
+                echo "<p>" . _("We will now define a profile for your user group(s).  You can add as many profiles as you like by choosing the appropriate button on the end of the page. After we are done, the wizard is finished and you will be taken to the main IdP administration page.") . "</p>";
185 185
         }
186
-         ?>
186
+            ?>
187 187
         <h3><?php echo _("Profile Name and RADIUS realm"); ?>
188 188
         </h3>
189 189
         <?php    
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
     <?php
332 332
     echo $wizard->displayHelp("redirect");
333
-     ?>
333
+        ?>
334 334
     <p>
335 335
 
336 336
         <?php
Please login to merge, or discard this patch.
web/lib/admin/Wizard.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
                 $ssidlist .= ", '<strong>" . $ssid . "</strong>'";
90 90
             }
91 91
             $ssidlist = substr($ssidlist, 2);
92
-             $h .= sprintf(ngettext("We will always configure this SSID for WPA2/AES: %s.", "We will always configure these SSIDs for WPA2/AES: %s.", count(\config\ConfAssistant::CONSORTIUM['ssid'])), $ssidlist);
93
-             $h .= "<br/>" . sprintf(_("It is also possible to define custom additional SSIDs with the option '%s' below."), $this->displayName("media:SSID"));
92
+                $h .= sprintf(ngettext("We will always configure this SSID for WPA2/AES: %s.", "We will always configure these SSIDs for WPA2/AES: %s.", count(\config\ConfAssistant::CONSORTIUM['ssid'])), $ssidlist);
93
+                $h .= "<br/>" . sprintf(_("It is also possible to define custom additional SSIDs with the option '%s' below."), $this->displayName("media:SSID"));
94 94
         } else {
95
-             $h .=  _("Please configure which SSIDs should be configured in the installers.");
95
+                $h .=  _("Please configure which SSIDs should be configured in the installers.");
96 96
         }
97
-         $h .= " " . _("By default, we will only configure the SSIDs with WPA2/AES encryption. By using the '(with WPA/TKIP)' option you can specify that we should include legacy support for WPA/TKIP where possible.");
98
-         $h .= "</li>";
97
+            $h .= " " . _("By default, we will only configure the SSIDs with WPA2/AES encryption. By using the '(with WPA/TKIP)' option you can specify that we should include legacy support for WPA/TKIP where possible.");
98
+            $h .= "</li>";
99 99
 
100 100
         $h .= "<li>";
101 101
         $h .= "<strong>" . ( count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
@@ -135,19 +135,19 @@  discard block
 block discarded – undo
135 135
             "<p>" . _("Optionally, you can provide a longer descriptive text about who this profile is for. If you specify it, it will be displayed on the download page after the user has selected the profile name in the list.") . "</p>".
136 136
             "<p>" . _("You can also tell us your RADIUS realm. ");
137 137
             if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] !== NULL) {
138
-               $h .= sprintf(_("This is useful if you want to use the sanity check module later, which tests reachability of your realm in the %s infrastructure. "), \config\ConfAssistant::CONSORTIUM['display_name']);
138
+                $h .= sprintf(_("This is useful if you want to use the sanity check module later, which tests reachability of your realm in the %s infrastructure. "), \config\ConfAssistant::CONSORTIUM['display_name']);
139 139
             }
140 140
         $h .= _("It is required to enter the realm name if you want to support anonymous outer identities (see below).") . "</p>";
141 141
         $this->helpMessage['profile'] = $h;
142 142
         
143 143
         // REALM
144 144
         $h = "<p>".sprintf(_("Some installers support a feature called 'Anonymous outer identity'. If you don't know what this is, please read <a href='%s'>this article</a>."), "https://confluence.terena.org/display/H2eduroam/eap-types")."</p>".
145
-          "<p>"._("On some platforms, the installers can suggest username endings and/or verify the user input to contain the realm suffix.")."</p>".
146
-          "<p>"._("The realm check feature needs to know an outer ID which actually gets a chance to authenticate. If your RADIUS server lets only select usernames pass, it is useful to supply the information which of those (outer ID) username we can use for testing.")."</p>";
145
+            "<p>"._("On some platforms, the installers can suggest username endings and/or verify the user input to contain the realm suffix.")."</p>".
146
+            "<p>"._("The realm check feature needs to know an outer ID which actually gets a chance to authenticate. If your RADIUS server lets only select usernames pass, it is useful to supply the information which of those (outer ID) username we can use for testing.")."</p>";
147 147
         $this->helpMessage['realm'] = $h;
148 148
         
149 149
         // REDIRECT
150
-         $h ="<p>"._("The CAT has a download area for end users. There, they will, for example, learn about the support pointers you entered earlier. The CAT can also immediately offer the installers for the profile for download. If you don't want that, you can instead enter a web site location where you want your users to be redirected to. You, as the administrator, can still download the profiles to place them on that page (see the 'Compatibility Matrix' button on the dashboard).") . "</p>";
150
+            $h ="<p>"._("The CAT has a download area for end users. There, they will, for example, learn about the support pointers you entered earlier. The CAT can also immediately offer the installers for the profile for download. If you don't want that, you can instead enter a web site location where you want your users to be redirected to. You, as the administrator, can still download the profiles to place them on that page (see the 'Compatibility Matrix' button on the dashboard).") . "</p>";
151 151
         $this->helpMessage['redirect'] = $h;
152 152
         
153 153
         // EAP
Please login to merge, or discard this patch.
web/admin/inc/sendZip.inc.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
  *          <base_url>/copyright.php after deploying the software
21 21
  * */
22 22
  
23
- /**
24
- * This file is used to pack and send RADSEC credentials.
25
- * 
26
- * @author Maja Gorecka-Wolniewicz <[email protected]>
27
- */
23
+    /**
24
+     * This file is used to pack and send RADSEC credentials.
25
+     * 
26
+     * @author Maja Gorecka-Wolniewicz <[email protected]>
27
+     */
28 28
 ?>
29 29
 <?php
30 30
 
@@ -36,26 +36,26 @@  discard block
 block discarded – undo
36 36
 if ($editMode == 'fullaccess') {
37 37
     $hotspotProfiles = $my_inst->listDeployments();
38 38
     if (count($hotspotProfiles) > 0) { // no profiles yet.
39
-       foreach ($hotspotProfiles as $counter => $deploymentObject) {
40
-           if ($deploymentObject->institution == $_GET['inst_id'] && $deploymentObject->identifier == $_GET['dep_id']) {
41
-               $cacert = file_get_contents(ROOT .  "/config/ManagedSPCerts/eduroamSP-CA.pem");
42
-               $zip = new ZipArchive;
43
-               $zip->open(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip', ZipArchive::CREATE);
44
-               if ($deploymentObject->radsec_priv != '') {
39
+        foreach ($hotspotProfiles as $counter => $deploymentObject) {
40
+            if ($deploymentObject->institution == $_GET['inst_id'] && $deploymentObject->identifier == $_GET['dep_id']) {
41
+                $cacert = file_get_contents(ROOT .  "/config/ManagedSPCerts/eduroamSP-CA.pem");
42
+                $zip = new ZipArchive;
43
+                $zip->open(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip', ZipArchive::CREATE);
44
+                if ($deploymentObject->radsec_priv != '') {
45 45
                     $zip->addFromString('priv.key', $deploymentObject->radsec_priv);
46
-               }
47
-               $zip->addFromString('cert.pem', $deploymentObject->radsec_cert);
48
-               $zip->addFromString('ca.pem', $cacert);
49
-               $zip->close();
50
-               $data = file_get_contents(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip');
51
-               unlink(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip');
52
-               if ($data !== FALSE) {
46
+                }
47
+                $zip->addFromString('cert.pem', $deploymentObject->radsec_cert);
48
+                $zip->addFromString('ca.pem', $cacert);
49
+                $zip->close();
50
+                $data = file_get_contents(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip');
51
+                unlink(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip');
52
+                if ($data !== FALSE) {
53 53
                     header('Content-Type: application/zip');
54 54
                     header("Content-Disposition: attachment; filename=\"full_".$deploymentObject->identifier.".zip\"");
55 55
                     header("Content-Transfer-Encoding: binary");
56 56
                     echo $data;
57
-               }
58
-           }
59
-       }
57
+                }
58
+            }
59
+        }
60 60
     }
61 61
 }
62 62
\ No newline at end of file
Please login to merge, or discard this patch.