Passed
Push — master ( ce3375...30d070 )
by Tomasz
04:19
created
web/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,4 +26,4 @@
 block discarded – undo
26 26
 $Gui->defaultPagePrelude();
27 27
 
28 28
 // and now, serve actual data
29
-include("skins/".$Gui->skinObject->skin."/index.php");
29
+include("skins/" . $Gui->skinObject->skin . "/index.php");
Please login to merge, or discard this patch.
web/user/faq.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
 
13 13
 array_push($FAQ, [
14 14
     'title' => sprintf(_("My %s is not listed. Can't I just use any of the other ones?"), $skinObject->nomenclature_inst),
15
-    'text' => sprintf(_("No! The installers contain security settings which are specific to the %s. If you are not from that %s, your computer will detect that you are about to send your username and credential to an unauthorised server and will abort the login. Using a different %s installer is <i>guaranteed to not work</i>!"),$skinObject->nomenclature_inst,$skinObject->nomenclature_inst,$skinObject->nomenclature_inst)
15
+    'text' => sprintf(_("No! The installers contain security settings which are specific to the %s. If you are not from that %s, your computer will detect that you are about to send your username and credential to an unauthorised server and will abort the login. Using a different %s installer is <i>guaranteed to not work</i>!"), $skinObject->nomenclature_inst, $skinObject->nomenclature_inst, $skinObject->nomenclature_inst)
16 16
 ]);
17 17
 
18 18
 array_push($FAQ, [
19
-    'title' => sprintf(_("What can I do to get my %s listed?"),$skinObject->nomenclature_inst),
19
+    'title' => sprintf(_("What can I do to get my %s listed?"), $skinObject->nomenclature_inst),
20 20
     'text' => sprintf(_("Contact %s administrators at your %s and complain. It will take at most one hour of their time to get things done."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $skinObject->nomenclature_inst)
21 21
 ]);
22 22
 
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 
33 33
 if (CONFIG_CONFASSISTANT['CONSORTIUM']['name'] == "eduroam") {
34 34
     array_push($FAQ, [
35
-        'title' => sprintf(_("What is this %s thing anyway?"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
36
-        '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 6.000 hotspots! Visit <a href='http://www.eduroam.org'>the %s homepage</a> for more details."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'],CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'],CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'],CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
35
+        'title' => sprintf(_("What is this %s thing anyway?"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
36
+        '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 6.000 hotspots! Visit <a href='http://www.eduroam.org'>the %s homepage</a> for more details."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])
37 37
     ]);
38 38
 }
39 39
 
40 40
 array_push($FAQ, [
41 41
     'title' => sprintf(_("Is it safe to use %s installers?"), CONFIG['APPEARANCE']['productname']),
42
-    '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']) : ""),
42
+    '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']) : ""),
43 43
 ]);
44 44
 
45 45
 array_push($FAQ, [
Please login to merge, or discard this patch.
web/admin/action_enrollment.php 2 patches
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,14 +53,14 @@
 block discarded – undo
53 53
 }
54 54
 
55 55
 switch ($_GET['token']) {
56
-    case "SELF-REGISTER":
57
-        $token = "SELF-REGISTER";
58
-        $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW;
59
-        $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'];
60
-        break;
61
-    default:
62
-        $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING));
63
-        $checkval = $usermgmt->checkTokenValidity($token);
56
+        case "SELF-REGISTER":
57
+            $token = "SELF-REGISTER";
58
+            $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW;
59
+            $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'];
60
+            break;
61
+        default:
62
+            $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING));
63
+            $checkval = $usermgmt->checkTokenValidity($token);
64 64
 }
65 65
 
66 66
 if ($checkval < 0) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'];
60 60
         break;
61 61
     default:
62
-        $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING));
62
+        $token = $validator->token(filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING));
63 63
         $checkval = $usermgmt->checkTokenValidity($token);
64 64
 }
65 65
 
Please login to merge, or discard this patch.
core/common/Language.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,14 +84,14 @@
 block discarded – undo
84 84
             $langConverted[] = $hardSetLang;
85 85
         }
86 86
         if (!empty($_REQUEST['lang'])) {
87
-            $recoverLang = filter_input(INPUT_GET,'lang', FILTER_SANITIZE_STRING) ?? filter_input(INPUT_POST, 'lang', FILTER_SANITIZE_STRING);
87
+            $recoverLang = filter_input(INPUT_GET, 'lang', FILTER_SANITIZE_STRING) ?? filter_input(INPUT_POST, 'lang', FILTER_SANITIZE_STRING);
88 88
             $langConverted[] = $recoverLang;
89 89
         }
90 90
         if (!empty($_SESSION['language'])) {
91 91
             $langConverted[] = $_SESSION['language'];
92 92
         }
93 93
         if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
94
-            $langs = explode(",", filter_input(INPUT_SERVER,"HTTP_ACCEPT_LANGUAGE", FILTER_SANITIZE_STRING));
94
+            $langs = explode(",", filter_input(INPUT_SERVER, "HTTP_ACCEPT_LANGUAGE", FILTER_SANITIZE_STRING));
95 95
             foreach ($langs as $lang) {
96 96
                 $result = [];
97 97
                 preg_match("/(.*);+.*/", $lang, $result);
Please login to merge, or discard this patch.
web/admin/API.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
         $leftNum = (int) preg_replace($pat, $rep, $left);
41 41
         $rightNum = (int) preg_replace($pat, $rep, $right);
42 42
         return ($left != $leftNum && $right != $rightNum) ?
43
-                $leftNum - $rightNum :
44
-                strcmp($left, $right);
43
+                $leftNum - $rightNum : strcmp($left, $right);
45 44
     }
46 45
 
47 46
     
@@ -118,8 +117,8 @@  discard block
 block discarded – undo
118 117
             $therealm = "";
119 118
             $theanonid = "anonymous";
120 119
             $useAnon = FALSE;
121
-            $stringValuesFiltered = filter_input(INPUT_POST,'value', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY);
122
-            $intValuesFiltered = filter_input(INPUT_POST,'value', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY);
120
+            $stringValuesFiltered = filter_input(INPUT_POST, 'value', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY);
121
+            $intValuesFiltered = filter_input(INPUT_POST, 'value', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY);
123 122
             $pref = 0;
124 123
             foreach ($_POST['option'] as $optindex => $optname) {
125 124
                 switch ($optname) {
@@ -145,7 +144,7 @@  discard block
 block discarded – undo
145 144
                         
146 145
                         if (isset($intValuesFiltered[$optindex . "-0"])) {
147 146
                             $filteredType = $intValuesFiltered[$optindex . "-0"];
148
-                            if ($filteredType <0 || $filteredType >8) {
147
+                            if ($filteredType < 0 || $filteredType > 8) {
149 148
                                 break;
150 149
                             }
151 150
                             $newprofile->addSupportedEapMethod(new \core\common\EAP($filteredType), $pref);
Please login to merge, or discard this patch.
devices/ms/Files/common.inc 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1019,12 +1019,12 @@
 block discarded – undo
1019 1019
         $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:"));
1020 1020
         $certUsernameLength = strlen($certUsernameLabel);
1021 1021
         $labelLength = max($certPasswordLength,$certUsernameLength);
1022
-  ?>
1022
+    ?>
1023 1023
   ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>"
1024 1024
   !else
1025 1025
   <?php $certPasswordLabel = WindowsCommon::sprint_nsi(_("import password:"));
1026 1026
         $certPasswordLength = strlen($certPasswordLabel);
1027
-  ?>
1027
+    ?>
1028 1028
   !insertmacro debug_cat 4 "Unpacking SB_cert.p12"
1029 1029
   File "SB_cert.p12"
1030 1030
   nsArray::Set Delete_files "SB_cert.p12"
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
 !define MUI_HEADERIMAGE_BITMAP "cat_150.bmp"
121 121
 !define MUI_COMPONENTSPAGE_SMALLDESC
122 122
 
123
-!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>"
124
-!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi( _("Installation complete"))?>"
125
-!define FAREWELL_TEXT	"<?php WindowsCommon::echo_nsi( _("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(  _("Your system is ready."))?>"
126
-!define FAREWELL_FAIL	"<?php WindowsCommon::echo_nsi( _("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi( _("Please contact \${SUPPORT}."))?>"
123
+!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>"
124
+!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi(_("Installation complete"))?>"
125
+!define FAREWELL_TEXT	"<?php WindowsCommon::echo_nsi(_("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Your system is ready."))?>"
126
+!define FAREWELL_FAIL	"<?php WindowsCommon::echo_nsi(_("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Please contact \${SUPPORT}."))?>"
127 127
 ;--------------------------------
128 128
 ;Languages
129 129
 !insertmacro MUI_LANGUAGE "${LANG}"
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
 ;--------------------------------
132 132
 ; License file
133 133
 !ifdef LICENSE_FILE
134
-LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi( _("Accept"))?>"
134
+LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi(_("Accept"))?>"
135 135
 LicenseText "<?php WindowsCommon::echo_nsi(_("If you accept the conditions then select Accept and then click Install to continue."))?>"
136 136
 LicenseData ${LICENSE_FILE}
137 137
 !endif
138 138
 
139 139
 ;-----------------------------------
140 140
 
141
-MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi( _("Finish"))?>"
141
+MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi(_("Finish"))?>"
142 142
 ;----------------------------------
143 143
 ;  FUNCTIONS
144 144
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
 !macro install_ca_cert ca_file ca_fingerprint level
173 173
    !insertmacro debug_cat 2 "locating certificate  SHA=${ca_fingerprint} Level=${level}"
174
-   DetailPrint "<?php WindowsCommon::echo_nsi( _("searching for certificate"))?> ${ca_file}"
174
+   DetailPrint "<?php WindowsCommon::echo_nsi(_("searching for certificate"))?> ${ca_file}"
175 175
    File "${ca_file}"
176 176
    nsArray::Set Delete_files "${ca_file}"
177 177
    !insertmacro debug_cat 2 "Testing machine store root"
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
    ${EndIf}
234 234
    !insertmacro debug_cat 2 "installing certificate $TEMP\${ca_file}"
235 235
    !insertmacro debug_cat 3 "Execute: certutil -addstore -user ${level} $TEMP\${ca_file}"
236
-   DetailPrint "<?php WindowsCommon::echo_nsi( _("installing certificate"))?> ${ca_file}"
236
+   DetailPrint "<?php WindowsCommon::echo_nsi(_("installing certificate"))?> ${ca_file}"
237 237
    nsExec::Exec '"certutil" -addstore -user ${level} $TEMP\${ca_file}'
238 238
    Pop $0
239 239
    !insertmacro debug_cat 3 "certutil returned $0"
240 240
    ${If} $0 != 0
241 241
      IfSilent +2
242
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("could not install certificate"))?>  ${ca_file}"
242
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("could not install certificate"))?>  ${ca_file}"
243 243
      !insertmacro debug_cat 1 "could not install certificate ${ca_file}"
244 244
    ${EndIf}
245 245
 no_install_${ca_file}:
@@ -428,26 +428,26 @@  discard block
 block discarded – undo
428 428
   pop $R0
429 429
   ${If} $tkip_count > 0
430 430
     ${If} $aes_count > 1
431
-      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
431
+      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
432 432
     ${Else}
433
-     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
433
+     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
434 434
     ${EndIf}
435 435
   ${Else}
436 436
     StrCpy $R1 ""
437 437
   ${EndIf}
438 438
   ${If} $profile_count > 0
439
-    StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
440
-<?php WindowsCommon::echo_nsi( _("The installer will create the following wireless profiles:"))?>$\r$\n\
439
+    StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
440
+<?php WindowsCommon::echo_nsi(_("The installer will create the following wireless profiles:"))?>$\r$\n\
441 441
 $R0.\
442 442
 $R1$\r$\n$\n\
443
-<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\
443
+<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\
444 444
    EMAIL: ${SUPPORT}$\r$\n\
445 445
    WWW: ${URL}"
446 446
 ${Else}
447
-StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
448
-<?php WindowsCommon::echo_nsi( _("The installer will create the wireless profile:"))?> $R0.\
447
+StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
448
+<?php WindowsCommon::echo_nsi(_("The installer will create the wireless profile:"))?> $R0.\
449 449
 $R1$\r$\n$\n\
450
-<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\
450
+<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\
451 451
    EMAIL: ${SUPPORT}$\r$\n\
452 452
    WWW: ${URL}"
453 453
 ${EndIf}
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
   SendMessage $HEADLINE ${WM_SETFONT} $HEADLINE_FONT 0
474 474
 ;TRANSLATION
475 475
   nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 120u 46u -130u -32u "$welcome_message\
476
-$\r$\n$\r$\n<?php WindowsCommon::echo_nsi( _("Installer created with software from the GEANT project."))?>"
476
+$\r$\n$\r$\n<?php WindowsCommon::echo_nsi(_("Installer created with software from the GEANT project."))?>"
477 477
   Pop $TEXT
478 478
 
479 479
   SetCtlColors $DIALOG "" 0xffffff
@@ -585,18 +585,18 @@  discard block
 block discarded – undo
585 585
     ${If} $wireless_result == 1
586 586
       !insertmacro debug_cat 1 "wlan_test.exe did not find wireless configuration service"
587 587
       IfSilent +2
588
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
588
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
589 589
       Call Cleanup
590 590
     ${EndIf}
591 591
     ${If} $wireless_result == 2
592 592
       IfSilent +2
593
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. The installer cannot continue."))?>"
593
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. The installer cannot continue."))?>"
594 594
       Call Cleanup
595 595
     ${EndIf}
596 596
   ${Else}
597 597
     ${If} $wireless_result > 0
598 598
        IfSilent +3
599
-       MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes
599
+       MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes
600 600
        Call Cleanup
601 601
        wired_yes:
602 602
        Push 1
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
     ${If} $wired == 1
613 613
       ${If} $force_wired == 0
614 614
         IfSilent wired
615
-        MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("Do you want to enable access on wired interfaces?"))?>" IDYES wired
615
+        MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("Do you want to enable access on wired interfaces?"))?>" IDYES wired
616 616
         Push 0
617 617
         Pop $wired
618 618
       ${EndIf}
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 ;================================
648 648
 
649 649
 Function ShowInstfiles
650
-  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Profiles installation"))?>" " "
650
+  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Profiles installation"))?>" " "
651 651
 FunctionEnd
652 652
 ;================================
653 653
 ;  Check if a wireless profile exist and put it on delete list
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 
667 667
 Function FindProfile
668 668
   Pop $R8
669
-  DetailPrint "<?php WindowsCommon::echo_nsi( _("Checking for profile \$R8"))?>"
669
+  DetailPrint "<?php WindowsCommon::echo_nsi(_("Checking for profile \$R8"))?>"
670 670
   !insertmacro debug_cat 2 "Checking for profile $R8"
671 671
   !insertmacro debug_cat 3 "Exec: $Netsh wlan show profiles $R8"
672 672
   nsExec::Exec  '"$Netsh" wlan show profiles "$R8"'
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
   !insertmacro debug_cat 4 "netsh returned $0"
675 675
   ${If} $0 == 0
676 676
     !insertmacro debug_cat 1 "found profile $R8"
677
-    DetailPrint "<?php WindowsCommon::echo_nsi( _("found profile \$R8"))?>"
677
+    DetailPrint "<?php WindowsCommon::echo_nsi(_("found profile \$R8"))?>"
678 678
     Push 0
679 679
   ${Else}
680 680
     !insertmacro debug_cat 1 "profile $R8 not found"
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
     ${If} $Symantec_installed  != 0
770 770
      !insertmacro debug_cat 3 "Symantec problem"
771 771
      IfSilent +2
772
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) ?>"
772
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) ?>"
773 773
     Exec '"explorer" /select,"$EXEDIR\inst_cat.cmd"'
774 774
     Quit
775 775
 
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
 Function PFXCertificateSelect
1003 1003
   !ifndef SILVERBULLET
1004 1004
 ;TRANSLATION
1005
-!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>"
1005
+!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>"
1006 1006
 ;TRANSLATION
1007 1007
     IfSilent +2
1008 1008
   MessageBox MB_OK "<?php WindowsCommon::echo_nsi(_("Preparing to install personal certificate."))?>$\r$\n<?php WindowsCommon::echo_nsi(_("Click OK to continue"))?> "
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
         $certPasswordLength = strlen($certPasswordLabel);
1019 1019
         $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:"));
1020 1020
         $certUsernameLength = strlen($certUsernameLabel);
1021
-        $labelLength = max($certPasswordLength,$certUsernameLength);
1021
+        $labelLength = max($certPasswordLength, $certUsernameLength);
1022 1022
   ?>
1023 1023
   ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>"
1024 1024
   !else
@@ -1035,11 +1035,11 @@  discard block
 block discarded – undo
1035 1035
   !insertmacro debug_cat 3 "Vista level (Vista without Service pack): $VistaNoSP";
1036 1036
   ${If} $VistaNoSP == 0
1037 1037
     !ifdef PFX_USERNAME
1038
-       !define LABEL_LENGTH "<?php echo($labelLength*3.5)?>u"
1039
-       !define TEXT_START "<?php echo($labelLength*3.5 +5)?>u"
1038
+       !define LABEL_LENGTH "<?php echo($labelLength * 3.5)?>u"
1039
+       !define TEXT_START "<?php echo($labelLength * 3.5 + 5)?>u"
1040 1040
     !else
1041
-       !define LABEL_LENGTH "<?php echo($certPasswordLength*3.5)?>u"
1042
-       !define TEXT_START "<?php echo($certPasswordLength*3.5 +5)?>u"
1041
+       !define LABEL_LENGTH "<?php echo($certPasswordLength * 3.5)?>u"
1042
+       !define TEXT_START "<?php echo($certPasswordLength * 3.5 + 5)?>u"
1043 1043
     !endif
1044 1044
     ${NSD_CreateLabel} 0 35u ${LABEL_LENGTH} 12u "<?php echo $certPasswordLabel?>"
1045 1045
     ${NSD_CreatePassword} ${TEXT_START} 34.5u 120u 12u ""
@@ -1226,7 +1226,7 @@  discard block
 block discarded – undo
1226 1226
 Section "-start"
1227 1227
 SectionIn RO
1228 1228
 
1229
-!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Installation"))?>" "<?php WindowsCommon::echo_nsi( _("Checking for existing wireless profiles"))?>"
1229
+!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Installation"))?>" "<?php WindowsCommon::echo_nsi(_("Checking for existing wireless profiles"))?>"
1230 1230
 !ifndef PWD
1231 1231
 !include "certs.nsh"
1232 1232
 !endif
Please login to merge, or discard this patch.
web/admin/edit_idp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             sprintf(_("In this section, you define on which media %s should be configured on user devices."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</p>
138 138
           <ul>";
139 139
             echo "<li>";
140
-            echo "<strong>" . ( count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
140
+            echo "<strong>" . (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
141 141
             if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0) {
142 142
                 $ssidlist = "";
143 143
                 foreach (CONFIG_CONFASSISTANT['CONSORTIUM']['ssid'] as $ssid) {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             echo "</li>";
157 157
 
158 158
             echo "<li>";
159
-            echo "<strong>" . ( count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
159
+            echo "<strong>" . (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
160 160
             if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-consortium-oi']) > 0) {
161 161
                 $consortiumlist = "";
162 162
                 foreach (CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-consortium-oi'] as $oi) {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         <legend><strong><?php echo _("Helpdesk Details for all users"); ?></strong></legend>
187 187
         <?php
188 188
         if ($wizardStyle) {
189
-            echo "<p>"._("This section can be used to upload specific Terms of Use for your users and to display details of how your users can reach your local helpdesk.")."</p>";
189
+            echo "<p>" . _("This section can be used to upload specific Terms of Use for your users and to display details of how your users can reach your local helpdesk.") . "</p>";
190 190
             
191 191
             if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL") {
192 192
                 echo "<p>" .
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
                 "<p>" .
195 195
                 _("If you enter a value here, it will be added to the installers for all your users, and will be displayed on the download page. If you operate separate helpdesks for different user groups (we call this 'profiles'), or operate no help desk at all, you can also leave any of these fields empty and optionally specify per-profile helpdesk information later in this wizard.") . "</p>";
196 196
                 if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
197
-                echo "<p>" . sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), core\ProfileSilverbullet::PRODUCTNAME) ." " . _("This is the contact point for your end users' level 1 support.") . "</p>";
197
+                echo "<p>" . sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), core\ProfileSilverbullet::PRODUCTNAME) . " " . _("This is the contact point for your end users' level 1 support.") . "</p>";
198 198
                 }
199 199
             } elseif (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
200
-                echo "<p>". _("Providing at least a local support e-mail contact is required.")." "._("This is the contact point for your end users' level 1 support.")."</p>";
200
+                echo "<p>" . _("Providing at least a local support e-mail contact is required.") . " " . _("This is the contact point for your end users' level 1 support.") . "</p>";
201 201
             }
202 202
             
203 203
         }
Please login to merge, or discard this patch.
config/_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
 /* load sub-configs if we are dealing with those in this installation */
96 96
 
97
-if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL' ) {
97
+if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL') {
98 98
     include(ROOT . "/config/config-confassistant.php");
99 99
 }
100 100
 
Please login to merge, or discard this patch.
core/diag/RFC7585Tests.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,6 @@
 block discarded – undo
185 185
      * - RETVAL_NOTCONFIGURED; needs CONFIG_DIAGNOSTICS['RADIUSTESTS']['TLS-discoverytag']
186 186
      * - RETVAL_INVALID (at least one format error)
187 187
      * - RETVAL_OK (all fine)
188
-
189 188
      * @return int one of two RETVALs above
190 189
      */
191 190
     public function relevantNAPTRcompliance() {
Please login to merge, or discard this patch.