Test Failed
Push — master ( 2e7cb2...3dfc79 )
by Tomasz
13:22
created
web/admin/edit_user.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 
24 24
 $deco = new \web\lib\admin\PageDecoration();
25 25
 $uiElements = new web\lib\admin\UIElements();
Please login to merge, or discard this patch.
web/admin/inc/toggleRedirect.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 
24 24
 $auth = new \web\lib\admin\Authentication();
25 25
 $loggerInstance = new \core\common\Logging();
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $remaining_attribs = $my_profile->beginFlushMethodLevelAttributes($eaptype->getIntegerRep(), NULL);
86 86
         $optionParser->processSubmittedFields($my_profile, $_POST, $_FILES, $eaptype->getIntegerRep(), NULL);
87 87
     }
88
-    $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile " . $my_profile->identifier . " - device/EAP-Type settings changed");
88
+    $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile ".$my_profile->identifier." - device/EAP-Type settings changed");
89 89
     header("Location: ../overview_installers.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier");
90 90
     exit;
91 91
 }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     }
100 100
     $captiontext = sprintf(_("device <strong>%s</strong>"), $device['display']);
101 101
     $keyword = "device-specific";
102
-    $extrainput = "<input type='hidden' name='device' value='" . $device_key . "'/>";
102
+    $extrainput = "<input type='hidden' name='device' value='".$device_key."'/>";
103 103
 } elseif ($eaptype !== NULL) {
104 104
     foreach ($my_profile->getAttributes() as $attrib) {
105 105
         if (isset($attrib['eapmethod']) && $attrib['eapmethod'] == $eaptype->getArrayRep()) {
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
 
110 110
     $captiontext = sprintf(_("EAP-Type <strong>%s</strong>"), $eaptype->getPrintableRep());
111 111
     $keyword = "eap-specific";
112
-    $extrainput = "<input type='hidden' name='eaptype' value='" . $eaptype->getIntegerRep() . "'>";
112
+    $extrainput = "<input type='hidden' name='eaptype' value='".$eaptype->getIntegerRep()."'>";
113 113
 } else {
114 114
     throw new Exception("previous type checks make it impossible to reach this code path.");
115 115
 }
116 116
 ?>
117
-<p><?php echo _("Fine-tuning options for ") . $captiontext; ?></p>
117
+<p><?php echo _("Fine-tuning options for ").$captiontext; ?></p>
118 118
 <hr/>
119 119
 
120 120
 <form action='inc/toggleRedirect.inc.php?inst_id=<?php echo $my_inst->identifier; ?>&amp;profile_id=<?php echo $my_profile->identifier; ?>' method='post' accept-charset='UTF-8'><?php echo $extrainput; ?>
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     $interesting_attribs = [];
124 124
 
125 125
     foreach ($attribs as $attrib) {
126
-        if ($attrib['level'] == "Method" && preg_match('/^' . $keyword . ':/', $attrib['name'])) {
126
+        if ($attrib['level'] == "Method" && preg_match('/^'.$keyword.':/', $attrib['name'])) {
127 127
             $interesting_attribs[] = $attrib;
128 128
         }
129 129
     }
Please login to merge, or discard this patch.
web/admin/inc/logout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  */
21 21
 ?>
22 22
 <?php
23
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
23
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
24 24
 
25 25
 $auth = new \web\lib\admin\Authentication();
26 26
 
Please login to merge, or discard this patch.
web/admin/inc/click_button_js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 ?>
24 24
 
25 25
 <!-- JQuery --> 
Please login to merge, or discard this patch.
web/admin/overview_installers.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(__DIR__)) . "/config/_config.php";
22
+require_once dirname(dirname(__DIR__))."/config/_config.php";
23 23
 
24 24
 $deco = new \web\lib\admin\PageDecoration();
25 25
 $validator = new \web\lib\common\InputValidation();
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
             <?php
54 54
             foreach ($preflist as $method) {
55 55
                 $escapedMethod = $method->getIntegerRep();
56
-                echo "<th style='min-width:200px'>" . $method->getPrintableRep() . "<br/>
56
+                echo "<th style='min-width:200px'>".$method->getPrintableRep()."<br/>
57 57
                         <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&amp;profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'>
58 58
                         <input type='hidden' name='eaptype' value='$escapedMethod'>
59
-                        <button class='redirect' type='submit'>" . _("EAP-Type-specific options...") . "</button>
59
+                        <button class='redirect' type='submit'>"._("EAP-Type-specific options...")."</button>
60 60
                         </form></th>";
61 61
             }
62 62
             ?>
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
         foreach (\devices\Devices::listDevices() as $index => $description) {
73 73
 
74 74
             echo "<tr>";
75
-            echo "<td align='center'><img src='../resources/images/vendorlogo/" . $description['group'] . ".png' alt='logo'></td><td>" . $description['display'] . "<br/>
75
+            echo "<td align='center'><img src='../resources/images/vendorlogo/".$description['group'].".png' alt='logo'></td><td>".$description['display']."<br/>
76 76
                         <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&amp;profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'>
77 77
                         <input type='hidden' name='device' value='$index'>
78
-                        <button class='redirect' type='submit'>" . _("Device-specific options...") . "</button>
78
+                        <button class='redirect' type='submit'>"._("Device-specific options...")."</button>
79 79
                         </form>
80 80
                         </td>";
81 81
             $factory = new \core\DeviceFactory($index);
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
                 $footnotesForDevEapCombo = [];
85 85
                 $display_footnote = FALSE;
86 86
                 $langObject = new \core\common\Language();
87
-                $downloadform = "<form action='" . rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/') . "/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=" . $langObject->getLang() . "' method='post' accept-charset='UTF-8'>
87
+                $downloadform = "<form action='".rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/')."/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=".$langObject->getLang()."' method='post' accept-charset='UTF-8'>
88 88
                                        <input type='hidden' name='device' value='$index'/>
89 89
                                        <input type='hidden' name='generatedfor'  value='admin'/>
90
-                                       <button class='download'>" . _("Download") . "</button>
90
+                                       <button class='download'>"._("Download")."</button>
91 91
                                      ";
92 92
                 // first of all: if redirected, indicate by color
93 93
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     </table>
159 159
     <?php
160 160
     if (count($distinctFootnotes)) {
161
-        echo "<p><strong>" . _("Footnotes:") . "</strong></p><table>";
161
+        echo "<p><strong>"._("Footnotes:")."</strong></p><table>";
162 162
         foreach ($distinctFootnotes as $number => $text) {
163 163
             echo "<tr><td>($number) - </td><td>$text</td></tr>";
164 164
         }
Please login to merge, or discard this patch.
web/diag/testTelepath.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(__DIR__)) . "/config/_config.php";
22
+require_once dirname(dirname(__DIR__))."/config/_config.php";
23 23
 
24 24
 $therealm = filter_input(INPUT_GET, 'realm', FILTER_SANITIZE_STRING);
25 25
 $thevisited = filter_input(INPUT_GET, 'visited', FILTER_SANITIZE_STRING);
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     $validator = new \web\lib\common\InputValidation();
36 36
     
37 37
     echo "<pre>";
38
-    echo "Testing " . $validatedRealm . " in " . $validator->string($thevisited);
38
+    echo "Testing ".$validatedRealm." in ".$validator->string($thevisited);
39 39
     print_r($telepath->magic());
40 40
     echo "</pre>";
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
web/diag/testSociopath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(__DIR__)) . "/config/_config.php";
22
+require_once dirname(dirname(__DIR__))."/config/_config.php";
23 23
 
24 24
 $sociopath = new \core\diag\Sociopath();
25 25
 
Please login to merge, or discard this patch.
web/diag/adminQuery.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  * License: see the web/copyright.inc.php file in the file structure or
20 20
  *          <base_url>/copyright.php after deploying the software
21 21
  */
22
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 $languageInstance = new \core\common\Language();
24 24
 $languageInstance->setTextDomain("diagnostics");
25 25
 
@@ -56,119 +56,119 @@  discard block
 block discarded – undo
56 56
     $select = "<div id='sp_abuse_problem'>
57 57
 <select style='margin-left: 0px;' id='select_sp_problem'>";
58 58
     foreach ($sp_problem as $pname => $pdesc) {
59
-        $select = $select . "<option value='$pname'>$pdesc</option>\n";
59
+        $select = $select."<option value='$pname'>$pdesc</option>\n";
60 60
     }
61
-    $select = $select . "</select></div>";
61
+    $select = $select."</select></div>";
62 62
     $res = "
63 63
 <table id='sp_questions'>
64 64
     <tr>
65
-        <td>" . _("Select your problem") . "</td>
65
+        <td>" . _("Select your problem")."</td>
66 66
         <td>$select</td>
67 67
     </tr>
68 68
     <tr>
69
-        <td>" . _("What is the realm of the IdP in question?") . "</td>
69
+        <td>"._("What is the realm of the IdP in question?")."</td>
70 70
         <td>
71 71
                 <input type='text' name='admin_realm' id='admin_realm' value=''>
72 72
                 <button id='realm_in_db_admin' accesskey='R' type='button'>" .
73
-            _("Check if this value is registered") .
73
+            _("Check if this value is registered").
74 74
             "</button>
75 75
         </td>
76 76
     </tr>
77 77
     <tr class='hidden_row'>
78
-        <td>" . _("What is the authentication timestamp of the user session in question?") . "</td>
78
+        <td>" . _("What is the authentication timestamp of the user session in question?")."</td>
79 79
         <td><input type='text' id='timestamp' name='timestamp'>
80 80
             <div id='datepicker'></div>
81 81
         </td>
82 82
     </tr>
83 83
     <tr class='hidden_row'>
84
-        <td>" . _("What is the MAC address of the user session in question?") . "</td>
84
+        <td>" . _("What is the MAC address of the user session in question?")."</td>
85 85
         <td><input type='text' id='mac' name='mac'></td>
86 86
     </tr>
87 87
     <tr class='hidden_row'>
88
-        <td>" . _("Additional comments") . "</td>
88
+        <td>" . _("Additional comments")."</td>
89 89
         <td><textarea id='freetext' name='freetext' cols='60' rows='5'></textarea></td>
90 90
     </tr>
91 91
     <tr class='hidden_row'>
92
-        <td>" . _("Please specify an email address on which the IdP can contact you") . "</td>
92
+        <td>" . _("Please specify an email address on which the IdP can contact you")."</td>
93 93
         <td><input type='text' id='email' name='email'></td>
94 94
     </tr>
95 95
     <tr class='hidden_row' id='send_query_to_idp'>
96
-        <td>" . _("Now you can send your query") . "</td>
97
-        <td><button type='submit' id='submit_idp_query' name='go'>" . _("Send") . "</button></td>
96
+        <td>" . _("Now you can send your query")."</td>
97
+        <td><button type='submit' id='submit_idp_query' name='go'>" . _("Send")."</button></td>
98 98
     </tr>
99 99
  </table>";
100
-    $res = $res . $javascript;
100
+    $res = $res.$javascript;
101 101
 }
102 102
 if ($queryType == 'idp') {
103 103
     $select = "<div id='idp_reported_problem' style='display:;'>
104 104
 <select style='margin-left:0px;' id='select_idp_problem'>";
105 105
     foreach ($idp_problem as $pname => $pdesc) {
106
-        $select = $select . "<option value='$pname'>$pdesc</option>\n";
106
+        $select = $select."<option value='$pname'>$pdesc</option>\n";
107 107
     }
108
-    $select = $select . "</select></div>";
108
+    $select = $select."</select></div>";
109 109
     $res = "
110 110
 <table id='idp_questions'>
111 111
     <tr>
112
-        <td>" . _("Select your problem") . "</td>
112
+        <td>" . _("Select your problem")."</td>
113 113
         <td>$select</td>
114 114
     </tr>
115 115
     <tr>
116
-        <td>" . _("Identify the SP by one of following means") . "</td>
116
+        <td>"._("Identify the SP by one of following means")."</td>
117 117
         <td></td>
118 118
     </tr>
119 119
     <tr id='by_opname'>
120
-        <td>" . _("SP Operator-Name attribute") . "</td>
120
+        <td>" . _("SP Operator-Name attribute")."</td>
121 121
         <td><input type='text' id='opname' name='opname' value=''></td>
122 122
     </tr>
123 123
     <tr id='spmanually'>
124
-        <td>" . _("Select the SP manually:") . "</td>
124
+        <td>" . _("Select the SP manually:")."</td>
125 125
         <td>
126 126
             <div id='select_asp_country'><a href='' id='asp_countries_list'>
127
-            <span id='opnameselect'>" . _("click to select country and organisation") . "</a></span>
127
+            <span id='opnameselect'>" . _("click to select country and organisation")."</a></span>
128 128
             </div>
129 129
             <div id='select_asp_area'></div>
130 130
         </td>
131 131
     </tr>
132 132
     <tr id='asp_desc' style='display: none;'>
133
-        <td>" . _("or") . ' ' . _("at least describe the SP location") . "</td>
133
+        <td>" . _("or").' '._("at least describe the SP location")."</td>
134 134
         <td><input type='text' id='asp_location' name='asp_location' value=''></td>
135 135
     </tr>
136 136
     <tr>
137
-        <td>" . _("What is the outer ID of the user session in question?") . "</td>
137
+        <td>" . _("What is the outer ID of the user session in question?")."</td>
138 138
         <td><input type='text' id='outer_id' name='outer_id' value=''></td>
139 139
     </tr>
140 140
     <tr>
141
-        <td>" . _("What is the authentication timestamp of the user session in question?") . "</td>
141
+        <td>" . _("What is the authentication timestamp of the user session in question?")."</td>
142 142
         <td>
143 143
             <input type='text' id='timestamp' name='timestamp'>
144 144
             <div id='datepicker'></div>
145 145
         </td>
146 146
     </tr>
147 147
     <tr>
148
-        <td>" . _("What is the MAC address of the user session in question?") . "</td>
148
+        <td>" . _("What is the MAC address of the user session in question?")."</td>
149 149
         <td><input type='text' id='mac' name='mac'></td>
150 150
     </tr>
151 151
     <tr>
152
-        <td>" . _("Additional comments about the problem") . "</td>
152
+        <td>" . _("Additional comments about the problem")."</td>
153 153
         <td><textarea id='freetext' name='freetext' cols='60' rows='5'></textarea></td>
154 154
     </tr>
155 155
     <tr>
156
-        <td>" . _("Do you have any contact details by which the user wishes to be contacted by the SP?") . "</td>
156
+        <td>" . _("Do you have any contact details by which the user wishes to be contacted by the SP?")."</td>
157 157
         <td><textarea id='c_details' name='c_details' cols='60' rows='5'></textarea></td>
158 158
     </tr>
159 159
     <tr>
160
-        <td>" . _("Please specify an email address on which the SP can contact you") . "</td>
160
+        <td>" . _("Please specify an email address on which the SP can contact you")."</td>
161 161
         <td><input type='text' id='email' name='email'></td>
162 162
     </tr>
163 163
     <tr class='hidden_row' id='send_query_to_sp'>
164
-        <td>" . _("Now you can send your query") . "</td>
165
-        <td><button type='submit' id='submit_sp_query' name='go'>" . _("Send") . "</button></td>
164
+        <td>" . _("Now you can send your query")."</td>
165
+        <td><button type='submit' id='submit_sp_query' name='go'>" . _("Send")."</button></td>
166 166
     </tr>
167 167
 </table>";
168
-    $res = $res . $javascript;
168
+    $res = $res.$javascript;
169 169
 }
170 170
 if ($queryType == 'idp_send' || $queryType == 'sp_send') {
171
-    include_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
171
+    include_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
172 172
     $cat = new \core\CAT();
173 173
     $returnArray = array();
174 174
     if (count((array) $o) > 0) {
Please login to merge, or discard this patch.
web/lib/user/Skinjob.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,17 +95,17 @@
 block discarded – undo
95 95
         }
96 96
 
97 97
         // does the file exist in the current skin's directory? Has precedence
98
-        if ($submodule !== '' && file_exists(__DIR__ . "/../../skins/" . $this->skin . "/" . $submodule . $path . $filename)) {
99
-            $extrapath = "/skins/" . $this->skin . "/" . $submodule;
98
+        if ($submodule !== '' && file_exists(__DIR__."/../../skins/".$this->skin."/".$submodule.$path.$filename)) {
99
+            $extrapath = "/skins/".$this->skin."/".$submodule;
100 100
         }
101
-        elseif (file_exists(__DIR__ . "/../../skins/" . $this->skin . $path . $filename)) {
102
-            $extrapath = "/skins/" . $this->skin;
103
-        } elseif (file_exists(__DIR__ . "/../../" . $path . $filename)) {
101
+        elseif (file_exists(__DIR__."/../../skins/".$this->skin.$path.$filename)) {
102
+            $extrapath = "/skins/".$this->skin;
103
+        } elseif (file_exists(__DIR__."/../../".$path.$filename)) {
104 104
             $extrapath = "";
105 105
         } else {
106 106
             return FALSE;
107 107
         }       
108
-        return htmlspecialchars(\core\CAT::getRootUrlPath() . $extrapath . $path . $filename, ENT_QUOTES);
108
+        return htmlspecialchars(\core\CAT::getRootUrlPath().$extrapath.$path.$filename, ENT_QUOTES);
109 109
     }
110 110
 
111 111
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@
 block discarded – undo
97 97
         // does the file exist in the current skin's directory? Has precedence
98 98
         if ($submodule !== '' && file_exists(__DIR__ . "/../../skins/" . $this->skin . "/" . $submodule . $path . $filename)) {
99 99
             $extrapath = "/skins/" . $this->skin . "/" . $submodule;
100
-        }
101
-        elseif (file_exists(__DIR__ . "/../../skins/" . $this->skin . $path . $filename)) {
100
+        } elseif (file_exists(__DIR__ . "/../../skins/" . $this->skin . $path . $filename)) {
102 101
             $extrapath = "/skins/" . $this->skin;
103 102
         } elseif (file_exists(__DIR__ . "/../../" . $path . $filename)) {
104 103
             $extrapath = "";
Please login to merge, or discard this patch.