Passed
Push — release_2_0 ( 0d5fd5...cf68a9 )
by Maja
08:03
created
web/user/API.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         break;
99 99
     case 'listIdentityProviders':
100 100
         if ($federation === FALSE) {
101
-           $federation = $id ? $validator->Federation($id)->tld : FALSE;
101
+            $federation = $id ? $validator->Federation($id)->tld : FALSE;
102 102
         }
103 103
         if ($federation === FALSE) { // federation is a mandatory parameter!
104 104
             exit;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         break;
111 111
     case 'listProfiles': // needs $idp set - abort if not
112 112
         if ($idp === FALSE) {
113
-           $idp = $id ? $validator->IdP($id)->identifier : FALSE;
113
+            $idp = $id ? $validator->IdP($id)->identifier : FALSE;
114 114
         }
115 115
         if ($idp === FALSE) {
116 116
             exit;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         break;
120 120
     case 'listDevices':
121 121
         if ($profile === FALSE) {
122
-           $profile = $id ? $validator->Profile($id)->identifier : FALSE;
122
+            $profile = $id ? $validator->Profile($id)->identifier : FALSE;
123 123
         }
124 124
         if ($profile === FALSE) {
125 125
             exit;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         break;
147 147
     case 'profileAttributes': // needs $profile set
148 148
         if ($profile === FALSE) {
149
-           $profile = $id ? $validator->Profile($id)->identifier : FALSE;
149
+            $profile = $id ? $validator->Profile($id)->identifier : FALSE;
150 150
         }
151 151
         if ($profile === FALSE) {
152 152
             exit;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         break;
156 156
     case 'sendLogo': // needs $idp and $disco set
157 157
         if ($idp === FALSE) {
158
-           $idp = $id ? $validator->IdP($id)->identifier : FALSE;
158
+            $idp = $id ? $validator->IdP($id)->identifier : FALSE;
159 159
         }
160 160
         if ($idp === FALSE) {
161 161
             exit;
Please login to merge, or discard this patch.
web/admin/overview_federation.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,8 +311,8 @@
 block discarded – undo
311 311
                             echo "<form method='post' action='overview_federation.php' accept-charset='UTF-8'>
312 312
                                 <input type='hidden' name='invitation_id' value='" . $oneinvite['token'] . "'/>
313 313
                                 <button class='delete' type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_DELETE . "'>" . _("Revoke Invitation") . "</button> "
314
-                              . sprintf(_("(expires %s)"),$oneinvite['expiry'])
315
-                              .     "</form>";
314
+                                . sprintf(_("(expires %s)"),$oneinvite['expiry'])
315
+                                .     "</form>";
316 316
                         }
317 317
                         echo "      </td>
318 318
                                  </tr>";
Please login to merge, or discard this patch.
web/lib/admin/MapNone.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      */
84 84
     public function htmlShowtime($wizard = FALSE, $additional = FALSE) {
85 85
         if (!$this->readOnly) {
86
- //           return $this->htmlPreEdit($wizard, $additional) . $this->htmlPostEdit(TRUE);
86
+    //           return $this->htmlPreEdit($wizard, $additional) . $this->htmlPostEdit(TRUE);
87 87
             return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . $this->htmlPostEdit(TRUE);
88 88
         }
89 89
     }
Please login to merge, or discard this patch.
devices/ms/Device_W8_10.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
  * @author Tomasz Wolniewicz <[email protected]>
36 36
  * @package ModuleWriting
37 37
  */
38
- class Device_W8_10 extends WindowsCommon {
38
+    class Device_W8_10 extends WindowsCommon {
39 39
     final public function __construct() {
40 40
         parent::__construct();
41 41
         \core\common\Entity::intoThePotatoes();
Please login to merge, or discard this patch.
devices/xml/Device_XML.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
         return $helpdesk;
295 295
     }
296 296
 
297
-   private function getCredentialApplicability() {
297
+    private function getCredentialApplicability() {
298 298
         $ssids = $this->attributes['internal:SSID'];
299 299
         $oids = $this->attributes['internal:consortia'];
300 300
         $credentialapplicability = new CredentialApplicability();
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
     }
421 421
     
422 422
     private function getAuthMethod($eap) {
423
- //       $attr = $this->attributes;
423
+    //       $attr = $this->attributes;
424 424
         $authmethod = new AuthenticationMethod();
425 425
         $eapParams = $this->getAuthenticationMethodParams($eap);
426 426
         $eaptype = new Type();
Please login to merge, or discard this patch.
devices/redirect_dev/Device_RedirectDev.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@
 block discarded – undo
22 22
 namespace devices\redirect_dev;
23 23
 
24 24
 class Device_RedirectDev extends \core\DeviceConfig {
25
-   /**
26
-    * Constructs a Device object.
27
-    *
28
-    * @final not to be redefined
29
-    */
25
+    /**
26
+     * Constructs a Device object.
27
+     *
28
+     * @final not to be redefined
29
+     */
30 30
     final public function __construct() {
31 31
         parent::__construct();
32
-      $this->setSupportedEapMethods([\core\common\EAP::EAPTYPE_NONE]);
33
-      $this->loggerInstance->debug(4,"RedirectEx called");
32
+        $this->setSupportedEapMethods([\core\common\EAP::EAPTYPE_NONE]);
33
+        $this->loggerInstance->debug(4,"RedirectEx called");
34 34
     }
35 35
     
36 36
     /**
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
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
         }
212 212
 
213 213
         if (!empty($this->attributes['internal:realm'][0])) {
214
-           $config['user_realm'] = $this->attributes['internal:realm'][0];
214
+            $config['user_realm'] = $this->attributes['internal:realm'][0];
215 215
         }
216 216
         
217 217
         if(!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) {
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
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
     ],
119 119
 
120 120
     /**
121
-      * Configuration for GeoIP2 
122
-      * Beware, the legacy version does not really work with IPv6 addresses
123
-      * 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
124
-      * geoip2-path-to-autoloader: points to the GeoIP2 autoloader 
125
-      * geoip2-path-to-db: points to the GeoIP2 city database
126
-      * @var array
127
-      */
121
+     * Configuration for GeoIP2 
122
+     * Beware, the legacy version does not really work with IPv6 addresses
123
+     * 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
124
+     * geoip2-path-to-autoloader: points to the GeoIP2 autoloader 
125
+     * geoip2-path-to-db: points to the GeoIP2 city database
126
+     * @var array
127
+     */
128 128
       
129 129
     'GEOIP' => [
130 130
         'version' => 0,
@@ -152,7 +152,6 @@  discard block
 block discarded – undo
152 152
      *    mails, just configure the signing cert with these parameters. All must
153 153
      *    be non-NULL for signing to happen. If you don't need a keypass, make 
154 154
      *    it an empty string instead.
155
-
156 155
      * @var array
157 156
      */
158 157
     'MAILSETTINGS' => [ // we always use Submission
@@ -172,25 +171,25 @@  discard block
 block discarded – undo
172 171
      * @var array
173 172
      */
174 173
     'LANGUAGES' => [
175
-      'bg' => ['display' => 'Български',   'locale' => 'bg_BG.utf8',    'latin_based' => FALSE],
176
-      'ca' => ['display' => 'Català',      'locale' => 'ca_ES.utf8',    'latin_based' => TRUE],
177
-      'cs' => ['display' => 'Čeština',     'locale' => 'cs_CZ.utf8',    'latin_based' => TRUE],
178
-      'de' => ['display' => 'Deutsch',     'locale' => 'de_DE.utf8',    'latin_based' => TRUE],
179
-      'el' => ['display' => 'Ελληνικά',    'locale' => 'el_GR.utf8',    'latin_based' => FALSE],
180
-      'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8',    'latin_based' => TRUE],
181
-      'es' => ['display' => 'Español',     'locale' => 'es_ES.utf8',    'latin_based' => TRUE],     
182
-      'et' => ['display' => 'Eesti',       'locale' => 'et_EE.utf8',    'latin_based' => TRUE], 
183
-      'fr' => ['display' => 'Français',    'locale' => 'fr_FR.utf8',    'latin_based' => TRUE],
184
-      'hr' => ['display' => 'Hrvatski',    'locale' => 'hr_HR.utf8',    'latin_based' => TRUE],
185
-      'hu' => ['display' => 'Magyar',      'locale' => 'hu_HU.utf8',    'latin_based' => TRUE],
186
-      'it' => ['display' => 'Italiano',    'locale' => 'it_IT.utf8',    'latin_based' => TRUE],
187
-      'nb' => ['display' => 'Norsk',       'locale' => 'nb_NO.utf8',    'latin_based' => TRUE],
188
-      'pl' => ['display' => 'Polski',      'locale' => 'pl_PL.utf8',    'latin_based' => TRUE],
189
-      'pt' => ['display' => 'Português',   'locale' => 'pt_PT.utf8',    'latin_based' => TRUE],
190
-      'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8',    'latin_based' => TRUE],
191
-      'sr' => ['display' => 'Srpski',      'locale' => 'sr_RS@latin',   'latin_based' => TRUE],
192
-      'fi' => ['display' => 'Suomi',       'locale' => 'fi_FI.utf8',    'latin_based' => TRUE],
193
-      'tr' => ['display' => 'Türkçe',      'locale' => 'tr_TR.utf8',    'latin_based' => TRUE],
174
+        'bg' => ['display' => 'Български',   'locale' => 'bg_BG.utf8',    'latin_based' => FALSE],
175
+        'ca' => ['display' => 'Català',      'locale' => 'ca_ES.utf8',    'latin_based' => TRUE],
176
+        'cs' => ['display' => 'Čeština',     'locale' => 'cs_CZ.utf8',    'latin_based' => TRUE],
177
+        'de' => ['display' => 'Deutsch',     'locale' => 'de_DE.utf8',    'latin_based' => TRUE],
178
+        'el' => ['display' => 'Ελληνικά',    'locale' => 'el_GR.utf8',    'latin_based' => FALSE],
179
+        'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8',    'latin_based' => TRUE],
180
+        'es' => ['display' => 'Español',     'locale' => 'es_ES.utf8',    'latin_based' => TRUE],     
181
+        'et' => ['display' => 'Eesti',       'locale' => 'et_EE.utf8',    'latin_based' => TRUE], 
182
+        'fr' => ['display' => 'Français',    'locale' => 'fr_FR.utf8',    'latin_based' => TRUE],
183
+        'hr' => ['display' => 'Hrvatski',    'locale' => 'hr_HR.utf8',    'latin_based' => TRUE],
184
+        'hu' => ['display' => 'Magyar',      'locale' => 'hu_HU.utf8',    'latin_based' => TRUE],
185
+        'it' => ['display' => 'Italiano',    'locale' => 'it_IT.utf8',    'latin_based' => TRUE],
186
+        'nb' => ['display' => 'Norsk',       'locale' => 'nb_NO.utf8',    'latin_based' => TRUE],
187
+        'pl' => ['display' => 'Polski',      'locale' => 'pl_PL.utf8',    'latin_based' => TRUE],
188
+        'pt' => ['display' => 'Português',   'locale' => 'pt_PT.utf8',    'latin_based' => TRUE],
189
+        'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8',    'latin_based' => TRUE],
190
+        'sr' => ['display' => 'Srpski',      'locale' => 'sr_RS@latin',   'latin_based' => TRUE],
191
+        'fi' => ['display' => 'Suomi',       'locale' => 'fi_FI.utf8',    'latin_based' => TRUE],
192
+        'tr' => ['display' => 'Türkçe',      'locale' => 'tr_TR.utf8',    'latin_based' => TRUE],
194 193
 
195 194
 
196 195
 
@@ -267,7 +266,7 @@  discard block
 block discarded – undo
267 266
             'user' => 'customerservice',
268 267
             'pass' => '2lame4u',
269 268
             'readonly' => TRUE, ],
270
-         'enforce-external-sync' => TRUE,
269
+            'enforce-external-sync' => TRUE,
271 270
     ],
272 271
 
273 272
     /**
Please login to merge, or discard this patch.
web/user/faq.inc.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -23,54 +23,54 @@
 block discarded – undo
23 23
     this is just an include file for Gui class definition
24 24
 */
25 25
     $Faq = [
26
-      [
26
+        [
27 27
         'id'=>'idp_not_listed',
28 28
         'title'=>_("My organisation is not listed. Can't I just use any of the other ones?"),
29 29
         'text'=>_("No! The installers contain security settings which are specific to the organisation. If you are not from that organisation, your device will detect that you are about to send your username and credential to an unauthorised server and will abort the login. Using an installer from a different organisation is <i>guaranteed to not work</i>!")
30
-         ],
31
-      [
30
+            ],
31
+        [
32 32
         'id'=>'idp_not_listed',
33 33
         'title'=>_("What can I do to get my organisation listed?"),
34 34
         'text'=>sprintf(_("Contact %s administrators within your organisation and request that they add their organisation to the system. It will take at most one hour of their time to get things done."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
35 35
 ],
36
-      [
36
+        [
37 37
         'id'=>'device_not_listed',
38 38
         'title'=>sprintf(_("My device is not listed! Does that mean I can't do %s?"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
39 39
         'text'=>sprintf(_("No. The CAT tool can only support Operating Systems which can be automatically configured in some way. Many other devices can still be used with %s, but must be configured manually. Please contact your organisation to get help in setting up such a device."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
40
-      ],
40
+        ],
41 41
 
42
-      [
42
+        [
43 43
         'title'=>sprintf(_("I can connect to %s simply by providing username and password, what is the point of using an installer?"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
44 44
         'text'=>sprintf(_("When you are connecting from an unconfigured device your security is at risk. The very point of preconfiguration is to set up security, when this is done, your device will first confirm that it talks to the correct authentication server and will never send your password to an untrusted one."))
45 45
 ],
46
-      [
46
+        [
47 47
         'title'=>sprintf(_("Is it safe to use %s installers?"),CONFIG['APPEARANCE']['productname']),
48 48
         'text'=>sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."),CONFIG['APPEARANCE']['productname']).' '.( isset(CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name']) && CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."),CONFIG['APPEARANCE']['productname'],CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name']):""),
49 49
         
50 50
 ],
51
-      [
51
+        [
52 52
         'title'=>_("Windows 'SmartScreen' or 'Internet Explorer' tell me that the file is not commonly downloaded and possibly harmful. Should I be concerned?"),
53 53
         'text'=>_("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.")." ".(isset(CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name']) && CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."),CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name'])." ":"").sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."),"<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>")
54 54
         
55 55
 ],
56
-      [
56
+        [
57 57
         'title'=>sprintf(_("I can see %s network and my device is configured but it does not connect, what can be the cause?"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
58
-      'text'=>sprintf(_("There can be a number of different reasons. The network you see may not be a genuine %s one and your device silently drops the connection attempt; there may be something wrong with the configuration of the network; your account may have expired; there may be a connection problem with your home authentication server; you may have broken the regulations of the network you are using and have been refused access as a consequence. You should contact your organisation and report the problem, the administrators should be able to trace your connections."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
58
+        'text'=>sprintf(_("There can be a number of different reasons. The network you see may not be a genuine %s one and your device silently drops the connection attempt; there may be something wrong with the configuration of the network; your account may have expired; there may be a connection problem with your home authentication server; you may have broken the regulations of the network you are using and have been refused access as a consequence. You should contact your organisation and report the problem, the administrators should be able to trace your connections."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
59 59
 ],
60
-      [
60
+        [
61 61
         'id'=>'contact',
62 62
         'title'=>sprintf(_("I have a question about this web site. Whom should I contact?")),
63 63
         'text'=>sprintf(_("You should send a mail to %s."),CONFIG['APPEARANCE']['support-contact']['display'])
64
-      ],
64
+        ],
65 65
 ];
66 66
 
67 67
     if (CONFIG_CONFASSISTANT['CONSORTIUM']['name'] == "eduroam") {
68 68
         $eduroamDb = new core\ExternalEduroamDBData();
69 69
         $SPs = $eduroamDb->allServiceProviders();
70
-       array_push($Faq,
71
-         [
72
-           'id'=>'what_is_'.CONFIG_CONFASSISTANT['CONSORTIUM']['name'],
73
-           'title'=>sprintf(_("What is this %s thing anyway?"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
74
-           'text'=>sprintf(_("%s is a global WiFi roaming consortium which gives members of education and research access to the internet <i>for free</i> on all %s hotspots on the planet. There are several million %s users already, enjoying free internet access on more than %d hotspots! Visit <a href='http://www.eduroam.org'>the %s homepage</a> or <a href='http://monitor.eduroam.org/map_service_loc.php'>the %s location map</a> for more details."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'],CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'],CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], count($SPs), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
75
-         ]);
70
+        array_push($Faq,
71
+            [
72
+            'id'=>'what_is_'.CONFIG_CONFASSISTANT['CONSORTIUM']['name'],
73
+            'title'=>sprintf(_("What is this %s thing anyway?"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
74
+            'text'=>sprintf(_("%s is a global WiFi roaming consortium which gives members of education and research access to the internet <i>for free</i> on all %s hotspots on the planet. There are several million %s users already, enjoying free internet access on more than %d hotspots! Visit <a href='http://www.eduroam.org'>the %s homepage</a> or <a href='http://monitor.eduroam.org/map_service_loc.php'>the %s location map</a> for more details."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'],CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'],CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], count($SPs), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
75
+            ]);
76 76
     }
Please login to merge, or discard this patch.