Passed
Pull Request — master (#142)
by Michael
04:29
created
class/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
     {
260 260
         $retSet = [];
261 261
         foreach ($this->options as $option) {
262
-            if (1 == $this->getVar('set_' . $option)) {
262
+            if (1 == $this->getVar('set_'.$option)) {
263 263
                 $retSet[] = $option;
264 264
             }
265 265
         }
Please login to merge, or discard this patch.
class/files/user/UserPdf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
         $ret .= $this->phpcode->getPhpCodeCommentLine('Pdf Filename');
207 207
         $ret .= $this->phpcode->getPhpCodeCommentLine('Output');
208 208
         $ret .= $this->xc->getXcTplAssign('pdfoutput', "\$pdf->Output('{$tableName}.pdf', 'I')");
209
-        $ret .= $this->xc->getXcTplDisplay($moduleDirname . '_pdf.tpl', '', false);
209
+        $ret .= $this->xc->getXcTplDisplay($moduleDirname.'_pdf.tpl', '', false);
210 210
 
211 211
         return $ret;
212 212
     }
Please login to merge, or discard this patch.
class/files/user/UserXoopsVersion.php 1 patch
Indentation   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
 class UserXoopsVersion extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    * @var array
32
-    */
31
+     * @var array
32
+     */
33 33
     private $kw = [];
34 34
 
35 35
     /**
36
-    *  @public function constructor
37
-    *  @param null
38
-    */
36
+     *  @public function constructor
37
+     *  @param null
38
+     */
39 39
 
40 40
     public function __construct()
41 41
     {
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-    *  @static function getInstance
47
-    *  @param null
46
+     *  @static function getInstance
47
+     *  @param null
48 48
      * @return UserXoopsVersion
49 49
      */
50 50
     public static function getInstance()
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-    *  @public function write
62
-    *  @param $module
63
-    *  @param mixed $table
64
-    *  @param mixed $tables
65
-    *  @param $filename
61
+     *  @public function write
62
+     *  @param $module
63
+     *  @param mixed $table
64
+     *  @param mixed $tables
65
+     *  @param $filename
66 66
      */
67 67
     public function write($module, $table, $tables, $filename)
68 68
     {
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-    *  @public function setKeywords
81
-    *  @param mixed $keywords
80
+     *  @public function setKeywords
81
+     *  @param mixed $keywords
82 82
      */
83 83
     public function setKeywords($keywords)
84 84
     {
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-    *  @public function getKeywords
94
-    *  @param null
93
+     *  @public function getKeywords
94
+     *  @param null
95 95
      * @return array
96 96
      */
97 97
     public function getKeywords()
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
     }
142 142
 
143 143
     /**
144
-    *  @private function getXoopsVersionMySQL
145
-    *  @param $moduleDirname
146
-    *  @param $table
144
+     *  @private function getXoopsVersionMySQL
145
+     *  @param $moduleDirname
146
+     *  @param $table
147 147
      * @param $tables
148 148
      * @return string
149 149
      */
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     }
170 170
 
171 171
     /**
172
-    *  @private function getXoopsVersionSearch
172
+     *  @private function getXoopsVersionSearch
173 173
      * @param $moduleDirname
174 174
      *
175 175
      * @return string
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-    *  @private function getXoopsVersionComments
190
-    *  @param $moduleDirname
189
+     *  @private function getXoopsVersionComments
190
+     *  @param $moduleDirname
191 191
      *
192 192
      * @return string
193 193
      */
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
     }
207 207
 
208 208
     /**
209
-    *  @private function getXoopsVersionTemplatesAdmin
210
-    *  @param $moduleDirname
209
+     *  @private function getXoopsVersionTemplatesAdmin
210
+     *  @param $moduleDirname
211 211
      * @param $tables
212 212
      *
213 213
      * @return string
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     }
236 236
 
237 237
     /**
238
-    *  @private function getXoopsVersionTemplatesLine
238
+     *  @private function getXoopsVersionTemplatesLine
239 239
      * @param        $moduleDirname
240 240
      * @param        $type
241 241
      * @param string $extra
@@ -262,8 +262,8 @@  discard block
 block discarded – undo
262 262
     }
263 263
 
264 264
     /**
265
-    *  @private function getXoopsVersionTemplatesUser
266
-    *  @param $moduleDirname
265
+     *  @private function getXoopsVersionTemplatesUser
266
+     *  @param $moduleDirname
267 267
      * @param $tables
268 268
      * @return string
269 269
      */
@@ -325,8 +325,8 @@  discard block
 block discarded – undo
325 325
     }
326 326
 
327 327
     /**
328
-    *  @private function getXoopsVersionSubmenu
329
-       * @param $language
328
+     *  @private function getXoopsVersionSubmenu
329
+     * @param $language
330 330
      * @param $tables
331 331
      * @return string
332 332
      */
@@ -358,8 +358,8 @@  discard block
 block discarded – undo
358 358
     }
359 359
 
360 360
     /**
361
-    *  @private function getXoopsVersionBlocks
362
-      * @param $moduleDirname
361
+     *  @private function getXoopsVersionBlocks
362
+     * @param $moduleDirname
363 363
      * @param $tables
364 364
      * @param $language
365 365
      * @return string
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
     }
392 392
 
393 393
     /**
394
-    *  @private function getXoopsVersionTypeBlocks
394
+     *  @private function getXoopsVersionTypeBlocks
395 395
      * @param $moduleDirname
396 396
      * @param $tableName
397 397
      * @param $stuTableSoleName
@@ -434,57 +434,57 @@  discard block
 block discarded – undo
434 434
         $ret = $this->getDashComment('Config');
435 435
         $ret .= $this->getSimpleString('$c = 1;');
436 436
 		
437
-		$table_permissions = 0;
438
-		$table_admin = 0;
439
-		$table_user = 0;
440
-		$table_tag = 0;
441
-		$field_images = 0;
442
-		foreach ($tables as $table) {
443
-			$fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
444
-			foreach (array_keys($fields) as $f) {
445
-				$fieldElement = $fields[$f]->getVar('field_element');
446
-				switch ($fieldElement) {
447
-					case '3':
448
-					case '4':
449
-					case 3:
450
-					case 4:	
451
-						$fieldName = $fields[$f]->getVar('field_name');
452
-						$rpFieldName = $this->getRightString($fieldName);
453
-						$ucfFieldName = ucfirst($rpFieldName);
454
-						$stuFieldName = strtoupper($rpFieldName);
455
-						$ret .= $phpCodeVConfig->getPhpCodeCommentLine('Editor', $rpFieldName);
456
-						$ret .= $xCodeVConfig->getXcLoad('xoopseditorhandler');
457
-						$ret .= $xCodeVConfig->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()');
458
-						$editor = [
459
-							'name'     => "'editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$stuFieldName}'", 'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'",
460
-							'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())',
461
-						];
462
-						$ret .= $uCodeVConfig->getUserModVersion(3, $editor, 'config', '$c');
463
-						$ret .= $this->getSimpleString('++$c;');
464
-					break;
437
+        $table_permissions = 0;
438
+        $table_admin = 0;
439
+        $table_user = 0;
440
+        $table_tag = 0;
441
+        $field_images = 0;
442
+        foreach ($tables as $table) {
443
+            $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
444
+            foreach (array_keys($fields) as $f) {
445
+                $fieldElement = $fields[$f]->getVar('field_element');
446
+                switch ($fieldElement) {
447
+                    case '3':
448
+                    case '4':
449
+                    case 3:
450
+                    case 4:	
451
+                        $fieldName = $fields[$f]->getVar('field_name');
452
+                        $rpFieldName = $this->getRightString($fieldName);
453
+                        $ucfFieldName = ucfirst($rpFieldName);
454
+                        $stuFieldName = strtoupper($rpFieldName);
455
+                        $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Editor', $rpFieldName);
456
+                        $ret .= $xCodeVConfig->getXcLoad('xoopseditorhandler');
457
+                        $ret .= $xCodeVConfig->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()');
458
+                        $editor = [
459
+                            'name'     => "'editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$stuFieldName}'", 'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'",
460
+                            'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())',
461
+                        ];
462
+                        $ret .= $uCodeVConfig->getUserModVersion(3, $editor, 'config', '$c');
463
+                        $ret .= $this->getSimpleString('++$c;');
464
+                    break;
465 465
 					
466
-					case '10':
467
-					case '11':
468
-					case '12':
469
-					case '13':
470
-					case '14':
471
-					case 10:
472
-					case 11:
473
-					case 12:
474
-					case 13:
475
-					case 14:
476
-						$field_images = 1;
477
-					break;
478
-					case 'else':
479
-					default:
480
-					break;
481
-				}
482
-			}
483
-			if (1 == $table->getVar('table_permissions')) { $table_permissions = 1;}
484
-			if (1 == $table->getVar('table_admin')) { $table_admin = 1;}
485
-			if (1 == $table->getVar('table_user')) { $table_user = 1;}
486
-			if (1 == $table->getVar('table_tag')) { $table_tag = 1;}
487
-		}
466
+                    case '10':
467
+                    case '11':
468
+                    case '12':
469
+                    case '13':
470
+                    case '14':
471
+                    case 10:
472
+                    case 11:
473
+                    case 12:
474
+                    case 13:
475
+                    case 14:
476
+                        $field_images = 1;
477
+                    break;
478
+                    case 'else':
479
+                    default:
480
+                    break;
481
+                }
482
+            }
483
+            if (1 == $table->getVar('table_permissions')) { $table_permissions = 1;}
484
+            if (1 == $table->getVar('table_admin')) { $table_admin = 1;}
485
+            if (1 == $table->getVar('table_user')) { $table_user = 1;}
486
+            if (1 == $table->getVar('table_tag')) { $table_tag = 1;}
487
+        }
488 488
 
489 489
         if (1 === $table_permissions) {
490 490
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Get groups');
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
     }
635 635
 
636 636
     /**
637
-    *  @private function getNotificationsType
637
+     *  @private function getNotificationsType
638 638
      * @param $language
639 639
      * @param $type
640 640
      * @param $tableName
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
     }
678 678
 
679 679
     /**
680
-    *  @private function getXoopsVersionNotifications
680
+     *  @private function getXoopsVersionNotifications
681 681
      * @param $module
682 682
      * @param $language
683 683
      * @return string
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
     }
768 768
 
769 769
     /**
770
-    *  @private function getXoopsVersionNotificationGlobal
770
+     *  @private function getXoopsVersionNotificationGlobal
771 771
      * @param $language
772 772
      * @param $type
773 773
      * @param $name
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
     }
795 795
 
796 796
     /**
797
-    *  @private function getXoopsVersionNotificationCategory
797
+     *  @private function getXoopsVersionNotificationCategory
798 798
      * @param $language
799 799
      * @param $type
800 800
      * @param $name
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
     }
823 823
 
824 824
     /**
825
-    *  @private function getXoopsVersionNotificationTableName
825
+     *  @private function getXoopsVersionNotificationTableName
826 826
      * @param $language
827 827
      * @param $type
828 828
      * @param $name
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
     }
852 852
 
853 853
     /**
854
-    *  @private function getXoopsVersionNotifications
854
+     *  @private function getXoopsVersionNotifications
855 855
      * @param $language
856 856
      * @param $type
857 857
      * @param $name
@@ -883,8 +883,8 @@  discard block
 block discarded – undo
883 883
     }
884 884
 
885 885
     /**
886
-    *  @public function render
887
-    *  @param null
886
+     *  @public function render
887
+     *  @param null
888 888
      * @return bool|string
889 889
      */
890 890
     public function render()
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
         if (in_array(1, $tableBlocks)) {
929 929
             $content .= $this->getXoopsVersionBlocks($moduleDirname, $tables, $language);
930 930
         }
931
-		$content .= $this->getXoopsVersionConfig($module, $tables, $language);
931
+        $content .= $this->getXoopsVersionConfig($module, $tables, $language);
932 932
         if (in_array(1, $tableNotifications)) {
933 933
             $content .= $this->getXoopsVersionNotifications($module, $language);
934 934
         }
Please login to merge, or discard this patch.
class/modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@
 block discarded – undo
434 434
     {
435 435
         $retModules = [];
436 436
         foreach ($this->options as $option) {
437
-            if (1 == $this->getVar('mod_' . $option)) {
437
+            if (1 == $this->getVar('mod_'.$option)) {
438 438
                 $retModules[] = $option;
439 439
             }
440 440
         }
Please login to merge, or discard this patch.
class/tables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
     {
273 273
         $retTable = [];
274 274
         foreach ($this->options as $option) {
275
-            if (1 == $this->getVar('table_' . $option)) {
275
+            if (1 == $this->getVar('table_'.$option)) {
276 276
                 $retTable[] = $option;
277 277
             }
278 278
         }
Please login to merge, or discard this patch.