Test Failed
Push — master ( 2e7cb2...3dfc79 )
by Tomasz
13:22
created
web/lib/admin/Maintenance.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public static function deleteObsoleteTempDirs() {
36 36
         $downloadsDirs = [
37
-            'site_installers' => dirname(dirname(dirname(dirname(__FILE__)))) . "/var/installer_cache",
38
-            'silverbullet' => dirname(dirname(dirname(dirname(__FILE__)))) . "/var/silverbullet"
37
+            'site_installers' => dirname(dirname(dirname(dirname(__FILE__))))."/var/installer_cache",
38
+            'silverbullet' => dirname(dirname(dirname(dirname(__FILE__))))."/var/silverbullet"
39 39
         ];
40 40
         $tm = time();
41 41
         $i = 0;
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
                     if ($entry === '.' || $entry === '..' || $entry === '.gitignore') {
55 55
                         continue;
56 56
                     }
57
-                    $ftime = $tm - filemtime($downloads . '/' . $entry);
57
+                    $ftime = $tm - filemtime($downloads.'/'.$entry);
58 58
                     if ($ftime < 3600) {
59 59
                         continue;
60 60
                     }
61 61
                     if (isset($Cache[$entry])) {
62 62
                         continue;
63 63
                     }
64
-                    \core\common\Entity::rrmdir($downloads . '/' . $entry);
64
+                    \core\common\Entity::rrmdir($downloads.'/'.$entry);
65 65
                     $i = $i + 1;
66 66
                     print "$entry\n";
67 67
                 }
Please login to merge, or discard this patch.
web/copyright.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  * @author Stefan Winter <[email protected]>
26 26
  * @package Core
27 27
  */
28
-require_once dirname(dirname(__FILE__)) . "/config/_config.php";
28
+require_once dirname(dirname(__FILE__))."/config/_config.php";
29 29
 
30 30
 $Gui = new \web\lib\user\Gui();
31 31
 // ... unless overwritten by direct GET/POST parameter in the request or a SESSION setting
Please login to merge, or discard this patch.
web/skins/example/accountstatus.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
  * License: see the web/copyright.inc.php file in the file structure or
17 17
  *          <base_url>/copyright.php after deploying the software
18 18
  */?>
19
-<h1>Example Skin (Pick-Up and Status page for <?php echo \core\ProfileSilverbullet::PRODUCTNAME;?>)</h1>
20
-<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES","consortium_logo.png");?>"/>
19
+<h1>Example Skin (Pick-Up and Status page for <?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?>)</h1>
20
+<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES", "consortium_logo.png"); ?>"/>
21 21
 <p>This skin is much more sober and less bloated than the default one. As it happens, it also doesn't do anything.</p>
22 22
 <p>But at least it goes to show that it's possible to include custom images/CSS/external software using findResourceUrl(..., $filename):
23
-<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES","custom.png");?>"/>
24
-<p>For <?php echo \core\ProfileSilverbullet::PRODUCTNAME;?>, this page can make use of the request status info we have collected prior to invocation of the skinned page:</p>
23
+<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES", "custom.png"); ?>"/>
24
+<p>For <?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?>, this page can make use of the request status info we have collected prior to invocation of the skinned page:</p>
25 25
 <pre>
26
-    <?php print_r($statusInfo);?>
26
+    <?php print_r($statusInfo); ?>
27 27
 </pre>
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
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  * @author Stefan Winter <[email protected]>
26 26
  * @package Core
27 27
  */
28
-require_once dirname(dirname(__FILE__)) . "/config/_config.php";
28
+require_once dirname(dirname(__FILE__))."/config/_config.php";
29 29
 
30 30
 $Gui = new \web\lib\user\Gui();
31 31
 // ... unless overwritten by direct GET/POST parameter in the request or a SESSION setting
Please login to merge, or discard this patch.
web/skins/modern/diag/diag.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
                         echo "0\">";
157 157
                         echo _("This service is for authenticated admins only.") . '<br>';
158 158
                         echo "<a href=\"diag.php?admin=1\">" .
159
-                             _("eduroam® admin access is needed") . "</a>";
159
+                                _("eduroam® admin access is needed") . "</a>";
160 160
                     }
161 161
                 ?>
162 162
             </div> 
Please login to merge, or discard this patch.
Spacing   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 $Gui->loggerInstance->debug(4, $operatingSystem);
48 48
 $uiElements = new web\lib\admin\UIElements();
49 49
 if ($operatingSystem) {
50
-    print "recognisedOS = '" . $operatingSystem['device'] . "';\n";
50
+    print "recognisedOS = '".$operatingSystem['device']."';\n";
51 51
 }
52
-require dirname(__DIR__) . '/user/js/cat_js.php';
52
+require dirname(__DIR__).'/user/js/cat_js.php';
53 53
 ?>
54 54
 
55 55
 </script>
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
     </div>
79 79
     <div id="main_body">
80 80
         <div id="user_page">
81
-            <?php echo $divs->divPagetitle(_("Diagnostics site") . " (<span style='color:red'>beta</span>)", ""); ?>
81
+            <?php echo $divs->divPagetitle(_("Diagnostics site")." (<span style='color:red'>beta</span>)", ""); ?>
82 82
             <div id="user_info" style='padding-top: 10px;'>
83 83
             <div id='diagnostic_choice'>
84
-                <?php echo _("The diagnostics system will do its best to identify and resolve your problems!") . ' ' . _("Please help the system by answering the questions as precisely as possible.") . "<br/>" . _("Are you a") . ' '; ?>
85
-                <input type='radio' name='diagnostic_usertype' value='0'><?php echo _("end-user") . ' ' . _("or"); ?>   
86
-                <input type='radio' name='diagnostic_usertype' value='1' <?php if ($admin == 1) { echo " checked"; } ?> > <?php echo _("eduroam administrator") .'?'; ?>
84
+                <?php echo _("The diagnostics system will do its best to identify and resolve your problems!").' '._("Please help the system by answering the questions as precisely as possible.")."<br/>"._("Are you a").' '; ?>
85
+                <input type='radio' name='diagnostic_usertype' value='0'><?php echo _("end-user").' '._("or"); ?>   
86
+                <input type='radio' name='diagnostic_usertype' value='1' <?php if ($admin == 1) { echo " checked"; } ?> > <?php echo _("eduroam administrator").'?'; ?>
87 87
             </div>
88 88
             <div id='diagnostic_enduser' style='display: none;'>
89 89
                 <h2><?php echo _("Tools for End Users"); ?></h2>
@@ -93,24 +93,24 @@  discard block
 block discarded – undo
93 93
                 ?>
94 94
                 </p>
95 95
                 <?php
96
-                    echo '<div id="before_stage_1"><h3>' . _("The system needs some information on your home institution - issuer of your account") . '</h3>';
96
+                    echo '<div id="before_stage_1"><h3>'._("The system needs some information on your home institution - issuer of your account").'</h3>';
97 97
                     echo _("What is the realm part of your user account (the part behind the @ of 'your.username@<b>realm.tld</b>):");
98 98
                 ?>
99 99
                 <input type='text' name='user_realm' id='user_realm' value=''>
100 100
                 <?php
101
-                    echo '<div id="realm_by_select"><br/>' . _("alternatively") . '<br/>';
102
-                    echo _("You can select your home institution from the following list") . '<br/>';
101
+                    echo '<div id="realm_by_select"><br/>'._("alternatively").'<br/>';
102
+                    echo _("You can select your home institution from the following list").'<br/>';
103 103
                     echo '<div id="select_idp_country"><a href="" id="idp_countries_list">';    
104
-                    echo '<span id="realmselect">' . _("Click to select your country/region and organisation") . '</span></a></div>';
104
+                    echo '<span id="realmselect">'._("Click to select your country/region and organisation").'</span></a></div>';
105 105
                 ?>
106 106
                 <div id="select_idp_area" style="display:none;">
107 107
                 </div>
108 108
                 </div>
109 109
                 <div id="position_info">
110 110
                     <?php
111
-                        echo '<h3>' . _("Optionally, to improve tests, you can provide information on your current location") . '</h3>';
111
+                        echo '<h3>'._("Optionally, to improve tests, you can provide information on your current location").'</h3>';
112 112
                         echo '<div id="select_sp_country"><a href="" id="sp_countries_list">';    
113
-                        echo '<span id="spselect">' . _("Click to select a location in which you have an eduroam problem") . '</span></a></div>';
113
+                        echo '<span id="spselect">'._("Click to select a location in which you have an eduroam problem").'</span></a></div>';
114 114
                     ?>
115 115
                     <div id="select_sp_area" style="display:none;">
116 116
                     </div>
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
                             echo 'none';
144 144
                         }
145 145
                         echo ";'>";
146
-                        echo '<h3>' . _("Which problem are you reporting?") . '</h3>';
146
+                        echo '<h3>'._("Which problem are you reporting?").'</h3>';
147 147
                         echo '<input type="radio" name="problem_type" value="1">';
148
-                        echo _("SP contacting IdP due to technical problems or abuse") . '<br>';
148
+                        echo _("SP contacting IdP due to technical problems or abuse").'<br>';
149 149
                         echo '<input type="radio" name="problem_type" value="2">';
150 150
                         echo _("IdP contacting SP due to technical problems");
151 151
                         echo "<div id='idp_contact_area'></div>";
@@ -154,9 +154,9 @@  discard block
 block discarded – undo
154 154
                         echo "</div>"; 
155 155
                     } else {
156 156
                         echo "0\">";
157
-                        echo _("This service is for authenticated admins only.") . '<br>';
158
-                        echo "<a href=\"diag.php?admin=1\">" .
159
-                             _("eduroam® admin access is needed") . "</a>";
157
+                        echo _("This service is for authenticated admins only.").'<br>';
158
+                        echo "<a href=\"diag.php?admin=1\">".
159
+                             _("eduroam® admin access is needed")."</a>";
160 160
                     }
161 161
                 ?>
162 162
             </div> 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         if (type === 'idp' || type === 'sp') {
181 181
             shtml = '<table><tbody><tr id="row_'+type+'_country"></tr>';
182 182
             shtml = shtml + '<tr id="row_'+type+'_institution" style="visibility: collapse;">';
183
-            shtml = shtml + '<td>' + <?php echo '"' . _("Select institiution:") . '"'; ?> + '</td><td></td></tr>';
183
+            shtml = shtml + '<td>' + <?php echo '"'._("Select institiution:").'"'; ?> + '</td><td></td></tr>';
184 184
             if (type === 'idp') {
185 185
                 shtml = shtml + '<tr id="row_idp_realm"></tr>';
186 186
             }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         var options = '';
207 207
         var selecthead = '';
208 208
         if (type1 === 'sp' || type1 === 'idp') {
209
-            selecthead = <?php echo '"<td>' . _("Select country or region:") . ' </td>"'; ?>;
209
+            selecthead = <?php echo '"<td>'._("Select country or region:").' </td>"'; ?>;
210 210
             selecthead = selecthead + '<td>\n';
211 211
         }
212 212
         var select = '<select id="' + type1 + '_country" name="' + type1 + '_country" style="margin-left:0px; width:400px;">';
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             options = ($('#'+type2+'_country').html());
215 215
             countryAddSelect(selecthead, select + options + '</select>', type1);
216 216
         } else {
217
-            var comment = <?php echo '"<br><br>' . _("Fetching country/region list") . '..."'; ?>;
217
+            var comment = <?php echo '"<br><br>'._("Fetching country/region list").'..."'; ?>;
218 218
             inProgress(1, comment);
219 219
             $.ajax({
220 220
                 url: "findRealm.php",
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         return false;
252 252
     }
253 253
     function testSociopath(realm, answer) {
254
-        var comment = <?php echo '"' . _("Testing realm") . '..."'; ?>; 
254
+        var comment = <?php echo '"'._("Testing realm").'..."'; ?>; 
255 255
         inProgress(1, comment);
256 256
         if ($('#tested_realm').length == 0) {
257 257
             $('<input>').attr({
@@ -275,9 +275,9 @@  discard block
 block discarded – undo
275 275
                                 query = '<input type="hidden" id="tested_realm" value="' + realm + '">';
276 276
                             }    
277 277
                             query = query + '<div id="current_query">'+data['TEXT']+'</div>';
278
-                            query = query + '<div><button id="answer_yes">' + <?php echo '"' . _("Yes") . '"'; ?> + '</button>';
279
-                            query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"' . _("No") . '"'; ?> + '</button>';
280
-                            query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"' . _("I don't know") . '"'; ?> + '</button></div>';
278
+                            query = query + '<div><button id="answer_yes">' + <?php echo '"'._("Yes").'"'; ?> + '</button>';
279
+                            query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"'._("No").'"'; ?> + '</button>';
280
+                            query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"'._("I don't know").'"'; ?> + '</button></div>';
281 281
                             $('#sociopath_queries').html(query);
282 282
                             $('#sociopath_query_area').show();
283 283
                         }
@@ -308,55 +308,55 @@  discard block
 block discarded – undo
308 308
        }); 
309 309
     }
310 310
     function finalVerdict(realm, verdict) {
311
-        var title = <?php echo '"' . _("Diagnostic tests results for selected realm") . '"'; ?>;
311
+        var title = <?php echo '"'._("Diagnostic tests results for selected realm").'"'; ?>;
312 312
         result = '<div class="padding">';
313 313
         result = result + '<div><h3>';
314
-        result = result + <?php echo '"' . _("The result for tested realm:") . ' "'; ?> + realm;
314
+        result = result + <?php echo '"'._("The result for tested realm:").' "'; ?> + realm;
315 315
         result = result + '</h3></p><div style="padding: 5px;"><div style="padding: 0px;">';
316
-        result = result + <?php echo '"' . _("The system identified") . '" '; ?>  + ' ';
316
+        result = result + <?php echo '"'._("The system identified").'" '; ?>  + ' ';
317 317
         result = result + Object.keys(verdict).length + ' ';
318
-        result = result + <?php echo '"' . _("suspected areas which potentially can cause a problem.") . '"'; ?> + '<br>';
319
-        result = result + <?php echo '"' . _("Next to the problem description we show a speculated probability of this event.") . '"'; ?>;
318
+        result = result + <?php echo '"'._("suspected areas which potentially can cause a problem.").'"'; ?> + '<br>';
319
+        result = result + <?php echo '"'._("Next to the problem description we show a speculated probability of this event.").'"'; ?>;
320 320
         result = result + '</div><div style="padding: 5px;"><table>';
321 321
         k = 1;
322 322
         for (key in verdict) {
323 323
             result = result + '<tr><td>' + k + '.</td>';
324 324
             k = k + 1;
325 325
             if (key === 'INFRA_DEVICE') {
326
-                result = result + '<td>' + <?php echo '"' . _("Your device configuration is broken") . '"'; ?> + '</td>';
326
+                result = result + '<td>' + <?php echo '"'._("Your device configuration is broken").'"'; ?> + '</td>';
327 327
             }
328 328
             if (key === 'INFRA_SP_80211') {
329
-                result = result + '<td>' + <?php echo '"' . _("The Wi-Fi network in your vicinity has quality issues") . '"'; ?> + '</td>';
329
+                result = result + '<td>' + <?php echo '"'._("The Wi-Fi network in your vicinity has quality issues").'"'; ?> + '</td>';
330 330
             }
331 331
             if (key === 'INFRA_SP_LAN') {
332
-                result = result + '<td>' + <?php echo '"' . _("The network environment around you is broken") . '"'; ?> + '</td>';
332
+                result = result + '<td>' + <?php echo '"'._("The network environment around you is broken").'"'; ?> + '</td>';
333 333
             }
334 334
             if (key === 'INFRA_SP_RADIUS') {
335
-                result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your service provider is the source of the problem") . '"'; ?> + '</td>';
335
+                result = result + '<td>' + <?php echo '"'._("The RADIUS server of your service provider is the source of the problem").'"'; ?> + '</td>';
336 336
             }
337 337
             if (key === 'INFRA_IDP_AUTHBACKEND') {
338
-                result = result + '<td>' + <?php echo '"' . _("The RADIUS server in your home institution is currently unable to authenticate you") . '"'; ?> + '</td>';
338
+                result = result + '<td>' + <?php echo '"'._("The RADIUS server in your home institution is currently unable to authenticate you").'"'; ?> + '</td>';
339 339
             }
340 340
             if (key === 'INFRA_NRO_SP') {
341
-                result = result + '<td>' + <?php echo '"' . _("The national server in the country/region you are visiting is not functioning correctly") . '"'; ?> + '</td>';
341
+                result = result + '<td>' + <?php echo '"'._("The national server in the country/region you are visiting is not functioning correctly").'"'; ?> + '</td>';
342 342
             }
343 343
             if (key === 'INFRA_LINK_ETLR_NRO_SP') {
344
-                result = result + '<td>' + <?php echo '"' . _("The link between the national server of the country/region you are visiting and the top-level server is broken") . '"'; ?> + '</td>';
344
+                result = result + '<td>' + <?php echo '"'._("The link between the national server of the country/region you are visiting and the top-level server is broken").'"'; ?> + '</td>';
345 345
             }
346 346
             if (key === 'INFRA_LINK_ETLR_NRO_IdP') {
347
-                result = result + '<td>' + <?php echo '"' . _("The link between the national server of your home country/region and the top-level server is broken") . '"'; ?> + '</td>';
347
+                result = result + '<td>' + <?php echo '"'._("The link between the national server of your home country/region and the top-level server is broken").'"'; ?> + '</td>';
348 348
             }
349 349
             if (key === 'INFRA_ETLR') {
350
-                result = result + '<td>' + <?php echo '"' . _("The communication to the top-level server is down") . '"'; ?> + '</td>';
350
+                result = result + '<td>' + <?php echo '"'._("The communication to the top-level server is down").'"'; ?> + '</td>';
351 351
             }
352 352
             if (key === 'INFRA_NRO_IdP') {
353
-                result = result + '<td>' + <?php echo '"' . _("The national server in your home country/region is not functioning properly.") . '"'; ?> + '</td>';
353
+                result = result + '<td>' + <?php echo '"'._("The national server in your home country/region is not functioning properly.").'"'; ?> + '</td>';
354 354
             }
355 355
             if (key === 'INFRA_IdP_RADIUS') {
356
-                result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your home institution is the source of the problem") . '"'; ?> + '</td>';
356
+                result = result + '<td>' + <?php echo '"'._("The RADIUS server of your home institution is the source of the problem").'"'; ?> + '</td>';
357 357
             }
358 358
             if (key === 'INFRA_NONEXISTENTREALM') {
359
-                result = result + '<td>' + <?php echo '"' . _("This realm does not exist") . '"'; ?> + '</td>';
359
+                result = result + '<td>' + <?php echo '"'._("This realm does not exist").'"'; ?> + '</td>';
360 360
             }
361 361
             result = result + '<td style="padding-left: 5px;">' + (verdict[key] * 100).toFixed(2) + "%</td></tr>";
362 362
         }
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
         return false;
474 474
     });
475 475
     $(document).on('change', '#idp_country' , function() {
476
-        var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>;  
476
+        var comment = <?php echo '"'._("Fetching institutions list").'..."'; ?>;  
477 477
         var id = $(this).attr('id');
478 478
         var k = id.indexOf('_');
479 479
         var type = id.substr(0,k);
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
                         var shtml = '';
492 492
                         var select = '';
493 493
                         if (type !== 'asp') {
494
-                            shtml = <?php echo '"<td>' . _("Select institution:") . '</td><td>"'; ?>;
494
+                            shtml = <?php echo '"<td>'._("Select institution:").'</td><td>"'; ?>;
495 495
                         }
496 496
                         select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value=""></option>';
497 497
                         for (var i in institutions) {
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
                     } else {
513 513
                         if (data.status === 0) {
514 514
                             inProgress(0);
515
-                            var msg = <?php echo '"' . _("The database does not contain the information needed to help you in realm selection for this country. You have to provide the realm you are interested in.") . '"'; ?>;
515
+                            var msg = <?php echo '"'._("The database does not contain the information needed to help you in realm selection for this country. You have to provide the realm you are interested in.").'"'; ?>;
516 516
                             alert(msg);
517 517
                             $('#select_idp_country').show();
518 518
                             $('#select_idp_area').hide();
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
                 },
522 522
                 error:function() {
523 523
                     inProgress(0);
524
-                    var msg = <?php echo '"' . _("Can not search in database. You have to provide the realm you are interested in.") . '"'; ?>;
524
+                    var msg = <?php echo '"'._("Can not search in database. You have to provide the realm you are interested in.").'"'; ?>;
525 525
                     alert(msg);
526 526
                     $('#select_idp_country').show();
527 527
                     $('#select_idp_area').hide();
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
         return false;
537 537
     });
538 538
     $(document).on('change', '#sp_country, #asp_country' , function() {
539
-        var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>;  
539
+        var comment = <?php echo '"'._("Fetching institutions list").'..."'; ?>;  
540 540
         var id = $(this).attr('id');
541 541
         var k = id.indexOf('_');
542 542
         var type = id.substr(0,k);
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
                         var shtml = '';
555 555
                         var select = '';
556 556
                         if (type !== 'asp') {
557
-                            shtml = <?php echo '"<td>' . _("Select institution:") . '</td><td>"'; ?>;
557
+                            shtml = <?php echo '"<td>'._("Select institution:").'</td><td>"'; ?>;
558 558
                         }
559 559
                         select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value=""></option>';
560 560
                         for (var i in hotspots) {
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
                             inProgress(0);
578 578
                             var select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value="">';
579 579
                             var shtml = '<td></td><td>';
580
-                            select = select + <?php echo '"' . _("Other location") . '"'; ?> + '</option></select></td>';
580
+                            select = select + <?php echo '"'._("Other location").'"'; ?> + '</option></select></td>';
581 581
                             if (type !== 'asp') {
582 582
                                 $('#row_' + type + '_institution').html('');
583 583
                                 $('#row_' + type + '_institution').append(shtml + select);
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
             $('#start_test_area').hide();
612 612
             return false;
613 613
         }
614
-        var comment = <?php echo '"' . _("Fetching realms list") . '..."'; ?>;
614
+        var comment = <?php echo '"'._("Fetching realms list").'..."'; ?>;
615 615
         inProgress(1, comment);
616 616
         $.ajax({
617 617
             url: "findRealm.php",
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
                     var realms = data.realms;
624 624
                     var realmselect = '';
625 625
                     if (realms.length > 1) {
626
-                        realmselect = <?php echo '"<td>' . _("Check realm(s):") . '</td>"'; ?>;
626
+                        realmselect = <?php echo '"<td>'._("Check realm(s):").'</td>"'; ?>;
627 627
                         realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>";
628 628
                         for (var i in realms) {
629 629
                             realmselect = realmselect + '<input type="radio" name="realm" ';
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
                         }
636 636
                         realmselect = realmselect + '</span></td>';
637 637
                     } else {
638
-                        realmselect = <?php echo '"<td>' . _("Realm:") . '</td>"'; ?>;
638
+                        realmselect = <?php echo '"<td>'._("Realm:").'</td>"'; ?>;
639 639
                         realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>";
640 640
                         realmselect = realmselect + realms[0] + '</span>';
641 641
                         realmselect = realmselect + '<input type="hidden" name="realm" value="' + realms[0] + '">';
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
             });
691 691
             t = 1;
692 692
         }
693
-        var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>;
693
+        var comment = <?php echo '"'._("Running realm tests").'..."'; ?>;
694 694
         inProgress(1, comment);
695 695
         /*waiting(comment);*/
696 696
         $.ajax({
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
                             }
735 735
                         });
736 736
                         $('#sp_questions > tbody').append('<tr class="error_row"><td>' +
737
-                                <?php echo '"' . _("Realm is not registered with the eduroam database:") . '"'; ?> +
737
+                                <?php echo '"'._("Realm is not registered with the eduroam database:").'"'; ?> +
738 738
                                 '</td><td>' + realm + '</td></tr>');
739 739
                         $('#admin_realm').val('');
740 740
                     }    
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
         testSociopath('', answer);
759 759
     });
760 760
     $('#realmtest').click(function(event){
761
-        var comment = <?php echo '"<br><br>' . _("Running realm tests") . '..."'; ?>;
761
+        var comment = <?php echo '"<br><br>'._("Running realm tests").'..."'; ?>;
762 762
         inProgress(1, comment);
763 763
         $('#start_test_area').hide();
764 764
         if ($('#select_sp_area').is(':hidden')) {
@@ -806,13 +806,13 @@  discard block
 block discarded – undo
806 806
                         reset_footer();
807 807
                         testSociopath(realm, 0);
808 808
                     } else {
809
-                        var title = <?php echo '"' . _("Diagnostics results for selected realms") . '"'; ?>;
810
-                        result = '<div class="padding"><h3>' + <?php echo '"' . _("An unknown problem occured") . '"'; ?>;
809
+                        var title = <?php echo '"'._("Diagnostics results for selected realms").'"'; ?>;
810
+                        result = '<div class="padding"><h3>' + <?php echo '"'._("An unknown problem occured").'"'; ?>;
811 811
                         result = result + '</h3>'
812 812
                         if (r.length == 1) {
813
-                            result = result + <?php echo '"' . _("This test includes checking of the following realm") . '"'; ?>;
813
+                            result = result + <?php echo '"'._("This test includes checking of the following realm").'"'; ?>;
814 814
                         } else {    
815
-                            result = result + <?php echo '"' . _("This test includes checking of the following realms") . '"'; ?>;
815
+                            result = result + <?php echo '"'._("This test includes checking of the following realms").'"'; ?>;
816 816
                         }
817 817
                         result = result + ': '
818 818
                         for (var i=0; i < r.length; i++) {
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
                             result = result + r[i];
823 823
                         }
824 824
                         result = result + '.<br>';
825
-                        result = result + <?php echo '"' . _("You should report this to") . '"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>';
825
+                        result = result + <?php echo '"'._("You should report this to").'"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>';
826 826
                         result = result + '</div>';
827 827
                         $('#after_stage_1').hide();
828 828
                         $('#before_stage_1').show();
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
                 });
883 883
             });
884 884
         });
885
-        var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>;
885
+        var comment = <?php echo '"'._("Running realm tests").'..."'; ?>;
886 886
         inProgress(1, comment);
887 887
         $.ajax({
888 888
             url: "findRealm.php",
@@ -953,29 +953,29 @@  discard block
 block discarded – undo
953 953
             success:function(data) {
954 954
                 if (data.status === 1) {
955 955
                     var result = '';
956
-                    var title = <?php echo '"' . _("eduroam admin report submission") . '"'; ?>;
956
+                    var title = <?php echo '"'._("eduroam admin report submission").'"'; ?>;
957 957
                     result = '<div class="padding">';
958 958
                     if (type == 'idp_send') {
959
-                        result = result + '<h3>'+ <?php echo '"' . _("SP contacting IdP due to technical problems or abuse") . '"'; ?> + '</h3>';
959
+                        result = result + '<h3>'+ <?php echo '"'._("SP contacting IdP due to technical problems or abuse").'"'; ?> + '</h3>';
960 960
                         result = result + '<table>';
961
-                        result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>';
962
-                        result = result + '<tr><td>' + <?php echo '"' . _("SP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>';
963
-                        result = result + '<tr><td>' + <?php echo '"' . _("IdP email(s)") . '"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>';
964
-                        result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>';
965
-                        result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>';
966
-                        result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>';
961
+                        result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>';
962
+                        result = result + '<tr><td>' + <?php echo '"'._("SP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>';
963
+                        result = result + '<tr><td>' + <?php echo '"'._("IdP email(s)").'"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>';
964
+                        result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>';
965
+                        result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>';
966
+                        result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>';
967 967
                     }
968 968
                     if (type == 'sp_send') {
969
-                        result = result + '<h3>'+ <?php echo '"' . _("IdP contacting SP due to technical problems or abuse") . '"'; ?> + '</h3>';
969
+                        result = result + '<h3>'+ <?php echo '"'._("IdP contacting SP due to technical problems or abuse").'"'; ?> + '</h3>';
970 970
                         result = result + '<table>';
971
-                        result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>';
972
-                        result = result + '<tr><td>' + <?php echo '"' . _("SP's Operator-Name") . '"'; ?> + '</td><td>' + data.opname + '</td></tr>';
973
-                        result = result + '<tr><td>' + <?php echo '"' . _("User's outer ID") . '"'; ?> + '</td><td>' + data.outerid + '</td></tr>';
974
-                        result = result + '<tr><td>' + <?php echo '"' . _("IdP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>';
975
-                        result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>';
976
-                        result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>';
977
-                        result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>';
978
-                        result = result + '<tr><td>' + <?php echo '"' . _("How to contact the user") . '"'; ?> +'</td><td>' + data.cdetails + '</td></tr>';
971
+                        result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>';
972
+                        result = result + '<tr><td>' + <?php echo '"'._("SP's Operator-Name").'"'; ?> + '</td><td>' + data.opname + '</td></tr>';
973
+                        result = result + '<tr><td>' + <?php echo '"'._("User's outer ID").'"'; ?> + '</td><td>' + data.outerid + '</td></tr>';
974
+                        result = result + '<tr><td>' + <?php echo '"'._("IdP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>';
975
+                        result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>';
976
+                        result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>';
977
+                        result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>';
978
+                        result = result + '<tr><td>' + <?php echo '"'._("How to contact the user").'"'; ?> +'</td><td>' + data.cdetails + '</td></tr>';
979 979
                     }
980 980
                     result = result + '</div>';
981 981
                     showInfo(result, title);
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
         if ($('#mac').val().length > 0) {
993 993
             if ($('#mac').val().length != 17) {
994 994
                 $('#mac').addClass('error_input');
995
-                $('#mac').attr('title', <?php echo '"' . _("MAC address is incomplete") . '"'; ?>);
995
+                $('#mac').attr('title', <?php echo '"'._("MAC address is incomplete").'"'; ?>);
996 996
             } else {
997 997
                 $('#mac').removeClass('error_input'); 
998 998
                 $('#mac').attr('title', '');
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
         if ($(this).attr('id') == 'email' &&  $(this).val().length > 0) {
1002 1002
             if (!isEmail($(this).val())) {
1003 1003
                 $('#email').addClass('error_input');
1004
-                $('#email').attr('title', <?php echo '"' . _("Wrong format of email") . '"'; ?>);
1004
+                $('#email').attr('title', <?php echo '"'._("Wrong format of email").'"'; ?>);
1005 1005
             } else {
1006 1006
                 $('#email').removeClass('error_input');
1007 1007
                 $('#email').attr('title', '');
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
         if ($(this).attr('id') == 'outer_id' &&  $(this).val().length > 0) {
1011 1011
             if (!isEmail($(this).val(), true)) {
1012 1012
                 $('#outer_id').addClass('error_input');
1013
-                $('#outer_id').attr('title', <?php echo '"' . _("Wrong format of outer ID") . '"'; ?>);
1013
+                $('#outer_id').attr('title', <?php echo '"'._("Wrong format of outer ID").'"'; ?>);
1014 1014
             } else {
1015 1015
                 $('#outer_id').removeClass('error_input');
1016 1016
                 $('#outer_id').attr('title', '');
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
         if ($(this).attr('id') == 'opname' && $('#opname').val().length > 0) {
1020 1020
             if (!isOperatorName($(this).val())) {
1021 1021
                 $('#opname').addClass('error_input');
1022
-                $('#opname').attr('title', <?php echo '"' . _("Wrong string given as OperatorName") . '"'; ?>);
1022
+                $('#opname').attr('title', <?php echo '"'._("Wrong string given as OperatorName").'"'; ?>);
1023 1023
                 $('#spmanually').show();
1024 1024
             } else {
1025 1025
                 $('#opname').removeClass('error_input');
Please login to merge, or discard this patch.
devices/chromebook/DeviceChromebook.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $cryptoJson = openssl_encrypt($clearJson, 'AES-256-CBC', $encryptionKey, OPENSSL_RAW_DATA, $initVector);
118 118
         $hmac = hash_hmac("sha1", $cryptoJson, $encryptionKey, TRUE);
119 119
 
120
-        $this->loggerInstance->debug(4, "Clear = $clearJson\nSalt = $salt\nPW = " . $password . "\nb(IV) = " . base64_encode($initVector) . "\nb(Cipher) = " . base64_encode($cryptoJson) . "\nb(HMAC) = " . base64_encode($hmac));
120
+        $this->loggerInstance->debug(4, "Clear = $clearJson\nSalt = $salt\nPW = ".$password."\nb(IV) = ".base64_encode($initVector)."\nb(Cipher) = ".base64_encode($cryptoJson)."\nb(HMAC) = ".base64_encode($hmac));
121 121
 
122 122
         // now, generate the container that holds all the crypto data
123 123
         $finalArray = [
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     private function wiredBlock($eapdetails) {
190 190
         return [
191
-            "GUID" => \core\common\Entity::uuid('', "wired-dot1x-ethernet") . "}",
191
+            "GUID" => \core\common\Entity::uuid('', "wired-dot1x-ethernet")."}",
192 192
             "Name" => "eduroam configuration (wired network)",
193 193
             "Remove" => false,
194 194
             "Type" => "Ethernet",
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         // if silverbullet, we deliver the client cert inline
229 229
 
230 230
         if ($selectedEap == \core\common\EAP::EAPTYPE_SILVERBULLET) {
231
-            $eaparray['ClientCertRef'] = "[" . $this->clientCert['GUID'] . "]";
231
+            $eaparray['ClientCertRef'] = "[".$this->clientCert['GUID']."]";
232 232
             $eaparray['ClientCertType'] = "Ref";
233 233
         }
234 234
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         $jsonArray = ["Type" => "UnencryptedConfiguration"];
262 262
 
263 263
         foreach ($this->attributes['internal:CAs'][0] as $ca) {
264
-            $caRefs[] = "{" . $ca['uuid'] . "}";
264
+            $caRefs[] = "{".$ca['uuid']."}";
265 265
         }
266 266
         // define CA certificates
267 267
         foreach ($this->attributes['internal:CAs'][0] as $ca) {
@@ -271,15 +271,15 @@  discard block
 block discarded – undo
271 271
             if ($caSanitized1 === FALSE) {
272 272
                 throw new Exception("Error cropping PEM data at its BEGIN marker.");
273 273
             }
274
-            $this->loggerInstance->debug(4, $caSanitized1 . "\n");
274
+            $this->loggerInstance->debug(4, $caSanitized1."\n");
275 275
             // remove \n
276 276
             $caSanitized = str_replace("\n", "", $caSanitized1);
277
-            $jsonArray["Certificates"][] = ["GUID" => "{" . $ca['uuid'] . "}", "Remove" => false, "Type" => "Authority", "X509" => $caSanitized];
278
-            $this->loggerInstance->debug(3, $caSanitized . "\n");
277
+            $jsonArray["Certificates"][] = ["GUID" => "{".$ca['uuid']."}", "Remove" => false, "Type" => "Authority", "X509" => $caSanitized];
278
+            $this->loggerInstance->debug(3, $caSanitized."\n");
279 279
         }
280 280
         // if we are doing silverbullet, include the unencrypted(!) P12 as a client certificate
281 281
         if ($this->selectedEap == \core\common\EAP::EAPTYPE_SILVERBULLET) {
282
-            $jsonArray["Certificates"][] = ["GUID" => "[" . $this->clientCert['GUID'] . "]", "PKCS12" => base64_encode($this->clientCert['certdataclear']), "Remove" => false, "Type" => "Client"];
282
+            $jsonArray["Certificates"][] = ["GUID" => "[".$this->clientCert['GUID']."]", "PKCS12" => base64_encode($this->clientCert['certdataclear']), "Remove" => false, "Type" => "Client"];
283 283
         }
284 284
         $eaparray = $this->eapBlock($caRefs);
285 285
         // define Wi-Fi networks
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 
301 301
         file_put_contents('installer_profile', $finalJson);
302 302
 
303
-        $fileName = $this->installerBasename . '.onc';
303
+        $fileName = $this->installerBasename.'.onc';
304 304
 
305 305
         if (!$this->sign) {
306 306
             rename("installer_profile", $fileName);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         // have the notion of signing
312 312
         // but if they ever change their mind, we are prepared
313 313
 
314
-        $outputFromSigning = system($this->sign . " installer_profile '$fileName' > /dev/null");
314
+        $outputFromSigning = system($this->sign." installer_profile '$fileName' > /dev/null");
315 315
         if ($outputFromSigning === FALSE) {
316 316
             $this->loggerInstance->debug(2, "Signing the ONC installer $fileName FAILED!\n");
317 317
         }
Please login to merge, or discard this patch.
devices/linux/DeviceLinux.php 3 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,8 +201,7 @@
 block discarded – undo
201 201
             
202 202
         if ($this->selectedEap == \core\common\EAP::EAPTYPE_TLS && isset($this->attributes['eap-specific:tls_use_other_id']) && $this->attributes['eap-specific:tls_use_other_id'][0] == 'on') {
203 203
             $configRaw['use_other_tls_id'] = "True";
204
-        }
205
-        else {
204
+        } else {
206 205
             $configRaw['use_other_tls_id'] = "False";
207 206
         }
208 207
 
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
      *
56 56
      */
57 57
     public function writeInstaller() {
58
-        $installerPath = $this->installerBasename . ".py";
58
+        $installerPath = $this->installerBasename.".py";
59 59
         $this->copyFile("main.py", $installerPath);
60
-        $installer = fopen($installerPath,"a");
60
+        $installer = fopen($installerPath, "a");
61 61
         if ($installer === FALSE) {
62 62
             throw new Exception("Unable to open installer file for writing!");
63 63
         }
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
         $out .= "<p>";
85 85
         if ($ssidCount > 1) {
86 86
             if ($ssidCount > 2) {
87
-                $out .= sprintf(_("In addition to <strong>%s</strong> the installer will also configure access to the following networks:"), implode(', ', \config\ConfAssistant::CONSORTIUM['ssid'])) . " ";
87
+                $out .= sprintf(_("In addition to <strong>%s</strong> the installer will also configure access to the following networks:"), implode(', ', \config\ConfAssistant::CONSORTIUM['ssid']))." ";
88 88
             } else {
89
-                $out .= sprintf(_("In addition to <strong>%s</strong> the installer will also configure access to:"), implode(', ', \config\ConfAssistant::CONSORTIUM['ssid'])) . " ";
89
+                $out .= sprintf(_("In addition to <strong>%s</strong> the installer will also configure access to:"), implode(', ', \config\ConfAssistant::CONSORTIUM['ssid']))." ";
90 90
             }
91 91
             $iterator = 0;
92 92
             foreach ($this->attributes['internal:SSID'] as $ssid => $v) {
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
      * @return void
125 125
      */
126 126
     private function writeConfigLine($file, $prefix, $name, $text) {
127
-        $out = $prefix . $name . ' = "' . $text;
128
-        fwrite($file, wordwrap($out, 70, " \" \\\n    \"") . "\n");
127
+        $out = $prefix.$name.' = "'.$text;
128
+        fwrite($file, wordwrap($out, 70, " \" \\\n    \"")."\n");
129 129
     }
130 130
     
131 131
     /**
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         'user_cert_missing' => _("personal certificate file not found"),
165 165
         ];
166 166
         foreach ($messages as $name => $value) {
167
-            $this->writeConfigLine($file, 'Messages.', $name, $value . '"');
167
+            $this->writeConfigLine($file, 'Messages.', $name, $value.'"');
168 168
         }
169 169
         \core\common\Entity::outOfThePotatoes();
170 170
     }
@@ -208,39 +208,39 @@  discard block
 block discarded – undo
208 208
         }
209 209
 
210 210
         if ($outerId !== NULL) {
211
-            $configRaw['anonymous_identity'] = '"' . $outerId . '"';
211
+            $configRaw['anonymous_identity'] = '"'.$outerId.'"';
212 212
         }
213 213
 
214 214
         if (!empty($this->attributes['internal:realm'][0])) {
215 215
            $config['user_realm'] = $this->attributes['internal:realm'][0];
216 216
         }
217 217
         
218
-        if(!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) {
218
+        if (!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) {
219 219
             $configRaw['hint_user_input'] = "True";
220 220
         }
221 221
         
222
-        if(!empty($this->attributes['internal:verify_userinput_suffix'][0]) && $this->attributes['internal:verify_userinput_suffix'][0] == 1) {
222
+        if (!empty($this->attributes['internal:verify_userinput_suffix'][0]) && $this->attributes['internal:verify_userinput_suffix'][0] == 1) {
223 223
             $configRaw['verify_user_realm_input'] = "True";
224 224
         }
225 225
         
226 226
         foreach ($config as $name => $value) {
227
-            $this->writeConfigLine($file, 'Config.', $name, $value . '"');
227
+            $this->writeConfigLine($file, 'Config.', $name, $value.'"');
228 228
         }
229 229
         
230 230
         foreach ($configRaw as $name => $value) {
231
-            fwrite($file, 'Config.' . $name . ' = ' . $value . "\n");
231
+            fwrite($file, 'Config.'.$name.' = '.$value."\n");
232 232
         }
233 233
         
234 234
         if ($tou === '') {
235
-            fwrite($file, 'Config.tou = ""' . "\n");
235
+            fwrite($file, 'Config.tou = ""'."\n");
236 236
         } else {
237
-            fwrite($file, 'Config.tou = """' . $tou . '"""' . "\n");
237
+            fwrite($file, 'Config.tou = """'.$tou.'"""'."\n");
238 238
         }
239 239
         
240
-        fwrite($file, 'Config.CA = """' . $this->mkCAfile() . '"""' . "\n");
240
+        fwrite($file, 'Config.CA = """'.$this->mkCAfile().'"""'."\n");
241 241
         $sbUserFile = $this->mkSbUserFile();
242 242
         if ($sbUserFile !== '') {
243
-            fwrite($file, 'Config.sb_user_file = """' . $sbUserFile . '"""' . "\n");
243
+            fwrite($file, 'Config.sb_user_file = """'.$sbUserFile.'"""'."\n");
244 244
         }
245 245
     }
246 246
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
             }
293 293
             $out .= "'DNS:$oneServer'";
294 294
         }
295
-        return "[" . $out. "]";
295
+        return "[".$out."]";
296 296
     }
297 297
 
298 298
     /**
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         foreach ($ssids as $ssid => $cipher) {
307 307
             $outArray[] = "'$ssid'";
308 308
         }
309
-        return '[' . implode(', ', $outArray) . ']';
309
+        return '['.implode(', ', $outArray).']';
310 310
     }
311 311
     
312 312
     /**
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                 $outArray[] = "'$ssid'";
323 323
             }
324 324
         }
325
-        return '[' . implode(', ', $outArray) . ']';
325
+        return '['.implode(', ', $outArray).']';
326 326
     }
327 327
     
328 328
     /**
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      * 
331 331
      * @return string
332 332
      */
333
-    private function mkCAfile(){
333
+    private function mkCAfile() {
334 334
         $out = '';
335 335
         $cAlist = $this->attributes['internal:CAs'][0];
336 336
         foreach ($cAlist as $oneCa) {
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
      */
347 347
     private function mkIntro() {
348 348
         \core\common\Entity::intoThePotatoes();
349
-        $out = _("This installer has been prepared for {0}") . '\n\n' . _("More information and comments:") . '\n\nEMAIL: {1}\nWWW: {2}\n\n' .
349
+        $out = _("This installer has been prepared for {0}").'\n\n'._("More information and comments:").'\n\nEMAIL: {1}\nWWW: {2}\n\n'.
350 350
             _("Installer created with software from the GEANT project.");
351 351
         \core\common\Entity::outOfThePotatoes();
352 352
         return $out;
Please login to merge, or discard this patch.
devices/test_module/DeviceTestModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
      */
139 139
     private function zipInstaller() {
140 140
         // one can always access $this->attributes to check things
141
-        $fileName = $this->installerBasename . '.zip';
142
-        $output = system('zip -q ' . $fileName . ' *');
141
+        $fileName = $this->installerBasename.'.zip';
142
+        $output = system('zip -q '.$fileName.' *');
143 143
         if ($output === FALSE) {
144 144
             $this->loggerInstance->debug(2, "unable to zip the installer\n");
145 145
         }
Please login to merge, or discard this patch.
devices/redirect_dev/DeviceRedirectDev.php 2 patches
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 DeviceRedirectDev 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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     final public function __construct() {
31 31
         parent::__construct();
32 32
       $this->setSupportedEapMethods([\core\common\EAP::EAPTYPE_NONE]);
33
-      $this->loggerInstance->debug(4,"RedirectEx called");
33
+      $this->loggerInstance->debug(4, "RedirectEx called");
34 34
     }
35 35
     
36 36
     /**
Please login to merge, or discard this patch.