Passed
Push — master ( 513a82...0e4305 )
by Tomasz
07:13 queued 01:21
created
web/lib/admin/view/InstitutionPageBuilder.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
  */
15 15
 class InstitutionPageBuilder {
16 16
     
17
-   /**
18
-    * Particular IdP instance. If set to null means that page is entered by a mistake.
19
-    * 
20
-    * @var \core\IdP
21
-    */
17
+    /**
18
+     * Particular IdP instance. If set to null means that page is entered by a mistake.
19
+     * 
20
+     * @var \core\IdP
21
+     */
22 22
     protected $institution = null;
23 23
     
24 24
     /**
Please login to merge, or discard this patch.
web/skins/eduroam2016/user/cat_info.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 switch ($page) {
36 36
     case 'about' :
37 37
        require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/user/about_cat.inc.php");
38
-       $out = "<div>$out</div>";
39
-       break;
38
+        $out = "<div>$out</div>";
39
+        break;
40 40
     case 'tou':
41 41
         require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/user/tou.inc.php");
42 42
         $out = "no_title<div>
@@ -62,18 +62,18 @@  discard block
 block discarded – undo
62 62
             case 'what_is_eduroam' :
63 63
                 $out = "no_title<div><h1>" . _("Help") . "</h1>";
64 64
                 foreach ($Faq as $faqItem) {
65
-                   if (!empty($faqItem['id']) && $faqItem['id'] == $subpage) {
66
-                       $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
67
-                       $out .= "" . $faqItem['text'] . "</div>\n";
68
-                   }
65
+                    if (!empty($faqItem['id']) && $faqItem['id'] == $subpage) {
66
+                        $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
67
+                        $out .= "" . $faqItem['text'] . "</div>\n";
68
+                    }
69 69
                 }
70 70
                 $out .= "</div>";
71 71
                 break;
72 72
             case 'faq':
73 73
                 $out = "no_title<div><h1>" . _("Frequently Asked Questions") . "</h1>";
74 74
                 foreach ($Faq as $faqItem) {
75
-                   $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
76
-                   $out .= "" . $faqItem['text'] . "</div>\n";
75
+                    $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
76
+                    $out .= "" . $faqItem['text'] . "</div>\n";
77 77
                 }
78 78
                 $out .= "</div>";
79 79
                 break;
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
                         $out .= _("Please authenticate yourself and login");
98 98
                     }
99 99
                     $out .= "<p><button onclick='goAdmin(); return(false);'>" . _("Login") . "</button>";
100
-               }
101
-               break;
102
-       }
103
-       break;
100
+                }
101
+                break;
102
+        }
103
+        break;
104 104
     default:
105 105
         break;
106 106
 }
Please login to merge, or discard this patch.
web/skins/eduroam2016/user/js/cat_js.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 ?>
11 11
 <?php 
12 12
 function escaped_echo($s) {
13
-   echo preg_replace('/"/','&quot;',$s);
13
+    echo preg_replace('/"/','&quot;',$s);
14 14
 }
15 15
 
16 16
 $langObject = new \core\common\Language();
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 if (! is_numeric($profileId)) {
24 24
     exit;
25 25
 }
26
- ?>
26
+    ?>
27 27
 var n;
28 28
 var profile;
29 29
 // var device_button_bg ="#0a698e";
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
 }
346 346
 
347 347
 <?php if($idpId) { 
348
-      print "front_page = 0;\n";
348
+        print "front_page = 0;\n";
349 349
 } ?>
350 350
 
351 351
 function showTOU(){
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 if ($profileId) {
422 422
     print "listProfiles($idpId,$profileId);";
423 423
 }
424
- ?>
424
+    ?>
425 425
 
426 426
 $(".signin").click(function(event){
427 427
      event.preventDefault();
@@ -500,12 +500,12 @@  discard block
 block discarded – undo
500 500
         });
501 501
 DiscoJuice.Constants.Countries = {
502 502
 <?php 
503
-  $C = $Gui->printCountryList(1);
504
-     $ret = '';
505
-   foreach ($C as $key => $val) {
503
+    $C = $Gui->printCountryList(1);
504
+        $ret = '';
505
+    foreach ($C as $key => $val) {
506 506
     $ret .= "'$key': \"$val\",";
507
-   }
508
-   echo substr($ret, 0, -1);
507
+    }
508
+    echo substr($ret, 0, -1);
509 509
 ?>
510 510
         };
511 511
 
Please login to merge, or discard this patch.
web/skins/eduroam2016/user/js/roll.php 1 patch
Indentation   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,13 +68,12 @@
 block discarded – undo
68 68
 
69 69
 <?php
70 70
 /**
71
-  * The OS object holds operating system descriptions
72
-  * @param name is the main title
73
-  * @param subtitle - the subtitle
74
-  * @param path - the path to the scriin-dump image
75
-  * @param signed - if true show information that the module is signed
76
-    
77
-*/
71
+ * The OS object holds operating system descriptions
72
+ * @param name is the main title
73
+ * @param subtitle - the subtitle
74
+ * @param path - the path to the scriin-dump image
75
+ * @param signed - if true show information that the module is signed
76
+ */
78 77
 ?>
79 78
 
80 79
 function OS(name, subtitle, path, signed) {
Please login to merge, or discard this patch.
web/skins/classic/user/js/cat_js.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  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();
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 if (! is_numeric($profileId)) {
25 25
     exit;
26 26
 }
27
- ?>
27
+    ?>
28 28
 var n;
29 29
 var profile;
30 30
 var generateTimer;
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 }
360 360
 
361 361
 <?php if($idpId) { 
362
-      print "front_page = 0;\n";
362
+        print "front_page = 0;\n";
363 363
 } ?>
364 364
 
365 365
 function showTOU(){
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
 if ($profileId) {
494 494
     print "listProfiles($idpId,$profileId);";
495 495
 }
496
- ?>
496
+    ?>
497 497
 
498 498
 $(".signin").click(function(event){
499 499
      pressedButton = $(this);
@@ -554,12 +554,12 @@  discard block
 block discarded – undo
554 554
         });
555 555
 DiscoJuice.Constants.Countries = {
556 556
 <?php 
557
-  $C = $Gui->printCountryList(1);
558
-     $ret = '';
559
-   foreach ($C as $key => $val) {
557
+    $C = $Gui->printCountryList(1);
558
+        $ret = '';
559
+    foreach ($C as $key => $val) {
560 560
     $ret .= "'$key': \"$val\",";
561
-   }
562
-   echo substr($ret, 0, -1);
561
+    }
562
+    echo substr($ret, 0, -1);
563 563
 ?>
564 564
         };
565 565
 
Please login to merge, or discard this patch.
core/diag/RFC7585Tests.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,6 @@
 block discarded – undo
128 128
      * - RETVAL_NOTCONFIGURED; needs CONFIG_DIAGNOSTICS['RADIUSTESTS']['TLS-discoverytag']
129 129
      * - RETVAL_INVALID (at least one format error)
130 130
      * - RETVAL_OK (all fine)
131
-
132 131
      * @return int one of two RETVALs above
133 132
      */
134 133
     public function NAPTR_compliance() {
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,44 +101,44 @@  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
 ];
Please login to merge, or discard this patch.
config/config-confassistant-template.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         'server_suffix' => '.hosted.eduroam.org',
89 89
         'gracetime' => 90,
90 90
         'CA' => ["type" => "embedded"], # OCSP URL needs to be configured in openssl.cnf
91
-      # 'CA' => ["type" => "DFN", "SOAP_API_ENDPOINT" => "http://no.idea.where/"],
91
+        # 'CA' => ["type" => "DFN", "SOAP_API_ENDPOINT" => "http://no.idea.where/"],
92 92
 
93 93
     ],
94 94
     /**
Please login to merge, or discard this patch.
config/config-master-template.php 1 patch
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.