Passed
Push — master ( 25bb9e...ffc196 )
by Tomasz
03:13
created
devices/ms/Device_W8.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -446,8 +446,8 @@
 block discarded – undo
446 446
 
447 447
         $fcontents .= ';--------------------------------
448 448
 !define ORGANISATION "' . $this->translateString($attr['general:instname'][0], $this->codePage) . '"
449
-!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0] ) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->codePage)) . '"
450
-!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0] ) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->codePage)) . '"
449
+!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0]) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->codePage)) . '"
450
+!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0]) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->codePage)) . '"
451 451
 
452 452
 !ifdef TLS
453 453
 ';
Please login to merge, or discard this patch.
web/lib/user/TextTemplates.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 namespace web\lib\user;
12 12
 
13
-require_once(ROOT."/config/_config.php");
13
+require_once(ROOT . "/config/_config.php");
14 14
 /**
15 15
  * these constants live in the global space just to ease their use - with class
16 16
  * prefix, the names simply get too long for comfort
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
         $this->templates[WELCOME_ABOARD_BACKTODOWNLOADS] = _("Back to downloads");
71 71
         $this->templates[EDUROAM_WELCOME_ADVERTISING] = sprintf(_("we would like to warmly welcome you among the several million users of %s! From now on, you will be able to use internet access resources on thousands of universities, research centres and other places all over the globe. All of this completely free of charge!"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
72 72
         $this->templates[HEADING_TOPLEVEL_GREET] = sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']);
73
-        $this->templates[HEADING_TOPLEVEL_PURPOSE] = sprintf(_("Connect your device to %s"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
73
+        $this->templates[HEADING_TOPLEVEL_PURPOSE] = sprintf(_("Connect your device to %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
74 74
         $this->templates[FRONTPAGE_ROLLER_EASY] = sprintf(_("%s installation made easy:"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
75
-        $this->templates[FRONTPAGE_ROLLER_CUSTOMBUILT] = sprintf(_("Custom built for your %s"),$parent->nomenclature_inst);
75
+        $this->templates[FRONTPAGE_ROLLER_CUSTOMBUILT] = sprintf(_("Custom built for your %s"), $parent->nomenclature_inst);
76 76
         $this->templates[FRONTPAGE_ROLLER_SIGNEDBY] = sprintf(_("Digitally signed by the organisation that coordinates %s: %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name']);
77 77
         $this->templates[FRONTPAGE_BIGDOWNLOADBUTTON] = sprintf(_("Click here to download your %s installer"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
78 78
         $this->templates[PROFILE_SELECTION] = _("Select the user group");
Please login to merge, or discard this patch.
web/skins/eduroam2016/index.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,16 +79,16 @@  discard block
 block discarded – undo
79 79
          <?php if (empty($_REQUEST['idp'])) { ?>
80 80
               <div id="front_page">
81 81
                   <?php
82
-                         echo $divs->div_top_welcome();
83
-                         echo $divs->div_roller();
84
-                         echo $divs->div_main_button(); ?>
82
+                            echo $divs->div_top_welcome();
83
+                            echo $divs->div_roller();
84
+                            echo $divs->div_main_button(); ?>
85 85
               </div> <!-- id="front_page" -->
86 86
          <?php } ?>
87 87
             <!-- the user_page div contains all information for a given IdP, i.e. the profile selection (if multiple profiles are defined)
88 88
                  and the device selection (including the automatic OS detection ) -->
89 89
             <div id="user_page">
90 90
             <?php  echo $divs->div_institution();
91
-                   echo $divs->div_profiles(); ?>
91
+                    echo $divs->div_profiles(); ?>
92 92
                 <div id="user_info"></div> <!-- this will be filled with the profile contact information -->
93 93
                 <?php echo $divs->div_user_welcome() ?>
94 94
                 <div id="profile_redirect"> <!-- this is shown when the entire profile is redirected -->
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                         if ($operatingSystem) {
107 107
                             echo $divs->div_guess_os($operatingSystem);
108 108
                         }
109
-                         echo $divs->div_otherinstallers();
109
+                            echo $divs->div_otherinstallers();
110 110
                     ?>
111 111
                 </div> <!-- id="devices" -->
112 112
                 <input type="hidden" name="profile" id="profile_id"/>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 ?>
19 19
 
20 20
 <!-- JQuery -->
21
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script>
22
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js") ?>"></script>
23
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script>
21
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script>
22
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js") ?>"></script>
23
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script>
24 24
 <!-- JQuery -->
25 25
 
26 26
 <script type="text/javascript">
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 include("user/js/cat_js.php");
48 48
 ?>
49 49
     var loading_ico = new Image();
50
-    loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>";
50
+    loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>";
51 51
 </script>
52 52
 <?php $Gui->langObject->setTextDomain("web_user"); ?>
53 53
 <!-- DiscoJuice -->
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 <script type="text/javascript">
56 56
     var lang = "<?php echo($Gui->langObject->getLang()) ?>";
57 57
 </script>
58
-<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","discojuice/css/discojuice.css")?>" />
58
+<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "discojuice/css/discojuice.css")?>" />
59 59
 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
60
-<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" />
60
+<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" />
61 61
 </head>
62 62
 <body>
63 63
 <div id="wrap">
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
     <?php echo $divs->div_heading($visibility); ?>
66 66
     <div id="main_page">
67 67
         <div id="loading_ico">
68
-          <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Authenticating ..."/>
68
+          <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Authenticating ..."/>
69 69
         </div>
70 70
         <div id="info_overlay"> <!-- device info -->
71 71
             <div id="info_window"></div>
72
-            <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
72
+            <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
73 73
         </div>
74 74
         <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu -->
75
-          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
75
+          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
76 76
           <div id="main_menu_content"></div>
77 77
         </div>
78 78
         <div id="main_body">
Please login to merge, or discard this patch.
web/admin/overview_user.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 <td>
44 44
                 </td>
45 45
                 <td>
46
-                    <span class='tooltip' style='cursor: pointer;' onclick='alert("<?php echo str_replace('\'','\x27',str_replace('"','\x22', $_SESSION["user"])); ?>")'><?php echo _("click to display"); ?></span>
46
+                    <span class='tooltip' style='cursor: pointer;' onclick='alert("<?php echo str_replace('\'', '\x27', str_replace('"', '\x22', $_SESSION["user"])); ?>")'><?php echo _("click to display"); ?></span>
47 47
                 </td>
48 48
             </tr>
49 49
         </table>
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         }
56 56
 
57 57
         if ($user->isFederationAdmin()) {
58
-            echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . sprintf(_('Click here to manage your %ss'),$uiElements->nomenclature_fed) . "</button></form>";
58
+            echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . sprintf(_('Click here to manage your %ss'), $uiElements->nomenclature_fed) . "</button></form>";
59 59
         }
60 60
         if ($user->isSuperadmin()) {
61 61
             echo "<form action='112365365321.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . _('Click here to access the superadmin page') . "</button></form>";
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             <div style='white-space: nowrap;'>
159 159
         <form action='action_enrollment.php' method='get'><button type='submit' accept-charset='UTF-8'>
160 160
                 <input type='hidden' id='token' name='token' value='SELF-REGISTER'/>" .
161
-        sprintf(_("Register new %s!"),$uiElements->nomenclature_inst) . "
161
+        sprintf(_("Register new %s!"), $uiElements->nomenclature_inst) . "
162 162
             </button>
163 163
         </form>
164 164
         </div>";
Please login to merge, or discard this patch.
web/admin/overview_federation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     echo $deco->productheader("FEDERATION");
26 26
     ?>
27 27
     <h1>
28
-        <?php echo sprintf(_("%s Overview"),$uiElements->nomenclature_fed); ?>
28
+        <?php echo sprintf(_("%s Overview"), $uiElements->nomenclature_fed); ?>
29 29
     </h1>
30 30
 
31 31
     <div class="infobox">
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 <td>
40 40
                 </td>
41 41
                 <td>
42
-                    <span class='tooltip' style='cursor: pointer;' onclick='alert("<?php echo str_replace('\'','\x27',str_replace('"','\x22', $_SESSION["user"])); ?>")'><?php echo _("click to display"); ?></span>
42
+                    <span class='tooltip' style='cursor: pointer;' onclick='alert("<?php echo str_replace('\'', '\x27', str_replace('"', '\x22', $_SESSION["user"])); ?>")'><?php echo _("click to display"); ?></span>
43 43
                 </td>
44 44
             </tr>
45 45
         </table>
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     $mgmt = new \core\UserManagement();
50 50
 
51 51
     if (!$user->isFederationAdmin()) {
52
-        echo "<p>" . sprintf(_("You are not a %s manager."),$uiElements->nomenclature_fed) . "</p>";
52
+        echo "<p>" . sprintf(_("You are not a %s manager."), $uiElements->nomenclature_fed) . "</p>";
53 53
         echo $deco->footer();
54 54
         exit(0);
55 55
     }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                 // deployment status; need to dive into profiles for this
199 199
                 // show happy eyeballs if at least one profile is configured/showtime                    
200 200
                 echo "<td>";
201
-                echo ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_CONFIGURED ? "C" : "" ) . " " . ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_SHOWTIME ? "V" : "" );
201
+                echo ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_CONFIGURED ? "C" : "") . " " . ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_SHOWTIME ? "V" : "");
202 202
                 echo "</td>";
203 203
                 // name
204 204
                 echo "<td>
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
                 echo "<tr>
238 238
                             <td colspan='2'>
239 239
                                <strong>" .
240
-                sprintf(_("Pending invitations in your %s:"),$uiElements->nomenclature_fed) . "
240
+                sprintf(_("Pending invitations in your %s:"), $uiElements->nomenclature_fed) . "
241 241
                                </strong>
242 242
                             </td>
243 243
                          </tr>";
Please login to merge, or discard this patch.
web/diag/testTelepath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 $validator = new \web\lib\common\InputValidation();
15 15
 
16 16
 echo "<pre>";
17
-echo "Testing ".$validator->realm(filter_input(INPUT_GET,'realm', FILTER_SANITIZE_STRING))." in ".$validator->string(filter_input(INPUT_GET, 'visited', FILTER_SANITIZE_STRING));
17
+echo "Testing " . $validator->realm(filter_input(INPUT_GET, 'realm', FILTER_SANITIZE_STRING)) . " in " . $validator->string(filter_input(INPUT_GET, 'visited', FILTER_SANITIZE_STRING));
18 18
 print_r($telepath->magic());
19 19
 echo "</pre>";
20 20
\ No newline at end of file
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.
web/lib/admin/http/ValidateEmailAddress.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  * @author Zilvinas Vaira
11 11
  *
12 12
  */
13
-class ValidateEmailAddress extends AbstractAjaxCommand{
13
+class ValidateEmailAddress extends AbstractAjaxCommand {
14 14
 
15 15
     const COMMAND = 'validateemailaddress';
16 16
     const PARAM_ADDRESS = 'address';
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * @param string $commandToken
21 21
      * @param DefaultContext $context
22 22
      */
23
-    public function __construct($commandToken, $context){
23
+    public function __construct($commandToken, $context) {
24 24
         parent::__construct($commandToken, $context);
25 25
     }
26 26
     
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
      * {@inheritDoc}
30 30
      * @see \web\lib\admin\http\AbstractCommand::execute()
31 31
      */
32
-    public function execute(){
33
-        if(isset($_POST[self::PARAM_ADDRESS])){
34
-            $address = $this->parseString(filter_input(INPUT_POST,self::PARAM_ADDRESS, FILTER_SANITIZE_STRING));
32
+    public function execute() {
33
+        if (isset($_POST[self::PARAM_ADDRESS])) {
34
+            $address = $this->parseString(filter_input(INPUT_POST, self::PARAM_ADDRESS, FILTER_SANITIZE_STRING));
35 35
             $result = OutsideComm::mailAddressValidSecure($address);
36 36
             $message = $this->chooseMessage($result, $address);
37 37
             $tokenTag = new Tag('email');
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @param string $address
51 51
      * @return string
52 52
      */
53
-    private function chooseMessage($result, $address){
53
+    private function chooseMessage($result, $address) {
54 54
         $errorMessage = sprintf(_("Email address '%s' validation failed. Sending is not possible!"), $address);
55 55
         $warningMessage = sprintf(_("The invitation token is possibly going over the internet without transport encryption and can be intercepted by random third parties for email '%s'! Please consider sending the invitation token via a more secure transport!"), $address);
56 56
         switch ($result) {
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.