Passed
Push — master ( 9b0183...513a82 )
by Tomasz
03:25
created
config/config-master-template.php 2 patches
Indentation   +29 added lines, -30 removed lines patch added patch discarded remove patch
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
     ],
104 104
 
105 105
     /**
106
-      * Configuration for GeoIP2 
107
-      * Beware, the legacy version does not really work with IPv6 addresses
108
-      * 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
109
-      * geoip2-path-to-autoloader: points to the GeoIP2 autoloader 
110
-      * geoip2-path-to-db: points to the GeoIP2 city database
111
-      * @var array
112
-      */
106
+     * Configuration for GeoIP2 
107
+     * Beware, the legacy version does not really work with IPv6 addresses
108
+     * 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
109
+     * geoip2-path-to-autoloader: points to the GeoIP2 autoloader 
110
+     * geoip2-path-to-db: points to the GeoIP2 city database
111
+     * @var array
112
+     */
113 113
       
114 114
     'GEOIP' => [
115 115
         'version' => 0,
@@ -127,7 +127,6 @@  discard block
 block discarded – undo
127 127
      *    mails, just configure the signing cert with these parameters. All must
128 128
      *    be non-NULL for signing to happen. If you don't need a keypass, make 
129 129
      *    it an empty string instead.
130
-
131 130
      * @var array
132 131
      */
133 132
     'MAILSETTINGS' => [ // we always use Submission
@@ -146,25 +145,25 @@  discard block
 block discarded – undo
146 145
      * @var array
147 146
      */
148 147
     'LANGUAGES' => [
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],
148
+        'bg' => ['display' => 'Български',   'locale' => 'bg_BG.utf8',    'latin_based' => FALSE],
149
+        'ca' => ['display' => 'Català',      'locale' => 'ca_ES.utf8',    'latin_based' => TRUE],
150
+        'cs' => ['display' => 'Čeština',     'locale' => 'cs_CZ.utf8',    'latin_based' => TRUE],
151
+        'de' => ['display' => 'Deutsch',     'locale' => 'de_DE.utf8',    'latin_based' => TRUE],
152
+        'el' => ['display' => 'Ελληνικά',    'locale' => 'el_GR.utf8',    'latin_based' => FALSE],
153
+        'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8',    'latin_based' => TRUE],
154
+        'es' => ['display' => 'Español',     'locale' => 'es_ES.utf8',    'latin_based' => TRUE],
155
+        'fr' => ['display' => 'Français',    'locale' => 'fr_FR.utf8',    'latin_based' => TRUE],
156
+        'gl' => ['display' => 'Galego',      'locale' => 'gl_ES.utf8',    'latin_based' => TRUE],
157
+        'hr' => ['display' => 'Hrvatski',    'locale' => 'hr_HR.utf8',    'latin_based' => TRUE],
158
+        'it' => ['display' => 'Italiano',    'locale' => 'it_IT.utf8',    'latin_based' => TRUE],
159
+        'lt' => ['display' => 'lietuvių',    'locale' => 'lt_LT.utf8',    'latin_based' => TRUE],
160
+        'nb' => ['display' => 'Norsk',       'locale' => 'nb_NO.utf8',    'latin_based' => TRUE],
161
+        'pl' => ['display' => 'Polski',      'locale' => 'pl_PL.utf8',    'latin_based' => TRUE],
162
+        'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8',    'latin_based' => TRUE],
163
+        'sr' => ['display' => 'Srpski',      'locale' => 'sr_RS@latin',   'latin_based' => TRUE],
164
+        'fi' => ['display' => 'Suomi',       'locale' => 'fi_FI.utf8',    'latin_based' => TRUE],
165
+        'hu' => ['display' => 'Magyar',      'locale' => 'hu_HU.utf8',    'latin_based' => TRUE],
166
+        'pt' => ['display' => 'Português',   'locale' => 'pt_PT.utf8',    'latin_based' => TRUE],
168 167
 
169 168
 // For the following languages, partial translations exist in Transifex, but
170 169
 // they are not complete enough for display. Their Transifex content is not
@@ -217,11 +216,11 @@  discard block
 block discarded – undo
217 216
             'db' => 'customer_db',
218 217
             'user' => 'customerservice',
219 218
             'pass' => '2lame4u'],
220
-         'enforce-external-sync' => TRUE,
221
-         /* if you feed your user database from a third-party source and do not want CAT to update it on its own, you can 
219
+            'enforce-external-sync' => TRUE,
220
+            /* if you feed your user database from a third-party source and do not want CAT to update it on its own, you can 
222 221
           * make it read-only
223 222
           */
224
-         'userdb-readonly' => FALSE,
223
+            'userdb-readonly' => FALSE,
225 224
     ],
226 225
 
227 226
     /**
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
      * @var array
132 132
      */
133
-    'MAILSETTINGS' => [ // we always use Submission
133
+    'MAILSETTINGS' => [// we always use Submission
134 134
         'host' => 'submission.capable.mta',
135 135
         'user'=> 'mailuser',
136 136
         'pass' => 'mailpass',
@@ -146,25 +146,25 @@  discard block
 block discarded – undo
146 146
      * @var array
147 147
      */
148 148
     'LANGUAGES' => [
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],
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],
168 168
 
169 169
 // For the following languages, partial translations exist in Transifex, but
170 170
 // they are not complete enough for display. Their Transifex content is not
Please login to merge, or discard this patch.
core/common/Entity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function __construct() {
63 63
         $this->loggerInstance = new Logging();
64
-        $this->loggerInstance->debug(3, "--- BEGIN constructing class ". get_class($this)." .\n");
64
+        $this->loggerInstance->debug(3, "--- BEGIN constructing class " . get_class($this) . " .\n");
65 65
         $this->languageInstance = new Language();
66 66
     }
67 67
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * Logs the end of lifetime of the entity to the debug log on level 5.
72 72
      */
73 73
     public function __destruct() {
74
-        (new Logging())->debug(5,"--- KILL Destructing class ". get_class($this)." .\n");
74
+        (new Logging())->debug(5, "--- KILL Destructing class " . get_class($this) . " .\n");
75 75
     }
76 76
     
77 77
     /**
Please login to merge, or discard this patch.
web/admin/edit_profile.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -281,14 +281,14 @@  discard block
 block discarded – undo
281 281
             <tr>
282 282
                 <!-- checkbox for "verify-->
283 283
                 <td>
284
-                    <span id='verify_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
284
+                    <span id='verify_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
285 285
                         <?php echo _("Verify user input to contain realm suffix:"); ?>
286 286
                     </span>
287 287
                 </td>
288 288
                 <td>
289 289
                     <input type='checkbox' <?php
290
-                    echo ($verify != FALSE ? "checked" : "" );
291
-                    echo ($realm == "" ? "disabled" : "" );
290
+                    echo ($verify != FALSE ? "checked" : "");
291
+                    echo ($realm == "" ? "disabled" : "");
292 292
                     ?> name='verify_support' onclick='
293 293
                             if (this.form.elements["verify_support"].checked !== true) {
294 294
                                 this.form.elements["hint_support"].setAttribute("disabled", "disabled");
@@ -296,48 +296,48 @@  discard block
 block discarded – undo
296 296
                                 this.form.elements["hint_support"].removeAttribute("disabled");
297 297
                             }
298 298
                             ;'/>
299
-                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
299
+                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
300 300
                         <?php echo _("Prefill user input with realm suffix:"); ?>
301 301
                     </span>
302
-                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : "" ); ?> name='hint_support' <?php echo ( $hint != FALSE ? "checked" : "" ); ?> />
302
+                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : ""); ?> name='hint_support' <?php echo ($hint != FALSE ? "checked" : ""); ?> />
303 303
                 </td>
304 304
             </tr>
305 305
             <tr>
306 306
 
307 307
                 <!-- checkbox and input field for anonymity support, available only when realm is known-->
308 308
                 <td>
309
-                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
309
+                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
310 310
                         <?php echo _("Enable Anonymous Outer Identity:"); ?>
311 311
                     </span>
312 312
                 </td>
313 313
                 <td>
314
-                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='anon_support' onclick='
314
+                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "") . ($realm == "" ? " disabled" : ""); ?> name='anon_support' onclick='
315 315
                             if (this.form.elements["anon_support"].checked !== true) {
316 316
                                 this.form.elements["anon_local"].setAttribute("disabled", "disabled");
317 317
                             } else {
318 318
                                 this.form.elements["anon_local"].removeAttribute("disabled");
319 319
                             }
320 320
                             ;'/>
321
-                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
321
+                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
322 322
                 </td>    
323 323
             </tr>
324 324
             <tr>
325 325
 
326 326
                 <!-- checkbox and input field for check realm outer id, available only when realm is known-->
327 327
                 <td>
328
-                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
328
+                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
329 329
                         <?php echo _("Use special Outer Identity for realm checks:"); ?>
330 330
                     </span>
331 331
                 </td>
332 332
                 <td>
333
-                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='checkuser_support' onclick='
333
+                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "") . ($realm == "" ? " disabled" : ""); ?> name='checkuser_support' onclick='
334 334
                             if (this.form.elements["checkuser_support"].checked !== true) {
335 335
                                 this.form.elements["checkuser_local"].setAttribute("disabled", "disabled");
336 336
                             } else {
337 337
                                 this.form.elements["checkuser_local"].removeAttribute("disabled");
338 338
                             }
339 339
                             ;'/>
340
-                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
340
+                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
341 341
                 </td>
342 342
             </tr>
343 343
         </table>
@@ -353,14 +353,14 @@  discard block
 block discarded – undo
353 353
     <p>
354 354
 
355 355
         <?php
356
-        echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "" ) . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span>
357
-                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked " ) . "onclick='
356
+        echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "") . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span>
357
+                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked ") . "onclick='
358 358
                               if (this.form.elements[\"redirect\"].checked != true) {
359 359
                                 this.form.elements[\"redirect_target\"].setAttribute(\"disabled\", \"disabled\");
360 360
                               } else {
361 361
                                 this.form.elements[\"redirect_target\"].removeAttribute(\"disabled\");
362 362
                               };'/>
363
-                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled" ) . "/>";
363
+                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled") . "/>";
364 364
         ?>
365 365
     </p>
366 366
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     function priority(string $eapType, bool $isenabled, int $priority) {
385 385
         echo "<td><select id='$eapType-priority' name='$eapType-priority' " . (!$isenabled ? "disabled='disabled'" : "") . ">";
386 386
         for ($a = 1; $a < 7; $a = $a + 1) {
387
-            echo "<option id='$eapType-$a' value='$a' " . ( $isenabled && $a == $priority ? "selected" : "" ) . ">$a</option>";
387
+            echo "<option id='$eapType-$a' value='$a' " . ($isenabled && $a == $priority ? "selected" : "") . ">$a</option>";
388 388
         }
389 389
         echo "</select></td>";
390 390
     }
Please login to merge, or discard this patch.
web/lib/admin/OptionDisplay.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
      * @param int $rowid the HTML field base name of the option to be displayed
231 231
      * @param string $optionName the name of the option to display
232 232
      * @param string $optionValue the value of the option to display
233
-     * @param mixed $optionLang the language of the option to display
233
+     * @param null|string $optionLang the language of the option to display
234 234
      * @param int $locationIndex which n of m locations is this, in case we are displaying a coordinate
235 235
      * @param int $allLocationCount how many locations in total exist, in case we are displaying a coordinate
236 236
      * @return string HTML code
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $optioninfo = \core\Options::instance();
91 91
 
92
-        if (is_array($prepopulate) && ( count($prepopulate) > 1 || $class == "device-specific" || $class == "eap-specific")) { // editing... fill with values
92
+        if (is_array($prepopulate) && (count($prepopulate) > 1 || $class == "device-specific" || $class == "eap-specific")) { // editing... fill with values
93 93
             $number = 0;
94 94
             foreach ($prepopulate as $option) {
95 95
                 if (preg_match("/$class:/", $option['name']) && !preg_match("/(profile:QR-user|user:fedadmin)/", $option['name'])) {
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
         foreach ($dataTypes as $oneDataType) {
150 150
             // TODO make this a $jsmagic .= after the update of cat-pilot
151 151
             $jsmagic .= "if (/#$oneDataType#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
152
-                                  document.getElementById(\"S$rowid-input-file\").style.display = \"".($oneDataType == "file" ? "block" : "none")."\";
153
-                                  document.getElementById(\"S$rowid-input-text\").style.display = \"".($oneDataType == "text" ? "block" : "none")."\";
154
-                                  document.getElementById(\"S$rowid-input-string\").style.display = \"".($oneDataType == "string" ? "block" : "none")."\";
155
-                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"".($oneDataType == "boolean" ? "block" : "none")."\";
156
-                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"".($oneDataType == "integer" ? "block" : "none")."\";
152
+                                  document.getElementById(\"S$rowid-input-file\").style.display = \"" . ($oneDataType == "file" ? "block" : "none") . "\";
153
+                                  document.getElementById(\"S$rowid-input-text\").style.display = \"" . ($oneDataType == "text" ? "block" : "none") . "\";
154
+                                  document.getElementById(\"S$rowid-input-string\").style.display = \"" . ($oneDataType == "string" ? "block" : "none") . "\";
155
+                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"" . ($oneDataType == "boolean" ? "block" : "none") . "\";
156
+                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"" . ($oneDataType == "integer" ? "block" : "none") . "\";
157 157
                              }
158 158
                              ";
159 159
         }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * @return string HTML code
212 212
      * @throws Exception
213 213
      */
214
-    private function prefillText(int $rowid, string $optionName, string $optionValue, $optionLang, int &$locationIndex, int &$allLocationCount) {
214
+    private function prefillText(int $rowid, string $optionName, string $optionValue, $optionLang, int & $locationIndex, int & $allLocationCount) {
215 215
         $retval = "";
216 216
         $optioninfo = \core\Options::instance();
217 217
         $loggerInstance = new \core\common\Logging();
Please login to merge, or discard this patch.
web/admin/edit_user_result.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
 
57 57
 $i = 0;
58 58
 foreach ($salvageFedPrivs as $oneFed) {
59
-    $_POST['option']["S123456789".$i] = "user:fedadmin#string##";
60
-    $_POST['value']["S123456789".$i."-0"] = $oneFed;
59
+    $_POST['option']["S123456789" . $i] = "user:fedadmin#string##";
60
+    $_POST['value']["S123456789" . $i . "-0"] = $oneFed;
61 61
     $i++;
62 62
 }
63 63
 ?>
Please login to merge, or discard this patch.
web/admin/edit_federation_result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 echo $deco->pageheader(sprintf(_("%s: %s Customisation (submission completed)"), CONFIG['APPEARANCE']['productname'], $uiElements->nomenclature_fed), "FEDERATION");
30 30
 $my_fed = $validator->Federation($_GET['fed_id'], $_SESSION['user']);
31 31
 if (isset($_POST['submitbutton'])) {
32
-    if (( $_POST['submitbutton'] == web\lib\admin\FormElements::BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go
32
+    if (($_POST['submitbutton'] == web\lib\admin\FormElements::BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go
33 33
         $fed_name = $my_fed->name;
34 34
         echo "<h1>" . sprintf(_("Submitted attributes for %s '%s'"), $uiElements->nomenclature_fed, $fed_name) . "</h1>";
35 35
         echo "<table>";
Please login to merge, or discard this patch.
web/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,4 +26,4 @@
 block discarded – undo
26 26
 $Gui->defaultPagePrelude();
27 27
 
28 28
 // and now, serve actual data
29
-include("skins/".$Gui->skinObject->skin."/index.php");
29
+include("skins/" . $Gui->skinObject->skin . "/index.php");
Please login to merge, or discard this patch.
core/common/Logging.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 namespace core\common;
12 12
 use \Exception;
13 13
 
14
-require_once(dirname(dirname(__DIR__))."/config/_config.php");
14
+require_once(dirname(dirname(__DIR__)) . "/config/_config.php");
15 15
 
16 16
 class Logging {
17 17
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 echo " ($category) ";
87 87
                 echo " " . $user . ": ";
88 88
                 if (is_string($message)) {
89
-                    echo $message ."\n";
89
+                    echo $message . "\n";
90 90
                 } else {
91 91
                     echo var_export($message);
92 92
                 }
Please login to merge, or discard this patch.
web/skins/eduroam2016/accountstatus.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
           <html xmlns='http://www.w3.org/1999/xhtml' lang='" . $ourlocale . "'>
13 13
           <head lang='" . $ourlocale . "'>
14 14
           <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>";
15
-    $cssUrl = $guiObject->skinObject->findResourceUrl("CSS","cat.css.php");
15
+    $cssUrl = $guiObject->skinObject->findResourceUrl("CSS", "cat.css.php");
16 16
 
17 17
     echo "<link rel='stylesheet' type='text/css' href='$cssUrl' />";
18 18
     echo "<title>" . htmlspecialchars($pagetitle) . "</title>";
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 $Gui->loggerInstance->debug(4, "\n---------------------- index.php START --------------------------\n");
25 25
 
26
-defaultPagePrelude($Gui,CONFIG['APPEARANCE']['productname_long'], FALSE);
26
+defaultPagePrelude($Gui, CONFIG['APPEARANCE']['productname_long'], FALSE);
27 27
 
28 28
 ?>
29 29
 <script type="text/javascript">ie_version = 0;</script>
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 <script type="text/javascript">ie_version=10;</script>
44 44
 <![endif]-->
45 45
 <!-- JQuery -->
46
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js");?>"></script>
47
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js");?>"></script>
48
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js");?>"></script>
46
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js"); ?>"></script>
47
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js"); ?>"></script>
48
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js"); ?>"></script>
49 49
 <!-- JQuery -->
50 50
 <script type="text/javascript">
51 51
     var recognisedOS = '';
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 ?>
60 60
 var lang = "<?php echo($Gui->langObject->getLang()) ?>";
61 61
 </script>
62
-<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" />
62
+<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" />
63 63
 
64 64
 </head>
65 65
 <body>
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
71 71
     ?>
72 72
     <div id="info_overlay"> <!-- device info -->
73 73
         <div id="info_window"></div>
74
-        <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
74
+        <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
75 75
     </div>
76 76
     <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu -->
77
-          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
77
+          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
78 78
           <div id="main_menu_content"></div>
79 79
     </div>
80 80
        <div id="main_body">
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     <span id="inst_name_span"><?php echo $statusInfo['idp']->name; ?></span>
86 86
 </div>
87 87
 <div> <!-- IdP logo, if present -->
88
-    <img id="idp_logo" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","empty.png")?>" alt="IdP Logo"/>
88
+    <img id="idp_logo" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "empty.png")?>" alt="IdP Logo"/>
89 89
 </div>
90 90
 <div id="user_info"></div> <!-- this will be filled with the profile contact information -->
91 91
 <div id="devices" class="device_list">
Please login to merge, or discard this patch.