Test Failed
Pull Request — master (#592)
by Lucio
10:17
created
htdocs/class/zipdownloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      */
113 113
     public function download($name, $gzip = true)
114 114
     {
115
-        $this->_header($name . $this->ext);
115
+        $this->_header($name.$this->ext);
116 116
         echo $this->archiver->file();
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
htdocs/class/criteria.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     public function &add(CriteriaElement $criteriaElement, $condition = 'AND')
217 217
     {
218 218
         if (is_object($criteriaElement)) {
219
-            $this->criteriaElements[] =& $criteriaElement;
219
+            $this->criteriaElements[] = & $criteriaElement;
220 220
             $this->conditions[]       = $condition;
221 221
         }
222 222
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                 if (!$render = $this->criteriaElements[$i]->render()) {
239 239
                     continue;
240 240
                 }
241
-                $render_string .= (empty($render_string) ? '' : ' ' . $this->conditions[$i] . ' ') . $render;
241
+                $render_string .= (empty($render_string) ? '' : ' '.$this->conditions[$i].' ').$render;
242 242
             }
243 243
             $ret = empty($render_string) ? '' : "({$render_string})";
244 244
         }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     public function renderWhere()
255 255
     {
256 256
         $ret = $this->render();
257
-        $ret = ($ret != '') ? 'WHERE ' . $ret : $ret;
257
+        $ret = ($ret != '') ? 'WHERE '.$ret : $ret;
258 258
 
259 259
         return $ret;
260 260
     }
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             for ($i = 1; $i < $count; ++$i) {
275 275
                 $cond   = strtoupper($this->conditions[$i]);
276 276
                 $op     = ($cond === 'OR') ? '|' : '&';
277
-                $retval = "({$op}{$retval}" . $this->criteriaElements[$i]->renderLdap() . ')';
277
+                $retval = "({$op}{$retval}".$this->criteriaElements[$i]->renderLdap().')';
278 278
             }
279 279
         }
280 280
 
@@ -323,12 +323,12 @@  discard block
 block discarded – undo
323 323
      */
324 324
     public function render()
325 325
     {
326
-        $clause = (!empty($this->prefix) ? "{$this->prefix}." : '') . $this->column;
326
+        $clause = (!empty($this->prefix) ? "{$this->prefix}." : '').$this->column;
327 327
         if (!empty($this->function)) {
328 328
             $clause = sprintf($this->function, $clause);
329 329
         }
330 330
         if (in_array(strtoupper($this->operator), array('IS NULL', 'IS NOT NULL'))) {
331
-            $clause .= ' ' . $this->operator;
331
+            $clause .= ' '.$this->operator;
332 332
         } else {
333 333
             if ('' === ($value = trim($this->value))) {
334 334
                 return '';
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 
364 364
         if ($this->operator === '!=' || $this->operator === '<>') {
365 365
             $operator = '=';
366
-            $clause   = '(!(' . $this->column . $operator . $this->value . '))';
366
+            $clause   = '(!('.$this->column.$operator.$this->value.'))';
367 367
         } else {
368 368
             if ($this->operator === 'IN') {
369 369
                 $newvalue = str_replace(array('(', ')'), '', $this->value);
@@ -371,9 +371,9 @@  discard block
 block discarded – undo
371 371
                 foreach ($tab as $uid) {
372 372
                     $clause .= "({$this->column}={$uid})";
373 373
                 }
374
-                $clause = '(|' . $clause . ')';
374
+                $clause = '(|'.$clause.')';
375 375
             } else {
376
-                $clause = '(' . $this->column . $this->operator . $this->value . ')';
376
+                $clause = '('.$this->column.$this->operator.$this->value.')';
377 377
             }
378 378
         }
379 379
 
Please login to merge, or discard this patch.
htdocs/class/uploader.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * Flag indicating if unrecognized mimetypes should be allowed (use with precaution ! may lead to security issues )
51 51
      */
52 52
 
53
-    public $allowUnknownTypes       = false;
53
+    public $allowUnknownTypes = false;
54 54
     public $mediaName;
55 55
     public $mediaType;
56 56
     public $mediaSize;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         14 => 'iff',
102 102
         15 => 'wbmp',
103 103
         16 => 'xbm');
104
-    public $randomFilename  = false;
104
+    public $randomFilename = false;
105 105
 
106 106
     /**
107 107
      * Constructor
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             return false;
124 124
         }
125 125
         if (is_array($allowedMimeTypes)) {
126
-            $this->allowedMimeTypes =& $allowedMimeTypes;
126
+            $this->allowedMimeTypes = & $allowedMimeTypes;
127 127
         }
128 128
         $this->uploadDir = $uploadDir;
129 129
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         if (isset($randomFilename)) {
148 148
             $this->randomFilename = $randomFilename;
149 149
         }
150
-        if (!include_once $GLOBALS['xoops']->path('language/' . $GLOBALS['xoopsConfig']['language'] . '/uploader.php')) {
150
+        if (!include_once $GLOBALS['xoops']->path('language/'.$GLOBALS['xoopsConfig']['language'].'/uploader.php')) {
151 151
             include_once $GLOBALS['xoops']->path('language/english/uploader.php');
152 152
         }
153 153
     }
@@ -199,18 +199,18 @@  discard block
 block discarded – undo
199 199
             $this->mediaName = get_magic_quotes_gpc() ? stripslashes($_FILES[$media_name]['name'][$index]) : $_FILES[$media_name]['name'][$index];
200 200
             if ($this->randomFilename) {
201 201
                 $unique          = uniqid();
202
-                $this->mediaName = '' . $unique . '--' . $this->mediaName;
202
+                $this->mediaName = ''.$unique.'--'.$this->mediaName;
203 203
             }
204 204
             $this->mediaType    = $_FILES[$media_name]['type'][$index];
205 205
             $this->mediaSize    = $_FILES[$media_name]['size'][$index];
206 206
             $this->mediaTmpName = $_FILES[$media_name]['tmp_name'][$index];
207 207
             $this->mediaError   = !empty($_FILES[$media_name]['error'][$index]) ? $_FILES[$media_name]['error'][$index] : 0;
208 208
         } else {
209
-            $media_name      =& $_FILES[$media_name];
209
+            $media_name      = & $_FILES[$media_name];
210 210
             $this->mediaName = get_magic_quotes_gpc() ? stripslashes($media_name['name']) : $media_name['name'];
211 211
             if ($this->randomFilename) {
212 212
                 $unique          = uniqid();
213
-                $this->mediaName = '' . $unique . '--' . $this->mediaName;
213
+                $this->mediaName = ''.$unique.'--'.$this->mediaName;
214 214
             }
215 215
             $this->mediaType    = $media_name['type'];
216 216
             $this->mediaSize    = $media_name['size'];
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         }
227 227
         $this->errors = array();
228 228
         if ($this->mediaError > 0) {
229
-            switch($this->mediaError){
229
+            switch ($this->mediaError) {
230 230
                 case UPLOAD_ERR_INI_SIZE:
231 231
                     $this->setErrors(_ER_UP_INISIZE);
232 232
                     return false;
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         if (isset($this->targetFileName)) {
426 426
             $this->savedFileName = $this->targetFileName;
427 427
         } elseif (isset($this->prefix)) {
428
-            $this->savedFileName = uniqid($this->prefix) . '.' . strtolower($matched[1]);
428
+            $this->savedFileName = uniqid($this->prefix).'.'.strtolower($matched[1]);
429 429
         } else {
430 430
             $this->savedFileName = strtolower($this->mediaName);
431 431
         }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         $this->savedFileName = preg_replace('!\s+!', '_', $this->savedFileName);
435 435
         $this->savedFileName = preg_replace("/[^a-zA-Z0-9\._-]/", '', $this->savedFileName);
436 436
 
437
-        $this->savedDestination = $this->uploadDir . '/' . $this->savedFileName;
437
+        $this->savedDestination = $this->uploadDir.'/'.$this->savedFileName;
438 438
         if (!move_uploaded_file($this->mediaTmpName, $this->savedDestination)) {
439 439
             $this->setErrors(sprintf(_ER_UP_FAILEDSAVEFILE, $this->savedDestination));
440 440
 
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
     public function checkMimeType()
530 530
     {
531 531
         // if the browser supplied mime type looks suspicious, refuse it
532
-        $structureCheck = (bool) preg_match('/^\w+\/[-+.\w]+$/', $this->mediaType);
532
+        $structureCheck = (bool)preg_match('/^\w+\/[-+.\w]+$/', $this->mediaType);
533 533
         if (false === $structureCheck) {
534 534
             $this->mediaType = 'invalid';
535 535
             $this->setErrors(_ER_UP_UNKNOWNFILETYPEREJECTED);
@@ -585,8 +585,8 @@  discard block
 block discarded – undo
585 585
         $patterns = array();
586 586
         $replaces = array();
587 587
         foreach ($this->extensionsToBeSanitized as $ext) {
588
-            $patterns[] = "/\." . preg_quote($ext) . "\./i";
589
-            $replaces[] = '_' . $ext . '.';
588
+            $patterns[] = "/\.".preg_quote($ext)."\./i";
589
+            $replaces[] = '_'.$ext.'.';
590 590
         }
591 591
         $this->mediaName = preg_replace($patterns, $replaces, $this->mediaName);
592 592
     }
@@ -614,9 +614,9 @@  discard block
 block discarded – undo
614 614
         } else {
615 615
             $ret = '';
616 616
             if (count($this->errors) > 0) {
617
-                $ret = '<h4>' . sprintf(_ER_UP_ERRORSRETURNED, htmlspecialchars($this->mediaName, ENT_QUOTES)) . '</h4>';
617
+                $ret = '<h4>'.sprintf(_ER_UP_ERRORSRETURNED, htmlspecialchars($this->mediaName, ENT_QUOTES)).'</h4>';
618 618
                 foreach ($this->errors as $error) {
619
-                    $ret .= $error . '<br>';
619
+                    $ret .= $error.'<br>';
620 620
                 }
621 621
             }
622 622
 
Please login to merge, or discard this patch.
htdocs/class/xoopsload.php 1 patch
Spacing   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
             }
109 109
 
110 110
             return true;
111
-        } elseif (file_exists($file = XOOPS_ROOT_PATH . '/class/' . $name . '.php')) {
111
+        } elseif (file_exists($file = XOOPS_ROOT_PATH.'/class/'.$name.'.php')) {
112 112
             include_once $file;
113
-            $class = 'Xoops' . ucfirst($name);
113
+            $class = 'Xoops'.ucfirst($name);
114 114
             if (class_exists($class)) {
115 115
                 return $class;
116 116
             } else {
117
-                trigger_error('Class ' . $name . ' not found in file ' . __FILE__ . ' at line ' . __LINE__, E_USER_WARNING);
117
+                trigger_error('Class '.$name.' not found in file '.__FILE__.' at line '.__LINE__, E_USER_WARNING);
118 118
             }
119 119
         }
120 120
 
@@ -130,13 +130,13 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public static function loadFramework($name)
132 132
     {
133
-        if (!file_exists($file = XOOPS_ROOT_PATH . '/Frameworks/' . $name . '/xoops' . $name . '.php')) {
134
-            trigger_error('File ' . str_replace(XOOPS_ROOT_PATH, '', $file) . ' not found in file ' . __FILE__ . ' at line ' . __LINE__, E_USER_WARNING);
133
+        if (!file_exists($file = XOOPS_ROOT_PATH.'/Frameworks/'.$name.'/xoops'.$name.'.php')) {
134
+            trigger_error('File '.str_replace(XOOPS_ROOT_PATH, '', $file).' not found in file '.__FILE__.' at line '.__LINE__, E_USER_WARNING);
135 135
 
136 136
             return false;
137 137
         }
138 138
         include_once $file;
139
-        $class = 'Xoops' . ucfirst($name);
139
+        $class = 'Xoops'.ucfirst($name);
140 140
         if (class_exists($class)) {
141 141
             return $class;
142 142
         }
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
         if (empty($dirname)) {
157 157
             return false;
158 158
         }
159
-        if (file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/class/' . $name . '.php')) {
159
+        if (file_exists($file = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/class/'.$name.'.php')) {
160 160
             include_once $file;
161
-            if (class_exists(ucfirst($dirname) . ucfirst($name))) {
161
+            if (class_exists(ucfirst($dirname).ucfirst($name))) {
162 162
                 return true;
163 163
             }
164 164
         }
@@ -174,64 +174,64 @@  discard block
 block discarded – undo
174 174
     public static function loadCoreConfig()
175 175
     {
176 176
         return $configs = array(
177
-            'xoopsuserutility'           => XOOPS_ROOT_PATH . '/class/userutility.php',
178
-            'xoopsmediauploader'         => XOOPS_ROOT_PATH . '/class/uploader.php',
179
-            'xoopsutility'               => XOOPS_ROOT_PATH . '/class/utility/xoopsutility.php',
180
-            'xoopscaptcha'               => XOOPS_ROOT_PATH . '/class/captcha/xoopscaptcha.php',
181
-            'xoopscache'                 => XOOPS_ROOT_PATH . '/class/cache/xoopscache.php',
182
-            'xoopsfile'                  => XOOPS_ROOT_PATH . '/class/file/xoopsfile.php',
183
-            'xoopsmodelfactory'          => XOOPS_ROOT_PATH . '/class/model/xoopsmodel.php',
184
-            'xoopscalendar'              => XOOPS_ROOT_PATH . '/class/calendar/xoopscalendar.php',
185
-            'xoopskernel'                => XOOPS_ROOT_PATH . '/class/xoopskernel.php',
186
-            'xoopssecurity'              => XOOPS_ROOT_PATH . '/class/xoopssecurity.php',
187
-            'xoopslogger'                => XOOPS_ROOT_PATH . '/class/logger/xoopslogger.php',
188
-            'xoopspagenav'               => XOOPS_ROOT_PATH . '/class/pagenav.php',
189
-            'xoopslists'                 => XOOPS_ROOT_PATH . '/class/xoopslists.php',
190
-            'xoopslocal'                 => XOOPS_ROOT_PATH . '/include/xoopslocal.php',
191
-            'xoopslocalabstract'         => XOOPS_ROOT_PATH . '/class/xoopslocal.php',
192
-            'xoopseditor'                => XOOPS_ROOT_PATH . '/class/xoopseditor/xoopseditor.php',
193
-            'xoopseditorhandler'         => XOOPS_ROOT_PATH . '/class/xoopseditor/xoopseditor.php',
194
-            'xoopsformloader'            => XOOPS_ROOT_PATH . '/class/xoopsformloader.php',
195
-            'xoopsformelement'           => XOOPS_ROOT_PATH . '/class/xoopsform/formelement.php',
196
-            'xoopsform'                  => XOOPS_ROOT_PATH . '/class/xoopsform/form.php',
197
-            'xoopsformlabel'             => XOOPS_ROOT_PATH . '/class/xoopsform/formlabel.php',
198
-            'xoopsformselect'            => XOOPS_ROOT_PATH . '/class/xoopsform/formselect.php',
199
-            'xoopsformpassword'          => XOOPS_ROOT_PATH . '/class/xoopsform/formpassword.php',
200
-            'xoopsformbutton'            => XOOPS_ROOT_PATH . '/class/xoopsform/formbutton.php',
201
-            'xoopsformbuttontray'        => XOOPS_ROOT_PATH . '/class/xoopsform/formbuttontray.php',
202
-            'xoopsformcheckbox'          => XOOPS_ROOT_PATH . '/class/xoopsform/formcheckbox.php',
203
-            'xoopsformselectcheckgroup'  => XOOPS_ROOT_PATH . '/class/xoopsform/formselectcheckgroup.php',
204
-            'xoopsformhidden'            => XOOPS_ROOT_PATH . '/class/xoopsform/formhidden.php',
205
-            'xoopsformfile'              => XOOPS_ROOT_PATH . '/class/xoopsform/formfile.php',
206
-            'xoopsformradio'             => XOOPS_ROOT_PATH . '/class/xoopsform/formradio.php',
207
-            'xoopsformradioyn'           => XOOPS_ROOT_PATH . '/class/xoopsform/formradioyn.php',
208
-            'xoopsformselectcountry'     => XOOPS_ROOT_PATH . '/class/xoopsform/formselectcountry.php',
209
-            'xoopsformselecttimezone'    => XOOPS_ROOT_PATH . '/class/xoopsform/formselecttimezone.php',
210
-            'xoopsformselectlang'        => XOOPS_ROOT_PATH . '/class/xoopsform/formselectlang.php',
211
-            'xoopsformselectgroup'       => XOOPS_ROOT_PATH . '/class/xoopsform/formselectgroup.php',
212
-            'xoopsformselectuser'        => XOOPS_ROOT_PATH . '/class/xoopsform/formselectuser.php',
213
-            'xoopsformselecttheme'       => XOOPS_ROOT_PATH . '/class/xoopsform/formselecttheme.php',
214
-            'xoopsformselectmatchoption' => XOOPS_ROOT_PATH . '/class/xoopsform/formselectmatchoption.php',
215
-            'xoopsformtext'              => XOOPS_ROOT_PATH . '/class/xoopsform/formtext.php',
216
-            'xoopsformtextarea'          => XOOPS_ROOT_PATH . '/class/xoopsform/formtextarea.php',
217
-            'xoopsformdhtmltextarea'     => XOOPS_ROOT_PATH . '/class/xoopsform/formdhtmltextarea.php',
218
-            'xoopsformelementtray'       => XOOPS_ROOT_PATH . '/class/xoopsform/formelementtray.php',
219
-            'xoopsthemeform'             => XOOPS_ROOT_PATH . '/class/xoopsform/themeform.php',
220
-            'xoopssimpleform'            => XOOPS_ROOT_PATH . '/class/xoopsform/simpleform.php',
221
-            'xoopsformtextdateselect'    => XOOPS_ROOT_PATH . '/class/xoopsform/formtextdateselect.php',
222
-            'xoopsformdatetime'          => XOOPS_ROOT_PATH . '/class/xoopsform/formdatetime.php',
223
-            'xoopsformhiddentoken'       => XOOPS_ROOT_PATH . '/class/xoopsform/formhiddentoken.php',
224
-            'xoopsformcolorpicker'       => XOOPS_ROOT_PATH . '/class/xoopsform/formcolorpicker.php',
225
-            'xoopsformcaptcha'           => XOOPS_ROOT_PATH . '/class/xoopsform/formcaptcha.php',
226
-            'xoopsformeditor'            => XOOPS_ROOT_PATH . '/class/xoopsform/formeditor.php',
227
-            'xoopsformselecteditor'      => XOOPS_ROOT_PATH . '/class/xoopsform/formselecteditor.php',
228
-            'xoopsformcalendar'          => XOOPS_ROOT_PATH . '/class/xoopsform/formcalendar.php',
229
-            'xoopsformrenderer'          => XOOPS_ROOT_PATH . '/class/xoopsform/renderer/XoopsFormRenderer.php',
230
-            'xoopsformrendererinterface' => XOOPS_ROOT_PATH . '/class/xoopsform/renderer/XoopsFormRendererInterface.php',
231
-            'xoopsformrendererlegacy'    => XOOPS_ROOT_PATH . '/class/xoopsform/renderer/XoopsFormRendererLegacy.php',
232
-            'xoopsformrendererbootstrap3'=> XOOPS_ROOT_PATH . '/class/xoopsform/renderer/XoopsFormRendererBootstrap3.php',
233
-            'xoopsfilterinput'           => XOOPS_ROOT_PATH . '/class/xoopsfilterinput.php',
234
-            'xoopsrequest'               => XOOPS_ROOT_PATH . '/class/xoopsrequest.php');
177
+            'xoopsuserutility'           => XOOPS_ROOT_PATH.'/class/userutility.php',
178
+            'xoopsmediauploader'         => XOOPS_ROOT_PATH.'/class/uploader.php',
179
+            'xoopsutility'               => XOOPS_ROOT_PATH.'/class/utility/xoopsutility.php',
180
+            'xoopscaptcha'               => XOOPS_ROOT_PATH.'/class/captcha/xoopscaptcha.php',
181
+            'xoopscache'                 => XOOPS_ROOT_PATH.'/class/cache/xoopscache.php',
182
+            'xoopsfile'                  => XOOPS_ROOT_PATH.'/class/file/xoopsfile.php',
183
+            'xoopsmodelfactory'          => XOOPS_ROOT_PATH.'/class/model/xoopsmodel.php',
184
+            'xoopscalendar'              => XOOPS_ROOT_PATH.'/class/calendar/xoopscalendar.php',
185
+            'xoopskernel'                => XOOPS_ROOT_PATH.'/class/xoopskernel.php',
186
+            'xoopssecurity'              => XOOPS_ROOT_PATH.'/class/xoopssecurity.php',
187
+            'xoopslogger'                => XOOPS_ROOT_PATH.'/class/logger/xoopslogger.php',
188
+            'xoopspagenav'               => XOOPS_ROOT_PATH.'/class/pagenav.php',
189
+            'xoopslists'                 => XOOPS_ROOT_PATH.'/class/xoopslists.php',
190
+            'xoopslocal'                 => XOOPS_ROOT_PATH.'/include/xoopslocal.php',
191
+            'xoopslocalabstract'         => XOOPS_ROOT_PATH.'/class/xoopslocal.php',
192
+            'xoopseditor'                => XOOPS_ROOT_PATH.'/class/xoopseditor/xoopseditor.php',
193
+            'xoopseditorhandler'         => XOOPS_ROOT_PATH.'/class/xoopseditor/xoopseditor.php',
194
+            'xoopsformloader'            => XOOPS_ROOT_PATH.'/class/xoopsformloader.php',
195
+            'xoopsformelement'           => XOOPS_ROOT_PATH.'/class/xoopsform/formelement.php',
196
+            'xoopsform'                  => XOOPS_ROOT_PATH.'/class/xoopsform/form.php',
197
+            'xoopsformlabel'             => XOOPS_ROOT_PATH.'/class/xoopsform/formlabel.php',
198
+            'xoopsformselect'            => XOOPS_ROOT_PATH.'/class/xoopsform/formselect.php',
199
+            'xoopsformpassword'          => XOOPS_ROOT_PATH.'/class/xoopsform/formpassword.php',
200
+            'xoopsformbutton'            => XOOPS_ROOT_PATH.'/class/xoopsform/formbutton.php',
201
+            'xoopsformbuttontray'        => XOOPS_ROOT_PATH.'/class/xoopsform/formbuttontray.php',
202
+            'xoopsformcheckbox'          => XOOPS_ROOT_PATH.'/class/xoopsform/formcheckbox.php',
203
+            'xoopsformselectcheckgroup'  => XOOPS_ROOT_PATH.'/class/xoopsform/formselectcheckgroup.php',
204
+            'xoopsformhidden'            => XOOPS_ROOT_PATH.'/class/xoopsform/formhidden.php',
205
+            'xoopsformfile'              => XOOPS_ROOT_PATH.'/class/xoopsform/formfile.php',
206
+            'xoopsformradio'             => XOOPS_ROOT_PATH.'/class/xoopsform/formradio.php',
207
+            'xoopsformradioyn'           => XOOPS_ROOT_PATH.'/class/xoopsform/formradioyn.php',
208
+            'xoopsformselectcountry'     => XOOPS_ROOT_PATH.'/class/xoopsform/formselectcountry.php',
209
+            'xoopsformselecttimezone'    => XOOPS_ROOT_PATH.'/class/xoopsform/formselecttimezone.php',
210
+            'xoopsformselectlang'        => XOOPS_ROOT_PATH.'/class/xoopsform/formselectlang.php',
211
+            'xoopsformselectgroup'       => XOOPS_ROOT_PATH.'/class/xoopsform/formselectgroup.php',
212
+            'xoopsformselectuser'        => XOOPS_ROOT_PATH.'/class/xoopsform/formselectuser.php',
213
+            'xoopsformselecttheme'       => XOOPS_ROOT_PATH.'/class/xoopsform/formselecttheme.php',
214
+            'xoopsformselectmatchoption' => XOOPS_ROOT_PATH.'/class/xoopsform/formselectmatchoption.php',
215
+            'xoopsformtext'              => XOOPS_ROOT_PATH.'/class/xoopsform/formtext.php',
216
+            'xoopsformtextarea'          => XOOPS_ROOT_PATH.'/class/xoopsform/formtextarea.php',
217
+            'xoopsformdhtmltextarea'     => XOOPS_ROOT_PATH.'/class/xoopsform/formdhtmltextarea.php',
218
+            'xoopsformelementtray'       => XOOPS_ROOT_PATH.'/class/xoopsform/formelementtray.php',
219
+            'xoopsthemeform'             => XOOPS_ROOT_PATH.'/class/xoopsform/themeform.php',
220
+            'xoopssimpleform'            => XOOPS_ROOT_PATH.'/class/xoopsform/simpleform.php',
221
+            'xoopsformtextdateselect'    => XOOPS_ROOT_PATH.'/class/xoopsform/formtextdateselect.php',
222
+            'xoopsformdatetime'          => XOOPS_ROOT_PATH.'/class/xoopsform/formdatetime.php',
223
+            'xoopsformhiddentoken'       => XOOPS_ROOT_PATH.'/class/xoopsform/formhiddentoken.php',
224
+            'xoopsformcolorpicker'       => XOOPS_ROOT_PATH.'/class/xoopsform/formcolorpicker.php',
225
+            'xoopsformcaptcha'           => XOOPS_ROOT_PATH.'/class/xoopsform/formcaptcha.php',
226
+            'xoopsformeditor'            => XOOPS_ROOT_PATH.'/class/xoopsform/formeditor.php',
227
+            'xoopsformselecteditor'      => XOOPS_ROOT_PATH.'/class/xoopsform/formselecteditor.php',
228
+            'xoopsformcalendar'          => XOOPS_ROOT_PATH.'/class/xoopsform/formcalendar.php',
229
+            'xoopsformrenderer'          => XOOPS_ROOT_PATH.'/class/xoopsform/renderer/XoopsFormRenderer.php',
230
+            'xoopsformrendererinterface' => XOOPS_ROOT_PATH.'/class/xoopsform/renderer/XoopsFormRendererInterface.php',
231
+            'xoopsformrendererlegacy'    => XOOPS_ROOT_PATH.'/class/xoopsform/renderer/XoopsFormRendererLegacy.php',
232
+            'xoopsformrendererbootstrap3'=> XOOPS_ROOT_PATH.'/class/xoopsform/renderer/XoopsFormRendererBootstrap3.php',
233
+            'xoopsfilterinput'           => XOOPS_ROOT_PATH.'/class/xoopsfilterinput.php',
234
+            'xoopsrequest'               => XOOPS_ROOT_PATH.'/class/xoopsrequest.php');
235 235
     }
236 236
 
237 237
     /**
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             } else {
254 254
                 return false;
255 255
             }
256
-            if (file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/include/autoload.php')) {
256
+            if (file_exists($file = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/include/autoload.php')) {
257 257
                 if (!$configs = include $file) {
258 258
                     return false;
259 259
                 }
@@ -269,4 +269,4 @@  discard block
 block discarded – undo
269 269
 /**
270 270
  * XMF libraries
271 271
  */
272
-include_once XOOPS_ROOT_PATH . '/class/libraries/vendor/autoload.php';
272
+include_once XOOPS_ROOT_PATH.'/class/libraries/vendor/autoload.php';
Please login to merge, or discard this patch.
htdocs/image.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -76,17 +76,17 @@  discard block
 block discarded – undo
76 76
 }
77 77
 
78 78
 $xoopsOption['nocommon'] = true;
79
-require_once __DIR__ . '/mainfile.php';
80
-
81
-include_once __DIR__ . '/include/defines.php';
82
-include_once __DIR__ . '/include/functions.php';
83
-include_once __DIR__ . '/include/version.php';
84
-include_once __DIR__ . '/kernel/object.php';
85
-include_once __DIR__ . '/class/xoopsload.php';
86
-include_once __DIR__ . '/class/preload.php';
87
-include_once __DIR__ . '/class/module.textsanitizer.php';
88
-include_once __DIR__ . '/class/database/databasefactory.php';
89
-require_once __DIR__ . '/class/criteria.php';
79
+require_once __DIR__.'/mainfile.php';
80
+
81
+include_once __DIR__.'/include/defines.php';
82
+include_once __DIR__.'/include/functions.php';
83
+include_once __DIR__.'/include/version.php';
84
+include_once __DIR__.'/kernel/object.php';
85
+include_once __DIR__.'/class/xoopsload.php';
86
+include_once __DIR__.'/class/preload.php';
87
+include_once __DIR__.'/class/module.textsanitizer.php';
88
+include_once __DIR__.'/class/database/databasefactory.php';
89
+require_once __DIR__.'/class/criteria.php';
90 90
 XoopsLoad::load('xoopslogger');
91 91
 $xoopsLogger = XoopsLogger::getInstance();
92 92
 $xoopsLogger->startTime();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     if (!$ifModifiedSince && !$ifNoneMatch) {
108 108
         return null;
109 109
     }
110
-    if ($ifNoneMatch && $ifNoneMatch != $etag && $ifNoneMatch != '"' . $etag . '"') {
110
+    if ($ifNoneMatch && $ifNoneMatch != $etag && $ifNoneMatch != '"'.$etag.'"') {
111 111
         return null;
112 112
     } // etag is there but doesn't match
113 113
     if ($ifModifiedSince && $ifModifiedSince != $lastModified) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     $workingWidth = $imageWidth * $q;
152 152
     $workingHeight = $imageHeight * $q;
153 153
 
154
-    $workingImage= imagecreatetruecolor($workingWidth, $workingHeight);
154
+    $workingImage = imagecreatetruecolor($workingWidth, $workingHeight);
155 155
     $alphaColor = imagecolorallocatealpha($workingImage, $r, $g, $b, 127);
156 156
     imagealphablending($workingImage, false);
157 157
     imagesavealpha($workingImage, true);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         exit404BadReq();
242 242
     }
243 243
 
244
-    $fullPath = XOOPS_ROOT_PATH . $imageUrl;
244
+    $fullPath = XOOPS_ROOT_PATH.$imageUrl;
245 245
     if (strpos($fullPath, XOOPS_VAR_PATH) === 0) { // no access to data (shouldn't be in root, but...)
246 246
         exit404BadReq();
247 247
     }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     if (count($images) != 1) {
269 269
         // No Xoops images or to many Xoops images
270 270
         header('Content-type: image/gif');
271
-        readfile(XOOPS_UPLOAD_PATH . '/blank.gif');
271
+        readfile(XOOPS_UPLOAD_PATH.'/blank.gif');
272 272
         exit();
273 273
     }
274 274
     $image = $images[0];
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     if (!$imgcat = $imgcatHandler->get($imgcatId)) {
279 279
         // No Image category
280 280
         header('Content-type: image/gif');
281
-        readfile(XOOPS_UPLOAD_PATH . '/blank.gif');
281
+        readfile(XOOPS_UPLOAD_PATH.'/blank.gif');
282 282
         exit();
283 283
     }
284 284
     // Get image data
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $imagePath = null;
290 290
         $imageData = $image->getVar('image_body');
291 291
     } else {
292
-        $imagePath = XOOPS_UPLOAD_PATH . '/' . $image->getVar('image_name');
292
+        $imagePath = XOOPS_UPLOAD_PATH.'/'.$image->getVar('image_name');
293 293
         $imageData = file_get_contents($imagePath);
294 294
     }
295 295
     $sourceImage = imagecreatefromstring($imageData);
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         // will exit on any unacceptable urls
305 305
         imageFilenameCheck($imageUrl);
306 306
 
307
-        $imagePath = XOOPS_ROOT_PATH . $imageUrl;
307
+        $imagePath = XOOPS_ROOT_PATH.$imageUrl;
308 308
         if (!file_exists($imagePath)) {
309 309
             exit404BadReq();
310 310
         }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $imagePath = $imageUrl;
316 316
     }
317 317
     // Get the size and MIME type of the requested image
318
-    $imageFilename = basename($imagePath);  // image filename
318
+    $imageFilename = basename($imagePath); // image filename
319 319
     $imagesize = getimagesize($imagePath);
320 320
     $imageWidth = $imagesize[0];
321 321
     $imageHeight = $imagesize[1];
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 } else {
340 340
     // No id, no url, no src parameters
341 341
     header('Content-type: image/gif');
342
-    readfile(XOOPS_ROOT_PATH . '/uploads/blank.gif');
342
+    readfile(XOOPS_ROOT_PATH.'/uploads/blank.gif');
343 343
     exit();
344 344
 }
345 345
 
@@ -349,12 +349,12 @@  discard block
 block discarded – undo
349 349
 // Get image_data from the Xoops cache only if the edited image has been cached after the latest modification
350 350
 // of the original image
351 351
 xoops_load('XoopsCache');
352
-$edited_image_filename = 'editedimage_' . md5($_SERVER['REQUEST_URI']) . '_' . $imageFilename;
352
+$edited_image_filename = 'editedimage_'.md5($_SERVER['REQUEST_URI']).'_'.$imageFilename;
353 353
 $cached_image = XoopsCache::read($edited_image_filename);
354 354
 if (!isset($_GET['nocache']) && !isset($_GET['noservercache']) && !empty($cached_image)
355 355
     && ($cached_image['cached_time'] >= $imageCreatedTime)) {
356 356
     header("Content-type: {$imageMimetype}");
357
-    header('Content-Length: ' . strlen($cached_image['image_data']));
357
+    header('Content-Length: '.strlen($cached_image['image_data']));
358 358
     echo $cached_image['image_data'];
359 359
     exit();
360 360
 }
@@ -389,11 +389,11 @@  discard block
 block discarded – undo
389 389
 // image and exit
390 390
 if (empty($_GET['width']) && empty($_GET['height']) && empty($_GET['color']) && empty($_GET['filter'])
391 391
     && empty($_GET['radius']) && empty($_GET['angle'])) {
392
-    $last_modified_string = gmdate('D, d M Y H:i:s', $imageCreatedTime) . ' GMT';
392
+    $last_modified_string = gmdate('D, d M Y H:i:s', $imageCreatedTime).' GMT';
393 393
     $etag = md5($imageData);
394 394
     doConditionalGet($etag, $last_modified_string);
395 395
     header("Content-type: {$imageMimetype}");
396
-    header('Content-Length: ' . strlen($imageData));
396
+    header('Content-Length: '.strlen($imageData));
397 397
     echo $imageData;
398 398
     exit();
399 399
 }
@@ -497,16 +497,16 @@  discard block
 block discarded – undo
497 497
         if (strlen($color) == 6) {
498 498
             $background = imagecolorallocate(
499 499
                 $destination_image,
500
-                intval($color[0] . $color[1], 16),
501
-                intval($color[2] . $color[3], 16),
502
-                intval($color[4] . $color[5], 16)
500
+                intval($color[0].$color[1], 16),
501
+                intval($color[2].$color[3], 16),
502
+                intval($color[4].$color[5], 16)
503 503
             );
504 504
         } elseif (strlen($color) == 3) {
505 505
             $background = imagecolorallocate(
506 506
                 $destination_image,
507
-                intval($color[0] . $color[0], 16),
508
-                intval($color[1] . $color[1], 16),
509
-                intval($color[2] . $color[2], 16)
507
+                intval($color[0].$color[0], 16),
508
+                intval($color[1].$color[1], 16),
509
+                intval($color[2].$color[2], 16)
510 510
             );
511 511
         }
512 512
         if ($background) {
@@ -525,16 +525,16 @@  discard block
 block discarded – undo
525 525
     if (strlen($color) == 6) {
526 526
         $background = imagecolorallocate(
527 527
             $destination_image,
528
-            intval($color[0] . $color[1], 16),
529
-            intval($color[2] . $color[3], 16),
530
-            intval($color[4] . $color[5], 16)
528
+            intval($color[0].$color[1], 16),
529
+            intval($color[2].$color[3], 16),
530
+            intval($color[4].$color[5], 16)
531 531
         );
532 532
     } elseif (strlen($color) == 3) {
533 533
         $background = imagecolorallocate(
534 534
             $destination_image,
535
-            intval($color[0] . $color[0], 16),
536
-            intval($color[1] . $color[1], 16),
537
-            intval($color[2] . $color[2], 16)
535
+            intval($color[0].$color[0], 16),
536
+            intval($color[1].$color[1], 16),
537
+            intval($color[2].$color[2], 16)
538 538
         );
539 539
     }
540 540
     if ($background) {
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
 
545 545
 // Imagefilter
546 546
 if (ENABLE_IMAGEFILTER && !empty($filter)) {
547
-    $filterSet = (array) $filter;
547
+    $filterSet = (array)$filter;
548 548
     foreach ($filterSet as $currentFilter) {
549 549
         $rawFilterArgs = explode(',', $currentFilter);
550 550
         $filterConst = constant(array_shift($rawFilterArgs));
@@ -632,25 +632,25 @@  discard block
 block discarded – undo
632 632
  * Send the edited image to the browser
633 633
  */
634 634
 // See if the browser already has the image
635
-$last_modified_string = gmdate('D, d M Y H:i:s', $imageCreatedTime) . ' GMT';
635
+$last_modified_string = gmdate('D, d M Y H:i:s', $imageCreatedTime).' GMT';
636 636
 $etag = md5($imageData);
637 637
 doConditionalGet($etag, $last_modified_string);
638 638
 
639 639
 header('HTTP/1.1 200 OK');
640 640
 // if image is cacheable
641 641
 if (!isset($_GET['nocache']) && !isset($_GET['nobrowsercache'])) {
642
-    header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $imageCreatedTime) . 'GMT');
642
+    header('Last-Modified: '.gmdate('D, d M Y H:i:s', $imageCreatedTime).'GMT');
643 643
     header('Cache-control: max-age=31536000');
644
-    header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . 'GMT');
644
+    header('Expires: '.gmdate('D, d M Y H:i:s', time() + 31536000).'GMT');
645 645
 } else {
646 646
     // "Kill" the browser cache
647 647
     header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // past date
648
-    header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modified
648
+    header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified
649 649
     header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
650 650
     header('Cache-Control: post-check=0, pre-check=0', false);
651 651
     header('Pragma: no-cache'); // HTTP/1.0
652 652
 }
653 653
 header("Content-type: {$imageMimetype}");
654 654
 header("Content-disposition: filename={$imageFilename}");
655
-header('Content-Length: ' . strlen($imageData));
655
+header('Content-Length: '.strlen($imageData));
656 656
 echo $imageData;
Please login to merge, or discard this patch.
htdocs/mainfile.dist.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@
 block discarded – undo
69 69
     }
70 70
 
71 71
     // Secure file
72
-    require XOOPS_VAR_PATH . '/data/secure.php';
72
+    require XOOPS_VAR_PATH.'/data/secure.php';
73 73
 
74 74
     define('XOOPS_GROUP_ADMIN', '1');
75 75
     define('XOOPS_GROUP_USERS', '2');
76 76
     define('XOOPS_GROUP_ANONYMOUS', '3');
77 77
 
78 78
     if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
79
-        include XOOPS_ROOT_PATH . '/include/common.php';
79
+        include XOOPS_ROOT_PATH.'/include/common.php';
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
htdocs/install/page_dbconnection.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@
 block discarded – undo
57 57
 if (@empty($vars['DB_HOST'])) {
58 58
     // Fill with default values
59 59
     $vars = array_merge($vars, array(
60
-                                 'DB_TYPE'     => 'mysql',
61
-                                 'DB_HOST'     => 'localhost',
62
-                                 'DB_USER'     => '',
63
-                                 'DB_PASS'     => '',
64
-                                 'DB_PCONNECT' => 0));
60
+                                    'DB_TYPE'     => 'mysql',
61
+                                    'DB_HOST'     => 'localhost',
62
+                                    'DB_USER'     => '',
63
+                                    'DB_PASS'     => '',
64
+                                    'DB_PCONNECT' => 0));
65 65
 }
66 66
 ob_start();
67 67
 ?>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 $pageHasForm = true;
32 32
 $pageHasHelp = true;
33 33
 
34
-$vars =& $_SESSION['settings'];
34
+$vars = & $_SESSION['settings'];
35 35
 
36 36
 if ($_SERVER['REQUEST_METHOD'] === 'POST') {
37 37
     $params = array('DB_TYPE', 'DB_HOST', 'DB_USER', 'DB_PASS');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     $hostConnectPrefix = empty($vars['DB_PCONNECT']) ? '' : 'p:';
47 47
     $link = new mysqli($hostConnectPrefix.$vars['DB_HOST'], $vars['DB_USER'], $vars['DB_PASS']);
48 48
     if (0 !== $link->connect_errno) {
49
-        $error = ERR_NO_DBCONNECTION .' (' . $link->connect_errno . ') ' . $link->connect_error;;
49
+        $error = ERR_NO_DBCONNECTION.' ('.$link->connect_errno.') '.$link->connect_error; ;
50 50
     }
51 51
     if (empty($error)) {
52 52
         $wizard->redirectToPage('+1');
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 ob_start();
67 67
 ?>
68 68
 <?php if (!empty($error)) {
69
-    echo '<div class="alert alert-danger"><span class="fa fa-ban text-danger"></span> ' . $error . "</div>\n";
69
+    echo '<div class="alert alert-danger"><span class="fa fa-ban text-danger"></span> '.$error."</div>\n";
70 70
 } ?>
71 71
     <div class="panel panel-info">
72 72
     <div class="panel-heading"><?php echo LEGEND_CONNECTION; ?></div>
Please login to merge, or discard this patch.
htdocs/install/language/english/install.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
 // Titles (main and pages)
41 41
 define('XOOPS_INSTALL_WIZARD', 'XOOPS Installation Wizard');
42 42
 define('LANGUAGE_SELECTION', 'Language selection');
43
-define('LANGUAGE_SELECTION_TITLE', 'Select your language');        // L128
43
+define('LANGUAGE_SELECTION_TITLE', 'Select your language'); // L128
44 44
 define('INTRODUCTION', 'Introduction');
45
-define('INTRODUCTION_TITLE', 'Welcome to the XOOPS Installation Wizard');        // L0
45
+define('INTRODUCTION_TITLE', 'Welcome to the XOOPS Installation Wizard'); // L0
46 46
 define('CONFIGURATION_CHECK', 'Configuration check');
47 47
 define('CONFIGURATION_CHECK_TITLE', 'Checking your server configuration');
48 48
 define('PATHS_SETTINGS', 'Paths settings');
@@ -60,35 +60,35 @@  discard block
 block discarded – undo
60 60
 define('DATA_INSERTION', 'Data insertion');
61 61
 define('DATA_INSERTION_TITLE', 'Saving your settings to the database');
62 62
 define('WELCOME', 'Welcome');
63
-define('WELCOME_TITLE', 'Welcome to your XOOPS site');        // L0
63
+define('WELCOME_TITLE', 'Welcome to your XOOPS site'); // L0
64 64
 // Settings (labels and help text)
65 65
 define('XOOPS_PATHS', 'XOOPS Physical paths');
66 66
 define('XOOPS_URLS', 'Web locations');
67 67
 define('XOOPS_ROOT_PATH_LABEL', 'XOOPS documents root physical path');
68 68
 define('XOOPS_ROOT_PATH_HELP', 'Physical path to the XOOPS documents (served) directory WITHOUT trailing slash');
69 69
 define('XOOPS_LIB_PATH_LABEL', 'XOOPS library directory');
70
-define('XOOPS_LIB_PATH_HELP', 'Physical path to the XOOPS library directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of ' . XOOPS_ROOT_PATH_LABEL . ' to make it secure.');
70
+define('XOOPS_LIB_PATH_HELP', 'Physical path to the XOOPS library directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of '.XOOPS_ROOT_PATH_LABEL.' to make it secure.');
71 71
 define('XOOPS_DATA_PATH_LABEL', 'XOOPS data files directory');
72
-define('XOOPS_DATA_PATH_HELP', 'Physical path to the XOOPS data files (writable) directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of ' . XOOPS_ROOT_PATH_LABEL . ' to make it secure.');
72
+define('XOOPS_DATA_PATH_HELP', 'Physical path to the XOOPS data files (writable) directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of '.XOOPS_ROOT_PATH_LABEL.' to make it secure.');
73 73
 define('XOOPS_URL_LABEL', 'Website location (URL)'); // L56
74 74
 define('XOOPS_URL_HELP', 'Main URL that will be used to access your XOOPS installation'); // L58
75 75
 define('LEGEND_CONNECTION', 'Server connection');
76 76
 define('LEGEND_DATABASE', 'Database'); // L51
77
-define('DB_HOST_LABEL', 'Server hostname');    // L27
77
+define('DB_HOST_LABEL', 'Server hostname'); // L27
78 78
 define('DB_HOST_HELP', 'Hostname of the database server. If you are unsure, <em>localhost</em> works in most cases'); // L67
79
-define('DB_USER_LABEL', 'User name');    // L28
79
+define('DB_USER_LABEL', 'User name'); // L28
80 80
 define('DB_USER_HELP', 'Name of the user account that will be used to connect to the database server'); // L65
81
-define('DB_PASS_LABEL', 'Password');    // L52
81
+define('DB_PASS_LABEL', 'Password'); // L52
82 82
 define('DB_PASS_HELP', 'Password of your database user account'); // L68
83
-define('DB_NAME_LABEL', 'Database name');    // L29
83
+define('DB_NAME_LABEL', 'Database name'); // L29
84 84
 define('DB_NAME_HELP', 'The name of database on the host. The installer will attempt to create the database if not exist'); // L64
85 85
 define('DB_CHARSET_LABEL', 'Database character set');
86 86
 define('DB_CHARSET_HELP', 'MySQL includes character set support that enables you to store data using a variety of character sets and perform comparisons according to a variety of collations.');
87 87
 define('DB_COLLATION_LABEL', 'Database collation');
88 88
 define('DB_COLLATION_HELP', 'A collation is a set of rules for comparing characters in a character set.');
89
-define('DB_PREFIX_LABEL', 'Table prefix');    // L30
89
+define('DB_PREFIX_LABEL', 'Table prefix'); // L30
90 90
 define('DB_PREFIX_HELP', 'This prefix will be added to all new tables created to avoid name conflicts in the database. If you are unsure, just keep the default'); // L63
91
-define('DB_PCONNECT_LABEL', 'Use persistent connection');    // L54
91
+define('DB_PCONNECT_LABEL', 'Use persistent connection'); // L54
92 92
 define('DB_PCONNECT_HELP', "Default is 'No'. Leave it blank if you are unsure"); // L69
93 93
 define('DB_DATABASE_LABEL', 'Database');
94 94
 define('LEGEND_ADMIN_ACCOUNT', 'Administrator account');
Please login to merge, or discard this patch.
htdocs/install/include/install_tpl.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
  **/
29 29
 
30 30
 defined('XOOPS_INSTALL') || die('XOOPS Installation wizard die');
31
-include_once '../language/' . $wizard->language . '/global.php';
31
+include_once '../language/'.$wizard->language.'/global.php';
32 32
 ?><!doctype html>
33 33
 <html lang="<?php echo _LANGCODE; ?>">
34 34
 
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     <meta name="description" content="">
41 41
     <meta name="author" content="">
42 42
 
43
-    <title><?php echo XOOPS_VERSION . ' : ' . XOOPS_INSTALL_WIZARD; ?>
44
-        (<?php echo ($wizard->pageIndex + 1) . '/' . count($wizard->pages); ?>)</title>
43
+    <title><?php echo XOOPS_VERSION.' : '.XOOPS_INSTALL_WIZARD; ?>
44
+        (<?php echo ($wizard->pageIndex + 1).'/'.count($wizard->pages); ?>)</title>
45 45
 
46 46
     <!-- Bootstrap Core CSS -->
47 47
     <link href="assets/css/bootstrap.min.css" rel="stylesheet">
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     }
65 65
     ?>
66 66
     <?php
67
-    if (file_exists('language/' . $wizard->language . '/style.css')) {
68
-        echo '<link rel="stylesheet" type="text/css" media="all" href="language/' . $wizard->language . '/style.css" />';
67
+    if (file_exists('language/'.$wizard->language.'/style.css')) {
68
+        echo '<link rel="stylesheet" type="text/css" media="all" href="language/'.$wizard->language.'/style.css" />';
69 69
     }
70 70
     ?>
71 71
     <script type="text/javascript" src="./assets/js/xo-installer.js"></script>
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-book"></i> <?php echo SUPPORT; ?> <b class="caret"></b></a>
95 95
                 <ul class="dropdown-menu">
96 96
                     <?php
97
-                    @include_once './language/' . $wizard->language . '/support.php';
97
+                    @include_once './language/'.$wizard->language.'/support.php';
98 98
                     foreach ($supports as $lang => $support) {
99
-                        echo '<li><a href="' . $support['url'] . '" target="_blank">' . $support['title'] . '</a></li>';
99
+                        echo '<li><a href="'.$support['url'].'" target="_blank">'.$support['title'].'</a></li>';
100 100
                     }
101 101
                     ?>
102 102
                 </ul>
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
                 <?php
117 117
                 foreach (array_keys($wizard->pages) as $k => $page) {
118 118
                     if ($k == $wizard->pageIndex) {
119
-                        echo'<li class="active"><a><i class="' . $wizard->pages[$page]['icon'] . '"></i> '
120
-                            . $wizard->pages[$page]['name'] . '</a></li>';
119
+                        echo'<li class="active"><a><i class="'.$wizard->pages[$page]['icon'].'"></i> '
120
+                            . $wizard->pages[$page]['name'].'</a></li>';
121 121
                     } elseif ($k > $wizard->pageIndex) {
122
-                        echo'<li class="disabled"><a><i class="' . $wizard->pages[$page]['icon'] . '"></i> '
123
-                            . $wizard->pages[$page]['name'] . '</a></li>';
122
+                        echo'<li class="disabled"><a><i class="'.$wizard->pages[$page]['icon'].'"></i> '
123
+                            . $wizard->pages[$page]['name'].'</a></li>';
124 124
                     } else {
125
-                        echo'<li><a href="' . $wizard->pageURI($page) . '"><i class="'
126
-                            . $wizard->pages[$page]['icon'] . ' text-success"></i> ' . $wizard->pages[$page]['name']
125
+                        echo'<li><a href="'.$wizard->pageURI($page).'"><i class="'
126
+                            . $wizard->pages[$page]['icon'].' text-success"></i> '.$wizard->pages[$page]['name']
127 127
                             . '</a></li>';
128 128
                     }
129 129
                 }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                                     <span class="<?php echo $wizard->pages[$wizard->currentPage]['icon']; ?> fa-5x"></span>
168 168
                                 </div>
169 169
                                 <div class="col-xs-9 text-right">
170
-                                    <div class="huge"><?php echo ($wizard->pageIndex + 1) . '/' . count($wizard->pages); ?></div>
170
+                                    <div class="huge"><?php echo ($wizard->pageIndex + 1).'/'.count($wizard->pages); ?></div>
171 171
                                     <div><?php echo XOOPS_INSTALLING; ?></div>
172 172
                                 </div>
173 173
                             </div>
@@ -179,8 +179,8 @@  discard block
 block discarded – undo
179 179
                     </div>
180 180
                 </div>
181 181
                 <?php
182
-                $versionParts=array();
183
-                $versionResult = preg_match ('/(^[a-z\s]*)([0-9\.]*)/i', XOOPS_VERSION, $versionParts);
182
+                $versionParts = array();
183
+                $versionResult = preg_match('/(^[a-z\s]*)([0-9\.]*)/i', XOOPS_VERSION, $versionParts);
184 184
                 ?>
185 185
 
186 186
                 <div class="col-lg-3 col-md-6">
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
          * Check the url to see if we reached 'page_end.php' and if so, launch the cleanup via ajax.
252 252
          **/
253 253
         if ('page_end.php' == location.pathname.substring(location.pathname.lastIndexOf('/') + 1)) {
254
-            $.post( "cleanup.php", { instsuffix: <?php echo isset($install_rename_suffix) ? "'" . $install_rename_suffix . "'" : "''"; ?> } );
254
+            $.post( "cleanup.php", { instsuffix: <?php echo isset($install_rename_suffix) ? "'".$install_rename_suffix."'" : "''"; ?> } );
255 255
         };
256 256
     });
257 257
 </script>
Please login to merge, or discard this patch.