Passed
Push — release_2_0 ( 7f8109...1d6b3a )
by Tomasz
10:21
created
devices/ms/Device_W8_10.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $this->caArray = $this->getAttribute('internal:CAs')[0];
65 65
         $outerId = $this->determineOuterIdString();
66 66
         $this->useAnon = $outerId === NULL ? FALSE : TRUE;
67
-        $this->servers = empty($this->attributes['eap:server_name']) ? '' :  implode(';', $this->attributes['eap:server_name']);
67
+        $this->servers = empty($this->attributes['eap:server_name']) ? '' : implode(';', $this->attributes['eap:server_name']);
68 68
         $allSSID = $this->attributes['internal:SSID'];
69 69
         $delSSIDs = $this->attributes['internal:remove_SSID'];
70 70
         $this->prepareInstallerLang();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $delProfiles[] = $ssid;
78 78
             }
79 79
             if ($cipher == 'TKIP') {
80
-                $delProfiles[] = $ssid . ' (TKIP)';
80
+                $delProfiles[] = $ssid.' (TKIP)';
81 81
             }
82 82
         }
83 83
         $windowsProfile = [];
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $iterator = 0;
86 86
         foreach ($allSSID as $ssid => $cipher) {
87 87
             if ($cipher == 'TKIP') {
88
-                $windowsProfile[$iterator] = $this->writeWLANprofile($ssid . ' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator);
88
+                $windowsProfile[$iterator] = $this->writeWLANprofile($ssid.' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator);
89 89
                 $iterator++;
90 90
             }
91 91
             $windowsProfile[$iterator] = $this->writeWLANprofile($ssid, $ssid, 'WPA2', 'AES', $eapConfig, $iterator);
@@ -93,15 +93,15 @@  discard block
 block discarded – undo
93 93
         }
94 94
         if ($this->device_id !== 'w8') {
95 95
             $roamingPartner = 1;
96
-            $this->loggerInstance->debug(4,$this->attributes['internal:consortia'],"CNNN:\n","\n");
96
+            $this->loggerInstance->debug(4, $this->attributes['internal:consortia'], "CNNN:\n", "\n");
97 97
             foreach ($this->attributes['internal:consortia'] as $oneCons) {
98
-                $this->loggerInstance->debug(4,$oneCons, "CONS0:", "\n");
98
+                $this->loggerInstance->debug(4, $oneCons, "CONS0:", "\n");
99 99
                 $knownOiName = array_search($oneCons, CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-consortium-oi']);
100 100
                 if ($knownOiName === FALSE) { // a custom RCOI as set by the IdP admin; do not use the term "eduroam" in that one!
101
-                    $knownOiName = $this->attributes['general:instname'][0] . " "._("Roaming Partner") . " $roamingPartner";
101
+                    $knownOiName = $this->attributes['general:instname'][0]." "._("Roaming Partner")." $roamingPartner";
102 102
                     $roamingPartner++;
103 103
                 }
104
-                $this->loggerInstance->debug(4,$knownOiName, "CONS1:", "\n");
104
+                $this->loggerInstance->debug(4, $knownOiName, "CONS1:", "\n");
105 105
                 $ssid = 'cat-passpoint-profile';
106 106
                 $windowsProfile[$iterator] = $this->writeWLANprofile($knownOiName, $ssid, 'WPA2', 'AES', $eapConfig, $iterator, $oneCons);
107 107
                 $iterator++;
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
         if (empty($this->attributes['internal:realm'][0])) {
152 152
             $retval .= CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-domainname-fallback'];
153 153
         } else {
154
-            $retval .=  $this->attributes['internal:realm'][0];
154
+            $retval .= $this->attributes['internal:realm'][0];
155 155
         }
156 156
         $retval .= '</DomainName>';
157
-        $retval .= '<RoamingConsortium><OUI>' . $oi .
157
+        $retval .= '<RoamingConsortium><OUI>'.$oi.
158 158
             '</OUI></RoamingConsortium>';
159
-        $retval .=  '</Hotspot2>';
159
+        $retval .= '</Hotspot2>';
160 160
         return($retval);
161 161
     }
162 162
     
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
         $profileFileCont = '<EAPConfig><EapHostConfig xmlns="http://www.microsoft.com/provisioning/EapHostConfig">
166 166
 <EapMethod>
167 167
 ';
168
-        $profileFileCont .= '<Type xmlns="http://www.microsoft.com/provisioning/EapCommon">' .
169
-                $this->selectedEap["OUTER"] . '</Type>
168
+        $profileFileCont .= '<Type xmlns="http://www.microsoft.com/provisioning/EapCommon">'.
169
+                $this->selectedEap["OUTER"].'</Type>
170 170
 <VendorId xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorId>
171 171
 <VendorType xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorType>
172
-<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId . '</AuthorId>
172
+<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId.'</AuthorId>
173 173
 </EapMethod>
174 174
 ';
175 175
         return($profileFileCont);
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
 <eapTls:ServerValidation>
181 181
 <eapTls:DisableUserPromptForServerValidation>true</eapTls:DisableUserPromptForServerValidation>
182 182
 ';
183
-        $profileFileCont .= '<eapTls:ServerNames>' . $this->servers . '</eapTls:ServerNames>';
183
+        $profileFileCont .= '<eapTls:ServerNames>'.$this->servers.'</eapTls:ServerNames>';
184 184
         foreach ($this->caArray as $certAuthority) {
185 185
             if ($certAuthority['root']) {
186
-                $profileFileCont .= "<eapTls:TrustedRootCA>" . $certAuthority['sha1'] . "</eapTls:TrustedRootCA>\n";
186
+                $profileFileCont .= "<eapTls:TrustedRootCA>".$certAuthority['sha1']."</eapTls:TrustedRootCA>\n";
187 187
             }
188 188
         }
189 189
         $profileFileCont .= '</eapTls:ServerValidation>
@@ -195,10 +195,10 @@  discard block
 block discarded – undo
195 195
         $profileFileCont = '
196 196
         <ServerValidation>
197 197
 ';
198
-        $profileFileCont .= '<ServerNames>' . $this->servers . '</ServerNames> ';
198
+        $profileFileCont .= '<ServerNames>'.$this->servers.'</ServerNames> ';
199 199
         foreach ($this->caArray as $certAuthority) {
200 200
             if ($certAuthority['root']) {
201
-                $profileFileCont .= "<TrustedRootCAHash>" . chunk_split($certAuthority['sha1'], 2, ' ') . "</TrustedRootCAHash>\n";
201
+                $profileFileCont .= "<TrustedRootCAHash>".chunk_split($certAuthority['sha1'], 2, ' ')."</TrustedRootCAHash>\n";
202 202
             }
203 203
         }
204 204
         $profileFileCont .= '<DisablePrompt>true</DisablePrompt>
@@ -230,10 +230,10 @@  discard block
 block discarded – undo
230 230
         $profileFileCont = '
231 231
         <ServerValidation>
232 232
 <DisableUserPromptForServerValidation>true</DisableUserPromptForServerValidation>
233
-<ServerNames>' . $this->servers . '</ServerNames>';
233
+<ServerNames>' . $this->servers.'</ServerNames>';
234 234
         foreach ($this->caArray as $certAuthority) {
235 235
             if ($certAuthority['root']) {
236
-                $profileFileCont .= "<TrustedRootCA>" . $certAuthority['sha1'] . "</TrustedRootCA>\n";
236
+                $profileFileCont .= "<TrustedRootCA>".$certAuthority['sha1']."</TrustedRootCA>\n";
237 237
             }
238 238
         }
239 239
         $profileFileCont .= '</ServerValidation>
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         if ($this->useAnon) {
290 290
             $profileFileCont .= '<IdentityPrivacy>true</IdentityPrivacy>
291 291
 ';
292
-            $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>
292
+            $profileFileCont .= '<AnonymousIdentity>'.$this->outerId.'</AnonymousIdentity>
293 293
                 ';
294 294
         } else {
295 295
             $profileFileCont .= '<IdentityPrivacy>false</IdentityPrivacy>
@@ -306,10 +306,10 @@  discard block
 block discarded – undo
306 306
         $profileFileCont = '
307 307
 <Config xmlns="http://www.microsoft.com/provisioning/EapHostConfig">
308 308
 <EAPIdentityProviderList xmlns="urn:ietf:params:xml:ns:yang:ietf-eap-metadata">
309
-<EAPIdentityProvider ID="' . $this->deviceUUID . '" namespace="urn:UUID">
309
+<EAPIdentityProvider ID="' . $this->deviceUUID.'" namespace="urn:UUID">
310 310
 
311 311
 <ProviderInfo>
312
-<DisplayName>' . $this->translateString($this->attributes['general:instname'][0], $this->codePage) . '</DisplayName>
312
+<DisplayName>' . $this->translateString($this->attributes['general:instname'][0], $this->codePage).'</DisplayName>
313 313
 </ProviderInfo>
314 314
 <AuthenticationMethods>
315 315
 <AuthenticationMethod>
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             if ($this->outerUser == '') {
322 322
                 $profileFileCont .= '<AnonymousIdentity>@</AnonymousIdentity>';
323 323
             } else {
324
-                $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>';
324
+                $profileFileCont .= '<AnonymousIdentity>'.$this->outerId.'</AnonymousIdentity>';
325 325
             }
326 326
         }
327 327
         $profileFileCont .= '</ClientSideCredential>
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
         $profileFileCont .= $this->glTtlsServerValidation();
330 330
         $profileFileCont .= '
331 331
 <InnerAuthenticationMethod>
332
-<NonEAPAuthMethod>' . \core\common\EAP::eapDisplayName($this->selectedEap)['INNER'] . '</NonEAPAuthMethod>
332
+<NonEAPAuthMethod>' . \core\common\EAP::eapDisplayName($this->selectedEap)['INNER'].'</NonEAPAuthMethod>
333 333
 </InnerAuthenticationMethod>
334 334
 <VendorSpecific>
335 335
 <SessionResumption>false</SessionResumption>
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 <UseWinLogonCredentials>false</UseWinLogonCredentials>
361 361
 </EapType>
362 362
 </Eap>
363
-<EnableQuarantineChecks>' . $nea . '</EnableQuarantineChecks>
363
+<EnableQuarantineChecks>' . $nea.'</EnableQuarantineChecks>
364 364
 <RequireCryptoBinding>false</RequireCryptoBinding>
365 365
 ';
366 366
         if ($this->useAnon) {
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
                 $profileFileCont .= '<AnonymousUserName/>
373 373
 ';
374 374
             } else {
375
-                $profileFileCont .= '<AnonymousUserName>' . $this->outerUser . '</AnonymousUserName>
375
+                $profileFileCont .= '<AnonymousUserName>'.$this->outerUser.'</AnonymousUserName>
376 376
                 ';
377 377
             }
378 378
             $profileFileCont .= '</IdentityPrivacy>
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
     private function prepareEapConfig() {
403 403
         if ($this->useAnon) {
404 404
             $this->outerUser = $this->attributes['internal:anon_local_value'][0];
405
-            $this->outerId = $this->outerUser . '@' . $this->attributes['internal:realm'][0];
405
+            $this->outerId = $this->outerUser.'@'.$this->attributes['internal:realm'][0];
406 406
         }
407 407
 
408 408
         $profileFileCont = $this->eapConfigHeader();
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
             default:
428 428
                 break;
429 429
         }
430
-        return(['win' => $profileFileCont . '</EapHostConfig></EAPConfig>']);
430
+        return(['win' => $profileFileCont.'</EapHostConfig></EAPConfig>']);
431 431
     }
432 432
 
433 433
     /**
@@ -444,10 +444,10 @@  discard block
 block discarded – undo
444 444
     private function writeWLANprofile($wlanProfileName, $ssid, $auth, $encryption, $eapConfig, $profileNumber, $oi = '') {
445 445
         $profileFileCont = '<?xml version="1.0"?>
446 446
 <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
447
-<name>' . $wlanProfileName . '</name>
447
+<name>' . $wlanProfileName.'</name>
448 448
 <SSIDConfig>
449 449
 <SSID>
450
-<name>' . $ssid . '</name>
450
+<name>' . $ssid.'</name>
451 451
 </SSID>
452 452
 <nonBroadcast>true</nonBroadcast>
453 453
 </SSIDConfig>';
@@ -459,8 +459,8 @@  discard block
 block discarded – undo
459 459
 <MSM>
460 460
 <security>
461 461
 <authEncryption>
462
-<authentication>' . $auth . '</authentication>
463
-<encryption>' . $encryption . '</encryption>
462
+<authentication>' . $auth.'</authentication>
463
+<encryption>' . $encryption.'</encryption>
464 464
 <useOneX>true</useOneX>
465 465
 </authEncryption>
466 466
 ';
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
             mkdir('w8');
488 488
         }
489 489
         $xmlFname = "w8/wlan_prof-$profileNumber.xml";
490
-        file_put_contents($xmlFname, $profileFileCont . $eapConfig['win'] . $closing);
490
+        file_put_contents($xmlFname, $profileFileCont.$eapConfig['win'].$closing);
491 491
         $this->loggerInstance->debug(2, "Installer has been written into directory $this->FPATH\n");
492 492
         $hs20 = $oi == '' ? 0 : 1;
493 493
         return("\"$wlanProfileName\" \"$encryption\" $hs20");
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
             mkdir('w8');
516 516
         }
517 517
         $xmlFname = "w8/lan_prof.xml";
518
-        file_put_contents($xmlFname, $profileFileCont . $eapConfig['win'] . $closing);
518
+        file_put_contents($xmlFname, $profileFileCont.$eapConfig['win'].$closing);
519 519
         $this->loggerInstance->debug(2, "Installer has been written into directory $this->FPATH\n");
520 520
     }
521 521
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
         }
537 537
         foreach ($caArray as $certAuthority) {
538 538
             $store = $certAuthority['root'] ? "root" : "ca";
539
-            $fcontentsCerts .= '!insertmacro install_ca_cert "' . $certAuthority['file'] . '" "' . $certAuthority['sha1'] . '" "' . $store . "\"\n";
539
+            $fcontentsCerts .= '!insertmacro install_ca_cert "'.$certAuthority['file'].'" "'.$certAuthority['sha1'].'" "'.$store."\"\n";
540 540
         }
541 541
         fwrite($fileHandleCerts, $fcontentsCerts);
542 542
         fclose($fileHandleCerts);
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
     private function writeMainNSH($eap, $attr) {
546 546
         $this->loggerInstance->debug(4, "writeMainNSH");
547 547
         $this->loggerInstance->debug(4, $attr);
548
-        $this->loggerInstance->debug(4, "Device_id = " . $this->device_id . "\n");
548
+        $this->loggerInstance->debug(4, "Device_id = ".$this->device_id."\n");
549 549
         $fcontents = "!define W8\n";
550 550
         if ($this->device_id == 'w10') {
551 551
             $fcontents .= "!define W10\n";
@@ -575,8 +575,8 @@  discard block
 block discarded – undo
575 575
         if ($eap == \core\common\EAP::EAPTYPE_SILVERBULLET) {
576 576
             $fcontents .= "!define SILVERBULLET\n";
577 577
         }
578
-        $fcontents .= '!define ' . $eapStr;
579
-        $fcontents .= "\n" . '!define EXECLEVEL "' . $execLevel . '"';
578
+        $fcontents .= '!define '.$eapStr;
579
+        $fcontents .= "\n".'!define EXECLEVEL "'.$execLevel.'"';
580 580
         $fcontents .= $this->writeNsisDefines($attr);
581 581
         file_put_contents('main.nsh', $fcontents);
582 582
     }
Please login to merge, or discard this patch.
devices/ms/Device_Vista7.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 $delProfiles[] = $ssid;
71 71
             }
72 72
             if ($cipher == 'TKIP') {
73
-                $delProfiles[] = $ssid . ' (TKIP)';
73
+                $delProfiles[] = $ssid.' (TKIP)';
74 74
             }
75 75
         }
76 76
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             $iterator = 0;
81 81
             foreach ($allSSID as $ssid => $cipher) {
82 82
                 if ($cipher == 'TKIP') {
83
-                    $windowsProfile[$iterator] = $this->writeWLANprofile($ssid . ' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator);
83
+                    $windowsProfile[$iterator] = $this->writeWLANprofile($ssid.' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator);
84 84
                     $iterator++;
85 85
                 }
86 86
                 $windowsProfile[$iterator] = $this->writeWLANprofile($ssid, $ssid, 'WPA2', 'AES', $eapConfig, $iterator);
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
         $profileFileCont = '<EAPConfig><EapHostConfig xmlns="http://www.microsoft.com/provisioning/EapHostConfig">
143 143
 <EapMethod>
144 144
 <Type xmlns="http://www.microsoft.com/provisioning/EapCommon">' .
145
-                $this->selectedEap["OUTER"] . '</Type>
145
+                $this->selectedEap["OUTER"].'</Type>
146 146
 <VendorId xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorId>
147 147
 <VendorType xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorType>
148
-<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId . '</AuthorId>
148
+<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId.'</AuthorId>
149 149
 </EapMethod>
150 150
 ';
151 151
 
@@ -158,9 +158,9 @@  discard block
 block discarded – undo
158 158
             $profileFileCont .= '
159 159
 <Config xmlns="http://www.microsoft.com/provisioning/EapHostConfig">
160 160
 <EAPIdentityProviderList xmlns="urn:ietf:params:xml:ns:yang:ietf-eap-metadata">
161
-<EAPIdentityProvider ID="' . $this->deviceUUID . '" namespace="urn:UUID">
161
+<EAPIdentityProvider ID="' . $this->deviceUUID.'" namespace="urn:UUID">
162 162
 <ProviderInfo>
163
-<DisplayName>' . $this->translateString($attr['general:instname'][0], $this->codePage) . '</DisplayName>
163
+<DisplayName>' . $this->translateString($attr['general:instname'][0], $this->codePage).'</DisplayName>
164 164
 </ProviderInfo>
165 165
 <AuthenticationMethods>
166 166
 <AuthenticationMethod>
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 if ($outerUser == '') {
173 173
                     $profileFileCont .= '<AnonymousIdentity>@</AnonymousIdentity>';
174 174
                 } else {
175
-                    $profileFileCont .= '<AnonymousIdentity>' . $outerUser . '@' . $realm . '</AnonymousIdentity>';
175
+                    $profileFileCont .= '<AnonymousIdentity>'.$outerUser.'@'.$realm.'</AnonymousIdentity>';
176 176
                 }
177 177
             }
178 178
             $profileFileCont .= '</ClientSideCredential>
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $profileFileCont .= '
191 191
 </ServerSideCredential>
192 192
 <InnerAuthenticationMethod>
193
-<NonEAPAuthMethod>' .$innerMethod. '</NonEAPAuthMethod>
193
+<NonEAPAuthMethod>' .$innerMethod.'</NonEAPAuthMethod>
194 194
 </InnerAuthenticationMethod>
195 195
 <VendorSpecific>
196 196
 <SessionResumption>false</SessionResumption>
@@ -215,11 +215,11 @@  discard block
 block discarded – undo
215 215
 </eapTls:CredentialsSource>
216 216
 <eapTls:ServerValidation>
217 217
 <eapTls:DisableUserPromptForServerValidation>true</eapTls:DisableUserPromptForServerValidation>
218
-<eapTls:ServerNames>' . $servers . '</eapTls:ServerNames>';
218
+<eapTls:ServerNames>' . $servers.'</eapTls:ServerNames>';
219 219
             if ($caArray) {
220 220
                 foreach ($caArray as $certAuthority) {
221 221
                     if ($certAuthority['root']) {
222
-                        $profileFileCont .= "<eapTls:TrustedRootCA>" . $certAuthority['sha1'] . "</eapTls:TrustedRootCA>\n";
222
+                        $profileFileCont .= "<eapTls:TrustedRootCA>".$certAuthority['sha1']."</eapTls:TrustedRootCA>\n";
223 223
                     }
224 224
                 }
225 225
             }
@@ -251,11 +251,11 @@  discard block
 block discarded – undo
251 251
 <msPeap:EapType>
252 252
 <msPeap:ServerValidation>
253 253
 <msPeap:DisableUserPromptForServerValidation>true</msPeap:DisableUserPromptForServerValidation> 
254
-<msPeap:ServerNames>' . $servers . '</msPeap:ServerNames>';
254
+<msPeap:ServerNames>' . $servers.'</msPeap:ServerNames>';
255 255
             if ($caArray) {
256 256
                 foreach ($caArray as $certAuthority) {
257 257
                     if ($certAuthority['root']) {
258
-                        $vistaExt .= "<msPeap:TrustedRootCA>" . $certAuthority['sha1'] . "</msPeap:TrustedRootCA>\n";
258
+                        $vistaExt .= "<msPeap:TrustedRootCA>".$certAuthority['sha1']."</msPeap:TrustedRootCA>\n";
259 259
                     }
260 260
                 }
261 261
             }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 <msChapV2:UseWinLogonCredentials>false</msChapV2:UseWinLogonCredentials> 
269 269
 </msChapV2:EapType>
270 270
 </baseEap:Eap>
271
-<msPeap:EnableQuarantineChecks>' . $nea . '</msPeap:EnableQuarantineChecks>
271
+<msPeap:EnableQuarantineChecks>' . $nea.'</msPeap:EnableQuarantineChecks>
272 272
 <msPeap:RequireCryptoBinding>false</msPeap:RequireCryptoBinding>
273 273
 </msPeap:EapType>
274 274
 </baseEap:Eap>
@@ -280,11 +280,11 @@  discard block
 block discarded – undo
280 280
 <EapType xmlns="http://www.microsoft.com/provisioning/MsPeapConnectionPropertiesV1">
281 281
 <ServerValidation>
282 282
 <DisableUserPromptForServerValidation>true</DisableUserPromptForServerValidation>
283
-<ServerNames>' . $servers . '</ServerNames>';
283
+<ServerNames>' . $servers.'</ServerNames>';
284 284
             if ($caArray) {
285 285
                 foreach ($caArray as $certAuthority) {
286 286
                     if ($certAuthority['root']) {
287
-                        $w7Ext .= "<TrustedRootCA>" . $certAuthority['sha1'] . "</TrustedRootCA>\n";
287
+                        $w7Ext .= "<TrustedRootCA>".$certAuthority['sha1']."</TrustedRootCA>\n";
288 288
                     }
289 289
                 }
290 290
             }
@@ -297,14 +297,14 @@  discard block
 block discarded – undo
297 297
 <UseWinLogonCredentials>false</UseWinLogonCredentials> 
298 298
 </EapType>
299 299
 </Eap>
300
-<EnableQuarantineChecks>' . $nea . '</EnableQuarantineChecks>
300
+<EnableQuarantineChecks>' . $nea.'</EnableQuarantineChecks>
301 301
 <RequireCryptoBinding>false</RequireCryptoBinding>
302 302
 ';
303 303
             if ($useAnon) {
304 304
                 $w7Ext .= '<PeapExtensions>
305 305
 <IdentityPrivacy xmlns="http://www.microsoft.com/provisioning/MsPeapConnectionPropertiesV2">
306 306
 <EnableIdentityPrivacy>true</EnableIdentityPrivacy>
307
-<AnonymousUserName>' . $outerUser . '</AnonymousUserName>
307
+<AnonymousUserName>' . $outerUser.'</AnonymousUserName>
308 308
 </IdentityPrivacy>
309 309
 </PeapExtensions>
310 310
             ';
@@ -322,8 +322,8 @@  discard block
 block discarded – undo
322 322
         $profileFileContEnd = '</EapHostConfig></EAPConfig>
323 323
 ';
324 324
         $returnArray = [];
325
-        $returnArray['vista'] = $profileFileCont . $vistaExt . $profileFileContEnd;
326
-        $returnArray['w7'] = $profileFileCont . $w7Ext . $profileFileContEnd;
325
+        $returnArray['vista'] = $profileFileCont.$vistaExt.$profileFileContEnd;
326
+        $returnArray['w7'] = $profileFileCont.$w7Ext.$profileFileContEnd;
327 327
         return $returnArray;
328 328
     }
329 329
 
@@ -342,10 +342,10 @@  discard block
 block discarded – undo
342 342
     private function writeWLANprofile($wlanProfileName, $ssid, $auth, $encryption, $eapConfig, $profileNumber) {
343 343
         $profileFileCont = '<?xml version="1.0"?>
344 344
 <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
345
-<name>' . $wlanProfileName . '</name>
345
+<name>' . $wlanProfileName.'</name>
346 346
 <SSIDConfig>
347 347
 <SSID>
348
-<name>' . $ssid . '</name>
348
+<name>' . $ssid.'</name>
349 349
 </SSID>
350 350
 <nonBroadcast>true</nonBroadcast>
351 351
 </SSIDConfig>
@@ -355,8 +355,8 @@  discard block
 block discarded – undo
355 355
 <MSM>
356 356
 <security>
357 357
 <authEncryption>
358
-<authentication>' . $auth . '</authentication>
359
-<encryption>' . $encryption . '</encryption>
358
+<authentication>' . $auth.'</authentication>
359
+<encryption>' . $encryption.'</encryption>
360 360
 <useOneX>true</useOneX>
361 361
 </authEncryption>
362 362
 ';
@@ -386,9 +386,9 @@  discard block
 block discarded – undo
386 386
             mkdir('vista');
387 387
         }
388 388
         $vistaFileName = "vista/wlan_prof-$profileNumber.xml";
389
-        file_put_contents($vistaFileName, $profileFileCont . $eapConfig['vista'] . $closing);
389
+        file_put_contents($vistaFileName, $profileFileCont.$eapConfig['vista'].$closing);
390 390
         $sevenFileName = "w7/wlan_prof-$profileNumber.xml";
391
-        file_put_contents($sevenFileName, $profileFileCont . $eapConfig['w7'] . $closing);
391
+        file_put_contents($sevenFileName, $profileFileCont.$eapConfig['w7'].$closing);
392 392
         $this->loggerInstance->debug(2, "Installer has been written into directory $this->FPATH\n");
393 393
         $this->loggerInstance->debug(4, "WLAN_Profile:$wlanProfileName:$encryption\n");
394 394
         // the last 0 argument means that we are not using any HS20 features
@@ -425,8 +425,8 @@  discard block
 block discarded – undo
425 425
             mkdir('vista');
426 426
         }
427 427
         
428
-        file_put_contents("vista/lan_prof.xml", $profileFileCont . $eapConfig['vista'] . $closing);
429
-        file_put_contents("w7/lan_prof.xml", $profileFileCont . $eapConfig['w7'] . $closing);
428
+        file_put_contents("vista/lan_prof.xml", $profileFileCont.$eapConfig['vista'].$closing);
429
+        file_put_contents("w7/lan_prof.xml", $profileFileCont.$eapConfig['w7'].$closing);
430 430
         
431 431
     }
432 432
 
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
     private function writeMainNSH($eap, $attr) {
441 441
         $this->loggerInstance->debug(4, "writeMainNSH");
442 442
         $this->loggerInstance->debug(4, $attr);
443
-        $this->loggerInstance->debug(4, "MYLANG=" . $this->lang . "\n");
443
+        $this->loggerInstance->debug(4, "MYLANG=".$this->lang."\n");
444 444
 
445 445
         $eapOptions = [
446 446
             \core\common\EAP::PEAP => ['str' => 'PEAP', 'exec' => 'user'],
@@ -471,8 +471,8 @@  discard block
 block discarded – undo
471 471
         $this->loggerInstance->debug(4, "EAP_STR=$eapStr\n");
472 472
         $this->loggerInstance->debug(4, $eap);
473 473
 
474
-        $fcontents .= '!define ' . $eapStr;
475
-        $fcontents .= "\n" . '!define EXECLEVEL "' . $execLevel . '"';
474
+        $fcontents .= '!define '.$eapStr;
475
+        $fcontents .= "\n".'!define EXECLEVEL "'.$execLevel.'"';
476 476
         $fcontents .= $this->writeNsisDefines($attr);
477 477
         file_put_contents('main.nsh', $fcontents);
478 478
     }
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
         }
502 502
         foreach ($caArray as $certAuthority) {
503 503
             $store = $certAuthority['root'] ? "root" : "ca";
504
-            $contentCerts .= '!insertmacro install_ca_cert "' . $certAuthority['file'] . '" "' . $certAuthority['sha1'] . '" "' . $store . "\"\n";
504
+            $contentCerts .= '!insertmacro install_ca_cert "'.$certAuthority['file'].'" "'.$certAuthority['sha1'].'" "'.$store."\"\n";
505 505
         }
506 506
         fwrite($fileHandleCerts, $contentCerts);
507 507
         fclose($fileHandleCerts);
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
      */
517 517
     private function copyFiles($eap) {
518 518
         $this->loggerInstance->debug(4, "copyFiles start\n");
519
-        $this->loggerInstance->debug(4, "code_page=" . $this->codePage . "\n");
519
+        $this->loggerInstance->debug(4, "code_page=".$this->codePage."\n");
520 520
         $this->copyBasicFiles();
521 521
 
522 522
         switch ($eap["OUTER"]) {
Please login to merge, or discard this patch.