Passed
Branch master (4170e1)
by Gino
04:08
created
class/files/TDMCreateFile.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
      * @public function create
117 117
      *
118 118
      * @param $moduleDirname
119
-     * @param $subdir
119
+     * @param string $subdir
120 120
      * @param $fileName
121 121
      * @param $content
122
-     * @param $created
123
-     * @param $notCreated
122
+     * @param string $created
123
+     * @param string $notCreated
124 124
      * @param $mode
125 125
      */
126 126
     public function create($moduleDirname, $subdir = null, $fileName = null, $content = '', $created = null, $notCreated = null, $mode = 'w+')
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     *  @param string $subdir
183 183
     */
184 184
     /**
185
-     * @param $subdir
185
+     * @param string $subdir
186 186
      */
187 187
     private function setSubDir($subdir)
188 188
     {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     *  @param string $content
228 228
     */
229 229
     /**
230
-     * @param $content
230
+     * @param string $content
231 231
      */
232 232
     private function setContent($content)
233 233
     {
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
     *  @param string $mode
315 315
     */
316 316
     /**
317
-     * @param $mode
317
+     * @param string $mode
318 318
      */
319 319
     private function setMode($mode)
320 320
     {
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
      *  @param $string
430 430
      */
431 431
     /**
432
-     * @param $string
432
+     * @param string $string
433 433
      *
434 434
      * @return string
435 435
      */
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      *  @param $string
444 444
      */
445 445
     /**
446
-     * @param $string
446
+     * @param string $string
447 447
      *
448 448
      * @return string
449 449
      */
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
     /**
523 523
      * @private function getHeaderComment
524 524
      *
525
-     * @param $comment
525
+     * @param string $comment
526 526
      *
527 527
      * @return string
528 528
      */
Please login to merge, or discard this patch.
class/files/user/UserXoopsVersion.php 2 patches
Doc Comments   +30 added lines, -19 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param $module
92 92
      * @param $table
93 93
      * @param $tables
94
-     * @param $filename
94
+     * @param string $filename
95 95
      */
96 96
     public function write($module, $table, $tables, $filename)
97 97
     {
@@ -140,6 +140,10 @@  discard block
 block discarded – undo
140 140
      *
141 141
      * @return string
142 142
      */
143
+
144
+    /**
145
+     * @param string $language
146
+     */
143 147
     private function getXoopsVersionHeader($module, $language)
144 148
     {
145 149
         $date = date(_DBDATESTRING);
@@ -357,7 +361,7 @@  discard block
 block discarded – undo
357 361
     *  @param $language
358 362
     */
359 363
     /**
360
-     * @param $language
364
+     * @param string $language
361 365
      *
362 366
      * @return string
363 367
      */
@@ -393,7 +397,7 @@  discard block
 block discarded – undo
393 397
     */
394 398
     /**
395 399
      * @param $moduleDirname
396
-     * @param $language
400
+     * @param string $language
397 401
      *
398 402
      * @return string
399 403
      */
@@ -453,7 +457,7 @@  discard block
 block discarded – undo
453 457
     /**
454 458
      * @param $module
455 459
      * @param $table
456
-     * @param $language
460
+     * @param string $language
457 461
      *
458 462
      * @return string
459 463
      */
@@ -646,7 +650,7 @@  discard block
 block discarded – undo
646 650
     */
647 651
     /**
648 652
      * @param $moduleDirname
649
-     * @param $language
653
+     * @param string $language
650 654
      *
651 655
      * @return string
652 656
      */
@@ -736,10 +740,11 @@  discard block
 block discarded – undo
736 740
     */
737 741
     /**
738 742
      * @param $language
739
-     * @param $type
740
-     * @param $name
741
-     * @param $title
743
+     * @param string $type
744
+     * @param string $name
745
+     * @param string $title
742 746
      * @param $from
747
+     * @param integer $num
743 748
      *
744 749
      * @return string
745 750
      */
@@ -760,10 +765,12 @@  discard block
 block discarded – undo
760 765
     */
761 766
     /**
762 767
      * @param $language
763
-     * @param $type
764
-     * @param $name
765
-     * @param $title
768
+     * @param string $type
769
+     * @param string $name
770
+     * @param string $title
766 771
      * @param $from
772
+     * @param string $allow
773
+     * @param integer $num
767 774
      *
768 775
      * @return string
769 776
      */
@@ -784,12 +791,13 @@  discard block
 block discarded – undo
784 791
     */
785 792
     /**
786 793
      * @param $language
787
-     * @param $type
788
-     * @param $name
789
-     * @param $title
794
+     * @param string $type
795
+     * @param string $name
796
+     * @param string $title
790 797
      * @param $from
791 798
      * @param $item
792 799
      * @param $allow
800
+     * @param integer $num
793 801
      *
794 802
      * @return string
795 803
      */
@@ -810,12 +818,15 @@  discard block
 block discarded – undo
810 818
     */
811 819
     /**
812 820
      * @param $language
813
-     * @param $type
814
-     * @param $name
815
-     * @param $title
821
+     * @param string $type
822
+     * @param string $name
823
+     * @param string $title
816 824
      * @param $from
817 825
      * @param $item
818
-     * @param $mail
826
+     * @param string $mail
827
+     * @param string $category
828
+     * @param string $table
829
+     * @param integer $num
819 830
      *
820 831
      * @return string
821 832
      */
@@ -838,7 +849,7 @@  discard block
 block discarded – undo
838 849
     *  @param null
839 850
     */
840 851
     /**
841
-     * @return bool|string
852
+     * @return null|string
842 853
      */
843 854
     public function render()
844 855
     {
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
     */
39 39
     private $xoopscode = null;
40 40
 	
41
-	/*
41
+    /*
42 42
     * @var mixed
43 43
     */
44 44
     private $usercode = null;
45 45
 	
46
-	/*
46
+    /*
47 47
     * @var array
48 48
     */
49 49
     private $keywords = array();
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'about', false, true);
261 261
         $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'header', false, true);
262 262
         $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'index', false, true);
263
-		$tablePermissions = array();
263
+        $tablePermissions = array();
264 264
         foreach (array_keys($tables) as $t) {
265 265
             $tableName = $tables[$t]->getVar('table_name');
266 266
             $tablePermissions[] = $tables[$t]->getVar('table_permissions');
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $ret = $this->getHeaderComment('Submenu');
367 367
         $i = 1;
368 368
         $tableSubmit = array();
369
-		foreach (array_keys($tables) as $t) {
369
+        foreach (array_keys($tables) as $t) {
370 370
             $tableName = $tables[$t]->getVar('table_name');
371 371
             $tableSubmit[] = $tables[$t]->getVar('table_submit');
372 372
             if (1 == $tables[$t]->getVar('table_submenu')) {
@@ -464,9 +464,9 @@  discard block
 block discarded – undo
464 464
         $ret .= $this->getSimpleString('$c = 1;');
465 465
         $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
466 466
         $fieldName = array();
467
-		$fieldElement = array();
468
-		foreach (array_keys($fields) as $f) {
469
-			$fieldName[] = $fields[$f]->getVar('field_name');
467
+        $fieldElement = array();
468
+        foreach (array_keys($fields) as $f) {
469
+            $fieldName[] = $fields[$f]->getVar('field_name');
470 470
             $fieldElement[] = $fields[$f]->getVar('field_element');
471 471
         }
472 472
         if (in_array(4, $fieldElement)) {            
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
         $stuTypeOfNotify = strtoupper($typeOfNotify);
620 620
         $notifyFile = explode(', ', $notifyFile);
621 621
         $notifyFile = implode(', ', $notifyFile);
622
-		$ret = '';
622
+        $ret = '';
623 623
         switch ($type) {
624 624
             case 'category':
625 625
                 $ret .= $this->getCommentLine('Category Notify');
@@ -661,9 +661,9 @@  discard block
 block discarded – undo
661 661
         $notifyFiles = array();
662 662
         $single = 'single';
663 663
         $tables = $this->getTableTables($module->getVar('mod_id'), 'table_order');
664
-		$tableCategory = array();
665
-		$tableBroken = array();
666
-		$tableSubmit = array();
664
+        $tableCategory = array();
665
+        $tableBroken = array();
666
+        $tableSubmit = array();
667 667
         foreach (array_keys($tables) as $t) {
668 668
             $tableId = $tables[$t]->getVar('table_id');
669 669
             $tableMid = $tables[$t]->getVar('table_mid');
@@ -850,19 +850,19 @@  discard block
 block discarded – undo
850 850
         $language = $this->getLanguage($moduleDirname, 'MI');
851 851
         $content = $this->getHeaderFilesComments($module, $filename);
852 852
         $content .= $this->getXoopsVersionHeader($module, $language);        
853
-		if (1 == $module->getVar('mod_admin')) {
853
+        if (1 == $module->getVar('mod_admin')) {
854 854
             $content .= $this->getXoopsVersionTemplatesAdmin($moduleDirname, $tables);
855 855
         }
856 856
         if (1 == $module->getVar('mod_user')) {
857 857
             $content .= $this->getXoopsVersionTemplatesUser($moduleDirname, $tables);
858 858
         }
859 859
         $content .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables);
860
-		$tableSearch = array();
861
-		$tableComments = array();
862
-		$tableSubmenu = array();
863
-		$tableBlocks = array();
864
-		$tableNotifications = array();
865
-		foreach (array_keys($tables) as $t) {
860
+        $tableSearch = array();
861
+        $tableComments = array();
862
+        $tableSubmenu = array();
863
+        $tableBlocks = array();
864
+        $tableNotifications = array();
865
+        foreach (array_keys($tables) as $t) {
866 866
             $tableSearch[] = $tables[$t]->getVar('table_search');
867 867
             $tableComments[] = $tables[$t]->getVar('table_comments');
868 868
             $tableSubmenu[] = $tables[$t]->getVar('table_submenu');
Please login to merge, or discard this patch.
class/files/TDMCreateArchitecture.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
     public function setBaseFoldersFiles($module)
81 81
     {
82 82
         global $xoopsConfig;
83
-		// Module
83
+        // Module
84 84
         $modId = $module->getVar('mod_id');
85 85
         $language = $xoopsConfig['language'];
86 86
         // Id of tables
87 87
         $tables = $this->tdmcfile->getTableTables($modId);
88 88
         //
89 89
         $table = null;
90
-		$tableName = array();
90
+        $tableName = array();
91 91
         foreach (array_keys($tables) as $t) {
92 92
             $tableId = $tables[$t]->getVar('table_id');
93 93
             $tableName[] = $tables[$t]->getVar('table_name');
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         //
225 225
         $table = array();
226 226
         $tableCategory = array();
227
-		$tableName = array();
227
+        $tableName = array();
228 228
         $tableImage = array();
229 229
         $tableAdmin = array();
230 230
         $tableUser = array();
Please login to merge, or discard this patch.