Passed
Push — master ( 0ded32...a2fae3 )
by Tomasz
04:40
created
web/skins/classic/user/js/cat_js.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@  discard block
 block discarded – undo
11 11
 <?php 
12 12
 $cat = new core\CAT();
13 13
 function escaped_echo($s) {
14
-   echo preg_replace('/"/','&quot;',$s);
14
+    echo preg_replace('/"/','&quot;',$s);
15 15
 }
16 16
 
17 17
 $langObject = new \core\common\Language();
18 18
 $langObject->setTextDomain('web_user');
19 19
 $idpId = filter_input(INPUT_GET, 'idp', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'idp', FILTER_VALIDATE_INT);
20 20
 $profileId = filter_input(INPUT_GET, 'profile', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'profile', FILTER_VALIDATE_INT);
21
- ?>
21
+    ?>
22 22
 var n;
23 23
 var profile;
24 24
 var generateTimer;
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 }
354 354
 
355 355
 <?php if($idpId) { 
356
-      print "front_page = 0;\n";
356
+        print "front_page = 0;\n";
357 357
 } ?>
358 358
 
359 359
 function showTOU(){
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 if ($profileId) {
488 488
     print "listProfiles($idpId,$profileId);";
489 489
 }
490
- ?>
490
+    ?>
491 491
 
492 492
 $(".signin").click(function(event){
493 493
      pressedButton = $(this);
@@ -548,12 +548,12 @@  discard block
 block discarded – undo
548 548
         });
549 549
 DiscoJuice.Constants.Countries = {
550 550
 <?php 
551
-  $C = $Gui->printCountryList(1);
552
-     $ret = '';
553
-   foreach ($C as $key => $val) {
551
+    $C = $Gui->printCountryList(1);
552
+        $ret = '';
553
+    foreach ($C as $key => $val) {
554 554
     $ret .= "'$key': \"$val\",";
555
-   }
556
-   echo substr($ret, 0, -1);
555
+    }
556
+    echo substr($ret, 0, -1);
557 557
 ?>
558 558
         };
559 559
 
Please login to merge, or discard this patch.
core/diag/RFC7585Tests.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,6 @@
 block discarded – undo
185 185
      * - RETVAL_NOTCONFIGURED; needs CONFIG_DIAGNOSTICS['RADIUSTESTS']['TLS-discoverytag']
186 186
      * - RETVAL_INVALID (at least one format error)
187 187
      * - RETVAL_OK (all fine)
188
-
189 188
      * @return int one of two RETVALs above
190 189
      */
191 190
     public function relevantNAPTRcompliance() {
Please login to merge, or discard this patch.
devices/linux/Device_Linux.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         
138 138
         $out .= 'Config.sb_user_file = """' . $this->mkSbUserFile() . '"""' . "\n";
139 139
         if (!empty($this->attributes['internal:realm'][0])) {
140
-           $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n";
140
+            $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n";
141 141
         }
142 142
         if(!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) {
143 143
             $out .= "Config.hint_user_input = True\n";
Please login to merge, or discard this patch.
web/skins/modern/test.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
          <?php if (empty($_REQUEST['idp'])) { ?>
82 82
               <div id="front_page">
83 83
                   <?php
84
-                         echo $divs->div_top_welcome();
84
+                            echo $divs->div_top_welcome();
85 85
 //                         echo $divs->div_roller();
86 86
 //                         echo $divs->div_main_button(); ?>
87 87
               </div> <!-- id="front_page" -->
Please login to merge, or discard this patch.
core/diag/Sociopath.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -56,34 +56,34 @@
 block discarded – undo
56 56
         // let's start the numbering at 1
57 57
         $this->qaArray = [
58 58
             1 => ["AREA" => AbstractTest::INFRA_DEVICE,
59
-                  "TXT" => _("Have you ever used the network succesfully, e.g. at your home institution without roaming?"),
60
-                  "FACTOR" => 0.5,
61
-                  "VERDICTLECTURE" => sprintf(_("If your device has never worked before with this setup, then very likely your device configuation is wrong. %s"), $confAssistantText)],
59
+                    "TXT" => _("Have you ever used the network succesfully, e.g. at your home institution without roaming?"),
60
+                    "FACTOR" => 0.5,
61
+                    "VERDICTLECTURE" => sprintf(_("If your device has never worked before with this setup, then very likely your device configuation is wrong. %s"), $confAssistantText)],
62 62
             2 => ["AREA" => AbstractTest::INFRA_DEVICE, 
63
-                  "TXT" => _("Did the device previously work when roaming, i.e. at other hotspots away from your home institution?"), 
64
-                  "FACTOR" => 0.33,
65
-                  "VERDICTLECTURE" => sprintf(_("If roaming consistently does not work, then very likely your device configuration is wrong. Typical errors causing this symptom include: using a routing ('outer') username without the @realm.tld suffix - those potentially work at home, but can not be used when roaming. %s"),$confAssistantText)],
63
+                    "TXT" => _("Did the device previously work when roaming, i.e. at other hotspots away from your home institution?"), 
64
+                    "FACTOR" => 0.33,
65
+                    "VERDICTLECTURE" => sprintf(_("If roaming consistently does not work, then very likely your device configuration is wrong. Typical errors causing this symptom include: using a routing ('outer') username without the @realm.tld suffix - those potentially work at home, but can not be used when roaming. %s"),$confAssistantText)],
66 66
             3 => ["AREA" => AbstractTest::INFRA_DEVICE, 
67
-                  "TXT" => _("Did you recently change the configuration on your device?"), 
68
-                  "FACTOR" => 3,
69
-                  "VERDICTLECTURE" => _("Accounts only need to be configured once, and can then be used anywhere on the planet without any changes. If you recently changed the configuration, that change may very well be at fault. You should never change your network configuration unless explicitly instructed so by your Identity Provider; even in the case of temporary login issues.")],
67
+                    "TXT" => _("Did you recently change the configuration on your device?"), 
68
+                    "FACTOR" => 3,
69
+                    "VERDICTLECTURE" => _("Accounts only need to be configured once, and can then be used anywhere on the planet without any changes. If you recently changed the configuration, that change may very well be at fault. You should never change your network configuration unless explicitly instructed so by your Identity Provider; even in the case of temporary login issues.")],
70 70
             4 => ["AREA" => AbstractTest::INFRA_DEVICE, 
71
-                  "TXT" => _("Do your other devices still work?"),
72
-                  "VERDICTLECTURE" => _("If all devices stopped working simultaneously, there may be a problem with your account as such. Maybe your account expired, or you were forced to change the password? These questions are best answered by your Identity Provider [MGW: display contact info]"),
73
-                  "FACTOR" => 0.33],
71
+                    "TXT" => _("Do your other devices still work?"),
72
+                    "VERDICTLECTURE" => _("If all devices stopped working simultaneously, there may be a problem with your account as such. Maybe your account expired, or you were forced to change the password? These questions are best answered by your Identity Provider [MGW: display contact info]"),
73
+                    "FACTOR" => 0.33],
74 74
             5 => ["AREA" => AbstractTest::INFRA_SP_80211, 
75
-                  "TXT" => _("Is the place you are currently at heavily crowded, or is a network-intensive workload going on?"), 
76
-                  "FACTOR" => 3,
77
-                  "VERDICTLECTURE" => _("The network is likely overloaded at this location and point in time. You may have to wait until later before you get a better connectivity. If you think the network should be reinforced for more capacity at this place, you should inform the hotspot provider. [MGW: add contact info]")],            
75
+                    "TXT" => _("Is the place you are currently at heavily crowded, or is a network-intensive workload going on?"), 
76
+                    "FACTOR" => 3,
77
+                    "VERDICTLECTURE" => _("The network is likely overloaded at this location and point in time. You may have to wait until later before you get a better connectivity. If you think the network should be reinforced for more capacity at this place, you should inform the hotspot provider. [MGW: add contact info]")],            
78 78
             6 => ["AREA" => AbstractTest::INFRA_SP_80211, 
79
-                  "TXT" => _("Does the connection get better when you move around?"), 
80
-                  "FACTOR" => 3,
81
-                  "VERDICTLECTURE" => _("You should move to a different location to achieve better network coverage and service. If you think the exact spot you are at deserves better coverage, you should inform the hotspot provider. [MGW: add contact info]")],
79
+                    "TXT" => _("Does the connection get better when you move around?"), 
80
+                    "FACTOR" => 3,
81
+                    "VERDICTLECTURE" => _("You should move to a different location to achieve better network coverage and service. If you think the exact spot you are at deserves better coverage, you should inform the hotspot provider. [MGW: add contact info]")],
82 82
             
83 83
             7 => ["AREA" => AbstractTest::INFRA_SP_LAN, 
84
-                  "TXT" => _("Do you see errors stating something similar to 'Unable to get IP address'?"), 
85
-                  "FACTOR" => 3,
86
-                  "VERDICTLECTURE" => _("The evidence at hand suggests that there may be an infrastructure problem at this particular hotspot provider. There is nothing you can do to solve this problem locally. Please be patient and try again at a later time.")],
84
+                    "TXT" => _("Do you see errors stating something similar to 'Unable to get IP address'?"), 
85
+                    "FACTOR" => 3,
86
+                    "VERDICTLECTURE" => _("The evidence at hand suggests that there may be an infrastructure problem at this particular hotspot provider. There is nothing you can do to solve this problem locally. Please be patient and try again at a later time.")],
87 87
         ];
88 88
     }
89 89
 
Please login to merge, or discard this patch.
config/config-diagnostics-template.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
      */
60 60
 
61 61
         /**
62
-     * Various paths.
63
-     * eapol_test: absolute path to the eapol_test executable. If you just fill in "eapol_test" the one from the system $PATH will be taken.
64
-     * c_rehash: absolute path to the c_rehash executable. If you just fill in "c_rehash" the one from the system $PATH will be taken.
65
-     *   See also NSIS_VERSION further down
66
-     * @var array
67
-     */
62
+         * Various paths.
63
+         * eapol_test: absolute path to the eapol_test executable. If you just fill in "eapol_test" the one from the system $PATH will be taken.
64
+         * c_rehash: absolute path to the c_rehash executable. If you just fill in "c_rehash" the one from the system $PATH will be taken.
65
+         *   See also NSIS_VERSION further down
66
+         * @var array
67
+         */
68 68
     'PATHS' => [
69 69
         'c_rehash' => 'c_rehash',
70 70
         'eapol_test' => 'eapol_test',
@@ -101,45 +101,45 @@  discard block
 block discarded – undo
101 101
         ],
102 102
 
103 103
         'TLS-clientcerts' => [
104
-          'CA1' => [
104
+            'CA1' => [
105 105
             'status' => 'ACCREDITED',
106 106
             'issuerCA' => '/DC=org/DC=pki1/CN=PKI 1',
107 107
             'certificates' => [
108
-              [
108
+                [
109 109
                 'status' => 'CORRECT',
110 110
                 'public' => 'ca1-client-cert.pem',
111 111
                 'private' => 'ca1-client-key.pem',
112 112
                 'expected' => 'PASS'],
113
-              [
113
+                [
114 114
                 'status' => 'WRONGPOLICY',
115 115
                 'public' => 'ca1-nopolicy-cert.pem',
116 116
                 'private' => 'ca1-nopolicy-key.key',
117 117
                 'expected' => 'FAIL'],
118
-              [
118
+                [
119 119
                 'status' => 'EXPIRED',
120 120
                 'public' => 'ca1-exp.pem',
121 121
                 'private' => 'ca1-exp.key',
122 122
                 'expected' => 'FAIL'],
123
-              [
123
+                [
124 124
                 'status' => 'REVOKED',
125 125
                 'public' => 'ca1-revoked.pem',
126 126
                 'private' => 'ca1-revoked.key',
127 127
                 'expected' => 'FAIL'],
128 128
             ]
129
-          ],
130
-          'CA-N' => [
129
+            ],
130
+            'CA-N' => [
131 131
             'status' => 'NONACCREDITED',
132 132
             'issuerCA' => '/DC=org/DC=pkiN/CN=PKI N',
133 133
             'certificates' => [
134
-               [
134
+                [
135 135
                 'status' => 'CORRECT',
136 136
                 'public' => 'caN-client-cert.pem',
137 137
                 'private' => 'caN-client-cert.key',
138 138
                 'expected' => 'FAIL'],
139
-               ]
140
-          ]
141
-      ],
142
-      'accreditedCAsURL' => '',
139
+                ]
140
+            ]
141
+        ],
142
+        'accreditedCAsURL' => '',
143 143
     ],
144 144
     'eduGainResolver' => [
145 145
         'url' => 'https://technical.edugain.org/api.php',
Please login to merge, or discard this patch.
config/config-master-template.php 1 patch
Indentation   +27 added lines, -28 removed lines patch added patch discarded remove patch
@@ -104,13 +104,13 @@  discard block
 block discarded – undo
104 104
     ],
105 105
 
106 106
     /**
107
-      * Configuration for GeoIP2 
108
-      * Beware, the legacy version does not really work with IPv6 addresses
109
-      * version: set to 2 if you wish to use GeoIP2, to 1 for the legacy version or set to 0 to turn off geolocation service
110
-      * geoip2-path-to-autoloader: points to the GeoIP2 autoloader 
111
-      * geoip2-path-to-db: points to the GeoIP2 city database
112
-      * @var array
113
-      */
107
+     * Configuration for GeoIP2 
108
+     * Beware, the legacy version does not really work with IPv6 addresses
109
+     * version: set to 2 if you wish to use GeoIP2, to 1 for the legacy version or set to 0 to turn off geolocation service
110
+     * geoip2-path-to-autoloader: points to the GeoIP2 autoloader 
111
+     * geoip2-path-to-db: points to the GeoIP2 city database
112
+     * @var array
113
+     */
114 114
       
115 115
     'GEOIP' => [
116 116
         'version' => 0,
@@ -128,7 +128,6 @@  discard block
 block discarded – undo
128 128
      *    mails, just configure the signing cert with these parameters. All must
129 129
      *    be non-NULL for signing to happen. If you don't need a keypass, make 
130 130
      *    it an empty string instead.
131
-
132 131
      * @var array
133 132
      */
134 133
     'MAILSETTINGS' => [ // we always use Submission
@@ -147,25 +146,25 @@  discard block
 block discarded – undo
147 146
      * @var array
148 147
      */
149 148
     'LANGUAGES' => [
150
-      'bg' => ['display' => 'Български',   'locale' => 'bg_BG.utf8',    'latin_based' => FALSE],
151
-      'ca' => ['display' => 'Català',      'locale' => 'ca_ES.utf8',    'latin_based' => TRUE],
152
-      'cs' => ['display' => 'Čeština',     'locale' => 'cs_CZ.utf8',    'latin_based' => TRUE],
153
-      'de' => ['display' => 'Deutsch',     'locale' => 'de_DE.utf8',    'latin_based' => TRUE],
154
-      'el' => ['display' => 'Ελληνικά',    'locale' => 'el_GR.utf8',    'latin_based' => FALSE],
155
-      'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8',    'latin_based' => TRUE],
156
-      'es' => ['display' => 'Español',     'locale' => 'es_ES.utf8',    'latin_based' => TRUE],
157
-      'fr' => ['display' => 'Français',    'locale' => 'fr_FR.utf8',    'latin_based' => TRUE],
158
-      'gl' => ['display' => 'Galego',      'locale' => 'gl_ES.utf8',    'latin_based' => TRUE],
159
-      'hr' => ['display' => 'Hrvatski',    'locale' => 'hr_HR.utf8',    'latin_based' => TRUE],
160
-      'it' => ['display' => 'Italiano',    'locale' => 'it_IT.utf8',    'latin_based' => TRUE],
161
-      'lt' => ['display' => 'lietuvių',    'locale' => 'lt_LT.utf8',    'latin_based' => TRUE],
162
-      'nb' => ['display' => 'Norsk',       'locale' => 'nb_NO.utf8',    'latin_based' => TRUE],
163
-      'pl' => ['display' => 'Polski',      'locale' => 'pl_PL.utf8',    'latin_based' => TRUE],
164
-      'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8',    'latin_based' => TRUE],
165
-      'sr' => ['display' => 'Srpski',      'locale' => 'sr_RS@latin',   'latin_based' => TRUE],
166
-      'fi' => ['display' => 'Suomi',       'locale' => 'fi_FI.utf8',    'latin_based' => TRUE],
167
-      'hu' => ['display' => 'Magyar',      'locale' => 'hu_HU.utf8',    'latin_based' => TRUE],
168
-      'pt' => ['display' => 'Português',   'locale' => 'pt_PT.utf8',    'latin_based' => TRUE],
149
+        'bg' => ['display' => 'Български',   'locale' => 'bg_BG.utf8',    'latin_based' => FALSE],
150
+        'ca' => ['display' => 'Català',      'locale' => 'ca_ES.utf8',    'latin_based' => TRUE],
151
+        'cs' => ['display' => 'Čeština',     'locale' => 'cs_CZ.utf8',    'latin_based' => TRUE],
152
+        'de' => ['display' => 'Deutsch',     'locale' => 'de_DE.utf8',    'latin_based' => TRUE],
153
+        'el' => ['display' => 'Ελληνικά',    'locale' => 'el_GR.utf8',    'latin_based' => FALSE],
154
+        'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8',    'latin_based' => TRUE],
155
+        'es' => ['display' => 'Español',     'locale' => 'es_ES.utf8',    'latin_based' => TRUE],
156
+        'fr' => ['display' => 'Français',    'locale' => 'fr_FR.utf8',    'latin_based' => TRUE],
157
+        'gl' => ['display' => 'Galego',      'locale' => 'gl_ES.utf8',    'latin_based' => TRUE],
158
+        'hr' => ['display' => 'Hrvatski',    'locale' => 'hr_HR.utf8',    'latin_based' => TRUE],
159
+        'it' => ['display' => 'Italiano',    'locale' => 'it_IT.utf8',    'latin_based' => TRUE],
160
+        'lt' => ['display' => 'lietuvių',    'locale' => 'lt_LT.utf8',    'latin_based' => TRUE],
161
+        'nb' => ['display' => 'Norsk',       'locale' => 'nb_NO.utf8',    'latin_based' => TRUE],
162
+        'pl' => ['display' => 'Polski',      'locale' => 'pl_PL.utf8',    'latin_based' => TRUE],
163
+        'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8',    'latin_based' => TRUE],
164
+        'sr' => ['display' => 'Srpski',      'locale' => 'sr_RS@latin',   'latin_based' => TRUE],
165
+        'fi' => ['display' => 'Suomi',       'locale' => 'fi_FI.utf8',    'latin_based' => TRUE],
166
+        'hu' => ['display' => 'Magyar',      'locale' => 'hu_HU.utf8',    'latin_based' => TRUE],
167
+        'pt' => ['display' => 'Português',   'locale' => 'pt_PT.utf8',    'latin_based' => TRUE],
169 168
 
170 169
 // For the following languages, partial translations exist in Transifex, but
171 170
 // they are not complete enough for display. Their Transifex content is not
@@ -242,7 +241,7 @@  discard block
 block discarded – undo
242 241
             'user' => 'customerservice',
243 242
             'pass' => '2lame4u',
244 243
             'readonly' => TRUE, ],
245
-         'enforce-external-sync' => TRUE,
244
+            'enforce-external-sync' => TRUE,
246 245
     ],
247 246
 
248 247
     /**
Please login to merge, or discard this patch.