Test Failed
Branch silverbullet (05f8b4)
by Brook
05:51
created
devices/linux/Linux.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,8 +188,8 @@
 block discarded – undo
188 188
 # will be the default value prompted to the user
189 189
 
190 190
     private function printFunctions() {
191
-        $url = (isset($this->attributes['support:url'][0]) && $this->attributes['support:url'][0] ) ? $this->attributes['support:url'][0] : $this->support_url_substitute;
192
-        $support = (isset($this->attributes['support:email'][0]) && $this->attributes['support:email'][0] ) ? $this->attributes['support:email'][0] : $this->support_email_substitute;
191
+        $url = (isset($this->attributes['support:url'][0]) && $this->attributes['support:url'][0]) ? $this->attributes['support:url'][0] : $this->support_url_substitute;
192
+        $support = (isset($this->attributes['support:email'][0]) && $this->attributes['support:email'][0]) ? $this->attributes['support:email'][0] : $this->support_email_substitute;
193 193
         $out = '
194 194
 my_name=$0
195 195
 
Please login to merge, or discard this patch.
web/basic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                 }
234 234
             }
235 235
             $out .= '>' . $disp . '</option>';
236
-            $deviceRedirects .= 'redirects[' . $iterator . '] = ' . ( $oneDevice['redirect'] ? 1 : 0 ) . ';';
236
+            $deviceRedirects .= 'redirects[' . $iterator . '] = ' . ($oneDevice['redirect'] ? 1 : 0) . ';';
237 237
             $iterator++;
238 238
         }
239 239
         $out .= '</select>';
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 $loggerInstance->debug(4, "SERVER\n");
430 430
 $loggerInstance->debug(4, $_SERVER);
431 431
 ?>
432
-<?php print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp' ) . '</div>'; ?>
432
+<?php print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp') . '</div>'; ?>
433 433
         <form name="my_form" method="POST" action="<?php echo $_SERVER['SCRIPT_NAME'] ?>" accept-charset='UTF-8'>
434 434
             <img src="<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') ?>/resources/images/consortium_logo.png" style="width: 20%; padding-right:20px; padding-top:0px; float:right" alt="logo" />
435 435
 <?php
Please login to merge, or discard this patch.
devices/xml/XML.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         $objs = [];
149 149
         if ($this->langScope === 'global') {
150 150
             foreach ($attributeList['langs'] as $language => $value) {
151
-                $language = ( $language === 'C' ? 'any' : $language );
151
+                $language = ($language === 'C' ? 'any' : $language);
152 152
                 $obj = new $class_name();
153 153
                 $obj->setValue($value);
154 154
                 $obj->setAttributes(['lang' => $language]);
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 $P = $attr['profile:name']['langs'];
173 173
             }
174 174
             foreach ($instNameLangs as $language => $value) {
175
-                $language = ( $language === 'C' ? 'any' : $language );
175
+                $language = ($language === 'C' ? 'any' : $language);
176 176
                 $displayname = new DisplayName();
177 177
                 if (isset($P)) {
178 178
                     $p = isset($P[$language]) ? $P[$language] : $P['C'];
Please login to merge, or discard this patch.
devices/ms/Vista7.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -501,8 +501,8 @@
 block discarded – undo
501 501
 
502 502
         $fcontents .= ';--------------------------------
503 503
 !define ORGANISATION "' . $this->translateString($attr['general:instname'][0], $this->code_page) . '"
504
-!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0] ) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->code_page)) . '"
505
-!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0] ) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->code_page)) . '"
504
+!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0]) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->code_page)) . '"
505
+!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0]) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->code_page)) . '"
506 506
 
507 507
 !ifdef TLS
508 508
 ';
Please login to merge, or discard this patch.
devices/ms/W8.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -501,8 +501,8 @@
 block discarded – undo
501 501
 
502 502
         $fcontents .= ';--------------------------------
503 503
 !define ORGANISATION "' . $this->translateString($attr['general:instname'][0], $this->code_page) . '"
504
-!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0] ) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->code_page)) . '"
505
-!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0] ) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->code_page)) . '"
504
+!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0]) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->code_page)) . '"
505
+!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0]) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->code_page)) . '"
506 506
 
507 507
 !ifdef TLS
508 508
 ';
Please login to merge, or discard this patch.
devices/redirect_dev/RedirectDev.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 require_once('DeviceConfig.php');
3 3
 
4 4
 class Device_RedirectDev extends DeviceConfig {
5
-   /**
6
-    * Constructs a Device object.
7
-    *
8
-    * @final not to be redefined
9
-    */
5
+    /**
6
+     * Constructs a Device object.
7
+     *
8
+     * @final not to be redefined
9
+     */
10 10
     final public function __construct() {
11 11
         parent::__construct();
12
-      $this->supportedEapMethods  = [EAPTYPE_NONE];
13
-      $this->loggerInstance->debug(4,"RedirectEx called");
12
+        $this->supportedEapMethods  = [EAPTYPE_NONE];
13
+        $this->loggerInstance->debug(4,"RedirectEx called");
14 14
     }
15 15
     public function writeDeviceInfo() {
16 16
         $out = "<p>";
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
     */
10 10
     final public function __construct() {
11 11
         parent::__construct();
12
-      $this->supportedEapMethods  = [EAPTYPE_NONE];
13
-      $this->loggerInstance->debug(4,"RedirectEx called");
12
+      $this->supportedEapMethods = [EAPTYPE_NONE];
13
+      $this->loggerInstance->debug(4, "RedirectEx called");
14 14
     }
15 15
     public function writeDeviceInfo() {
16 16
         $out = "<p>";
Please login to merge, or discard this patch.
core/CAT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
      */
191 191
     static public function get_lang() {
192 192
         if (self::$LANG === '')
193
-            list(self::$LANG, ) = self::set_lang();
193
+            list(self::$LANG,) = self::set_lang();
194 194
         return self::$LANG;
195 195
     }
196 196
 
Please login to merge, or discard this patch.
core/ProfileRADIUS.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $this->realm = $profileQuery->realm;
80 80
 
81
-        $localValueIfAny = (preg_match('/@/', $this->realm) ? substr($this->realm, 0, strpos($this->realm, '@')) : "anonymous" );
81
+        $localValueIfAny = (preg_match('/@/', $this->realm) ? substr($this->realm, 0, strpos($this->realm, '@')) : "anonymous");
82 82
 
83 83
         $internalAttributes = [
84 84
             "internal:profile_count" => $this->idpNumberOfProfiles,
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
                 $temparray[] = [
181 181
                     "name" => $attributeQuery->option_name,
182
-                    "value" => ( $decodedAttribute['lang'] == "" ? $decodedAttribute['content'] : serialize($decodedAttribute)),
182
+                    "value" => ($decodedAttribute['lang'] == "" ? $decodedAttribute['content'] : serialize($decodedAttribute)),
183 183
                     "level" => "Method",
184 184
                     "row" => $attributeQuery->row,
185 185
                     "flag" => $optinfo['flag'],
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     public function setRealmCheckUser($shallwe, $localpart = NULL) {
264 264
         $this->databaseHandle->exec("UPDATE profile SET checkuser_outer = " . ($shallwe === true ? "1" : "0") .
265
-                ( $localpart !== NULL ? ", checkuser_value = '$localpart' " : "") .
265
+                ($localpart !== NULL ? ", checkuser_value = '$localpart' " : "") .
266 266
                 " WHERE profile_id = $this->identifier");
267 267
     }
268 268
 
Please login to merge, or discard this patch.
core/UserAPI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
             if (isset($deviceProperties['options']['hidden']) && $deviceProperties['options']['hidden'] && $showHidden == 0) {
166 166
                 continue;
167 167
             }
168
-            $count ++;
168
+            $count++;
169 169
             if ($this->version == 1) {
170 170
                 $deviceProperties['device'] = $device;
171 171
             } else {
Please login to merge, or discard this patch.