Completed
Push — master ( 6b7a6d...74143b )
by Gino
20s
created
class/files/user/UserXoopsVersion.php 3 patches
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                             'demo_site_url' => "'{$module->getVar('mod_demo_site_url')}'", 'demo_site_name' => "'{$module->getVar('mod_demo_site_name')}'", 'support_url' => "'{$module->getVar('mod_support_url')}'",
145 145
                             'support_name' => "'{$module->getVar('mod_support_name')}'", 'module_website_url' => "'{$module->getVar('mod_website_url')}'", 'module_website_name' => "'{$module->getVar('mod_website_name')}'", 'release' => "'{$module->getVar('mod_release')}'", 'module_status' => "'{$module->getVar('mod_status')}'",
146 146
                             'system_menu' => '1', 'hasAdmin' => $ha, 'hasMain' => $hm, 'adminindex' => "'admin/index.php'", 'adminmenu' => "'admin/menu.php'",
147
-                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'", );
147
+                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'",);
148 148
 
149 149
         $ret .= $uCodeVHeader->getUserModVersion(1, $descriptions);
150 150
 
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
         $ret = $phpCodeVTBlocks->getPhpCodeCommentLine("{$ucfTableName}");
446 446
         $blocks = array('file' => "'{$tableName}.php'", 'name' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}", 'description' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}_DESC",
447 447
                         'show_func' => "'b_{$moduleDirname}_{$tableName}_show'", 'edit_func' => "'b_{$moduleDirname}_{$tableName}_edit'",
448
-                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'", );
448
+                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'",);
449 449
         $ret .= $uCodeVTBlocks->getUserModVersion(3, $blocks, 'blocks', '$b');
450 450
         $ret .= $this->getSimpleString('++$b;');
451 451
 
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
                 $ret .= $xCodeVConfig->getXcLoad('xoopseditorhandler');
486 486
                 $ret .= $xCodeVConfig->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()');
487 487
                 $editor = array('name' => "'{$moduleDirname}_editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$stuFieldName}'", 'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'",
488
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())', );
488
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())',);
489 489
                 $ret .= $uCodeVConfig->getUserModVersion(3, $editor, 'config', '$c');
490 490
                 $ret .= $this->getSimpleString('++$c;');
491 491
             }
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
             $group = $xCodeVConfig->getXcEqualsOperator('$groups[$group] ', '$key');
499 499
             $ret .= $phpCodeVConfig->getPhpCodeForeach('xoopsGroups', false, 'key', 'group', $group);
500 500
             $groups = array('name' => "'groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
501
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups', );
501
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups',);
502 502
             $ret .= $uCodeVConfig->getUserModVersion(3, $groups, 'config', '$c');
503 503
             $ret .= $this->getSimpleString('++$c;');
504 504
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Get Admin groups');
@@ -509,14 +509,14 @@  discard block
 block discarded – undo
509 509
             $adminGroup = $xCodeVConfig->getXcEqualsOperator('$adminGroups[$adminGroup] ', '$key');
510 510
             $ret .= $phpCodeVConfig->getPhpCodeForeach('adminXoopsGroups', false, 'key', 'adminGroup', $adminGroup);
511 511
             $adminGroups = array('name' => "'admin_groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
512
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups', );
512
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups',);
513 513
             $ret .= $uCodeVConfig->getUserModVersion(3, $adminGroups, 'config', '$c');
514 514
             $ret .= $this->getSimpleString('++$c;');
515 515
         }
516 516
         $keyword = implode(', ', $this->getKeywords());
517 517
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords');
518 518
         $arrayKeyword = array('name' => "'keywords'", 'title' => "'{$language}KEYWORDS'", 'description' => "'{$language}KEYWORDS_DESC'",
519
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'", );
519
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'",);
520 520
         $ret .= $uCodeVConfig->getUserModVersion(3, $arrayKeyword, 'config', '$c');
521 521
         $ret .= $this->getSimpleString('++$c;');
522 522
         unset($this->keywords);
@@ -527,80 +527,80 @@  discard block
 block discarded – undo
527 527
         if (in_array(10, $fieldElement) || in_array(11, $fieldElement) || in_array(12, $fieldElement) || in_array(13, $fieldElement) || in_array(14, $fieldElement)) {
528 528
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image');
529 529
             $maxsize = array('name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'",
530
-                'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000', );
530
+                'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000',);
531 531
             $ret .= $uCodeVConfig->getUserModVersion(3, $maxsize, 'config', '$c');
532 532
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : mimetypes of image');
533 533
             $ret .= $this->getSimpleString('++$c;');
534 534
             $mimetypes = array('name' => "'mimetypes'", 'title' => "'{$language}MIMETYPES'", 'description' => "'{$language}MIMETYPES_DESC'",
535 535
                 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => "array('image/gif', 'image/jpeg', 'image/png')",
536
-                'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')", );
536
+                'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')",);
537 537
             $ret .= $uCodeVConfig->getUserModVersion(3, $mimetypes, 'config', '$c');
538 538
             $ret .= $this->getSimpleString('++$c;');
539 539
         }
540 540
         if (1 == $table->getVar('table_admin')) {
541 541
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager');
542 542
             $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'",
543
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
543
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
544 544
             $ret .= $uCodeVConfig->getUserModVersion(3, $adminPager, 'config', '$c');
545 545
             $ret .= $this->getSimpleString('++$c;');
546 546
         }
547 547
         if (1 == $table->getVar('table_user')) {
548 548
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('User pager');
549 549
             $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
550
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
550
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
551 551
             $ret .= $uCodeVConfig->getUserModVersion(3, $userPager, 'config', '$c');
552 552
             $ret .= $this->getSimpleString('++$c;');
553 553
         }
554 554
         if (1 == $table->getVar('table_tag')) {
555 555
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag');
556 556
             $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
557
-                    'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
557
+                    'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
558 558
             $ret .= $uCodeVConfig->getUserModVersion(3, $useTag, 'config', '$c');
559 559
             $ret .= $this->getSimpleString('++$c;');
560 560
         }
561 561
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Number column');
562 562
         $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'",
563
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
563
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
564 564
         $ret .= $uCodeVConfig->getUserModVersion(3, $numbCol, 'config', '$c');
565 565
         $ret .= $this->getSimpleString('++$c;');
566 566
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Divide by');
567 567
         $divideby = array('name' => "'divideby'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
568
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
568
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
569 569
         $ret .= $uCodeVConfig->getUserModVersion(3, $divideby, 'config', '$c');
570 570
         $ret .= $this->getSimpleString('++$c;');
571 571
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Table type');
572 572
         $tableType = array('name' => "'table_type'", 'title' => "'{$language}TABLE_TYPE'", 'description' => "'{$language}DIVIDEBY_DESC'",
573
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')", );
573
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')",);
574 574
         $ret .= $uCodeVConfig->getUserModVersion(3, $tableType, 'config', '$c');
575 575
         $ret .= $this->getSimpleString('++$c;');
576 576
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Panel by');
577 577
         $panelType = array('name' => "'panel_type'", 'title' => "'{$language}PANEL_TYPE'", 'description' => "'{$language}PANEL_TYPE_DESC'",
578
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')", );
578
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')",);
579 579
         $ret .= $uCodeVConfig->getUserModVersion(3, $panelType, 'config', '$c');
580 580
         $ret .= $this->getSimpleString('++$c;');
581 581
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Advertise');
582 582
         $advertise = array('name' => "'advertise'", 'title' => "'{$language}ADVERTISE'", 'description' => "'{$language}ADVERTISE_DESC'",
583
-                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''", );
583
+                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''",);
584 584
         $ret .= $uCodeVConfig->getUserModVersion(3, $advertise, 'config', '$c');
585 585
         $ret .= $this->getSimpleString('++$c;');
586 586
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Bookmarks');
587 587
         $bookmarks = array('name' => "'bookmarks'", 'title' => "'{$language}BOOKMARKS'", 'description' => "'{$language}BOOKMARKS_DESC'",
588
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
588
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
589 589
         $ret .= $uCodeVConfig->getUserModVersion(3, $bookmarks, 'config', '$c');
590 590
         $ret .= $this->getSimpleString('++$c;');
591 591
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Facebook Comments');
592 592
         $facebookComments = array('name' => "'facebook_comments'", 'title' => "'{$language}FACEBOOK_COMMENTS'", 'description' => "'{$language}FACEBOOK_COMMENTS_DESC'",
593
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
593
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
594 594
         $ret .= $uCodeVConfig->getUserModVersion(3, $facebookComments, 'config', '$c');
595 595
         $ret .= $this->getSimpleString('++$c;');
596 596
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Disqus Comments');
597 597
         $disqusComments = array('name' => "'disqus_comments'", 'title' => "'{$language}DISQUS_COMMENTS'", 'description' => "'{$language}DISQUS_COMMENTS_DESC'",
598
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
598
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
599 599
         $ret .= $uCodeVConfig->getUserModVersion(3, $disqusComments, 'config', '$c');
600 600
         $ret .= $this->getSimpleString('++$c;');
601 601
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Maintained by');
602 602
         $maintainedby = array('name' => "'maintainedby'", 'title' => "'{$language}MAINTAINEDBY'", 'description' => "'{$language}MAINTAINEDBY_DESC'",
603
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'", );
603
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'",);
604 604
         $ret .= $uCodeVConfig->getUserModVersion(3, $maintainedby, 'config', '$c');
605 605
         $ret .= $this->getSimpleString('unset($c);');
606 606
 
@@ -638,14 +638,14 @@  discard block
 block discarded – undo
638 638
             case 'category':
639 639
                 $ret .= $phpCodeNType->getPhpCodeCommentLine('Category Notify');
640 640
                 $category = array('name' => "'category'", 'title' => "'{$language}{$stuTableName}_NOTIFY'", 'description' => "'{$language}{$stuTableName}_NOTIFY_DESC'",
641
-                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1', );
641
+                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1',);
642 642
                 $ret .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'");
643 643
                 break;
644 644
             case 'event':
645 645
                 $ret .= $phpCodeNType->getPhpCodeCommentLine('Event Notify');
646 646
                 $event = array('name' => "'{$typeOfNotify}'", 'category' => "'{$tableName}'", 'admin_only' => '1', "'title'" => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY'",
647 647
                                 'caption' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_CAPTION'", 'description' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_DESC'",
648
-                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", );
648
+                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",);
649 649
                 $ret .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'");
650 650
                 break;
651 651
         }
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
         $implodeFrom = implode(".php', '", $from);
769 769
         $ret = $phpCodeVNG->getPhpCodeCommentLine('Global Notify');
770 770
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
771
-                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", );
771
+                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",);
772 772
         $ret .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
773 773
 
774 774
         return $ret;
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
         $impFile = implode(".php', '", $file);
795 795
         $ret = $phpCodeVNC->getPhpCodeCommentLine('Category Notify');
796 796
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
797
-                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
797
+                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
798 798
         $ret .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
799 799
 
800 800
         return $ret;
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
         $ucfTitle = ucfirst($title);
823 823
         $ret = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle.' Notify');
824 824
         $table = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
825
-                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
825
+                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
826 826
         $ret .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num);
827 827
 
828 828
         return $ret;
@@ -852,7 +852,7 @@  discard block
 block discarded – undo
852 852
         $ret = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle.' Notify');
853 853
         $event = array('name' => "'{$name}'", 'category' => "'{$category}'", 'admin_only' => "{$admin}", 'title' => "{$language}{$title}_{$table}_NOTIFY",
854 854
                         'caption' => "{$language}{$title}_{$table}_NOTIFY_CAPTION", 'description' => "{$language}{$title}_{$table}_NOTIFY_DESC",
855
-                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT", );
855
+                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT",);
856 856
         $ret .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
857 857
 
858 858
         return $ret;
Please login to merge, or discard this patch.
Doc Comments   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
 
60 60
     /**
61 61
     *  @public function write
62
-    *  @param $module
62
+    *  @param string $module
63 63
     *  @param mixed $table
64 64
     *  @param mixed $tables
65
-    *  @param $filename
65
+    *  @param string $filename
66 66
      */
67 67
     public function write($module, $table, $tables, $filename)
68 68
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * @private function getXoopsVersionHeader
104 104
      * @param $module
105
-     * @param $language
105
+     * @param string $language
106 106
      *
107 107
      * @return string
108 108
      */
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 
325 325
     /**
326 326
     *  @private function getXoopsVersionSubmenu
327
-       * @param $language
327
+       * @param string $language
328 328
      * @param $tables
329 329
      * @return string
330 330
      */
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     *  @private function getXoopsVersionBlocks
360 360
       * @param $moduleDirname
361 361
      * @param $tables
362
-     * @param $language
362
+     * @param string $language
363 363
      * @return string
364 364
      */
365 365
     private function getXoopsVersionBlocks($moduleDirname, $tables, $language)
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     *  @private function getXoopsVersionTypeBlocks
393 393
      * @param $moduleDirname
394 394
      * @param $tableName
395
-     * @param $stuTableSoleName
395
+     * @param string $stuTableSoleName
396 396
      * @param $language
397 397
      * @param $type
398 398
      * @return string
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     *  @private function getXoopsVersionConfig
418 418
      * @param $module
419 419
      * @param $table
420
-     * @param $language
420
+     * @param string $language
421 421
      *
422 422
      * @return string
423 423
      */
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
     /**
607 607
     *  @private function getXoopsVersionNotifications
608 608
      * @param $module
609
-     * @param $language
609
+     * @param string $language
610 610
      * @return string
611 611
      */
612 612
     private function getXoopsVersionNotifications($module, $language)
@@ -696,12 +696,12 @@  discard block
 block discarded – undo
696 696
     /**
697 697
     *  @private function getXoopsVersionNotificationGlobal
698 698
      * @param $language
699
-     * @param $type
700
-     * @param $name
701
-     * @param $title
699
+     * @param string $type
700
+     * @param string $name
701
+     * @param string $title
702 702
      * @param $from
703 703
      *
704
-     * @param $num
704
+     * @param integer $num
705 705
      * @return string
706 706
      */
707 707
     private function getXoopsVersionNotificationGlobal($language, $type, $name, $title, $from, $num)
@@ -721,13 +721,13 @@  discard block
 block discarded – undo
721 721
     /**
722 722
     *  @private function getXoopsVersionNotificationCategory
723 723
      * @param $language
724
-     * @param $type
725
-     * @param $name
726
-     * @param $title
724
+     * @param string $type
725
+     * @param string $name
726
+     * @param string $title
727 727
      * @param $file
728 728
      * @param $item
729
-     * @param $allow
730
-     * @param $num
729
+     * @param string $allow
730
+     * @param integer $num
731 731
      * @return string
732 732
      */
733 733
     private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $file, $item, $allow, $num)
@@ -747,14 +747,14 @@  discard block
 block discarded – undo
747 747
     /**
748 748
     *  @private function getXoopsVersionNotificationTableName
749 749
      * @param $language
750
-     * @param $type
750
+     * @param string $type
751 751
      * @param $name
752 752
      * @param $title
753 753
      * @param $file
754 754
      * @param $item
755
-     * @param $allow
755
+     * @param integer $allow
756 756
      *
757
-     * @param $num
757
+     * @param integer $num
758 758
      * @return string
759 759
      */
760 760
     private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $file, $item, $allow, $num)
@@ -774,15 +774,15 @@  discard block
 block discarded – undo
774 774
     /**
775 775
     *  @private function getXoopsVersionNotifications
776 776
      * @param $language
777
-     * @param $type
778
-     * @param $name
777
+     * @param string $type
778
+     * @param string $name
779 779
      * @param $category
780
-     * @param $admin
780
+     * @param integer $admin
781 781
      * @param $title
782
-     * @param $table
783
-     * @param $mail
782
+     * @param string $table
783
+     * @param string $mail
784 784
      *
785
-     * @param $num
785
+     * @param integer $num
786 786
      * @return string
787 787
      */
788 788
     private function getXoopsVersionNotificationCodeComplete($language, $type, $name, $category, $admin, $title, $table, $mail, $num)
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
     /**
805 805
     *  @public function render
806 806
     *  @param null
807
-     * @return bool|string
807
+     * @return null|string
808 808
      */
809 809
     public function render()
810 810
     {
Please login to merge, or discard this patch.
Indentation   +41 added lines, -41 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 = array();
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()
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /**
142
-    *  @private function getXoopsVersionMySQL
143
-    *  @param $moduleDirname
144
-    *  @param $table
142
+     *  @private function getXoopsVersionMySQL
143
+     *  @param $moduleDirname
144
+     *  @param $table
145 145
      * @param $tables
146 146
      * @return string
147 147
      */
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     }
168 168
 
169 169
     /**
170
-    *  @private function getXoopsVersionSearch
170
+     *  @private function getXoopsVersionSearch
171 171
      * @param $moduleDirname
172 172
      *
173 173
      * @return string
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
     }
185 185
 
186 186
     /**
187
-    *  @private function getXoopsVersionComments
188
-    *  @param $moduleDirname
187
+     *  @private function getXoopsVersionComments
188
+     *  @param $moduleDirname
189 189
      *
190 190
      * @return string
191 191
      */
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
     }
205 205
 
206 206
     /**
207
-    *  @private function getXoopsVersionTemplatesAdmin
208
-    *  @param $moduleDirname
207
+     *  @private function getXoopsVersionTemplatesAdmin
208
+     *  @param $moduleDirname
209 209
      * @param $tables
210 210
      *
211 211
      * @return string
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     }
234 234
 
235 235
     /**
236
-    *  @private function getXoopsVersionTemplatesLine
236
+     *  @private function getXoopsVersionTemplatesLine
237 237
      * @param        $moduleDirname
238 238
      * @param        $type
239 239
      * @param string $extra
@@ -260,8 +260,8 @@  discard block
 block discarded – undo
260 260
     }
261 261
 
262 262
     /**
263
-    *  @private function getXoopsVersionTemplatesUser
264
-    *  @param $moduleDirname
263
+     *  @private function getXoopsVersionTemplatesUser
264
+     *  @param $moduleDirname
265 265
      * @param $tables
266 266
      * @return string
267 267
      */
@@ -323,8 +323,8 @@  discard block
 block discarded – undo
323 323
     }
324 324
 
325 325
     /**
326
-    *  @private function getXoopsVersionSubmenu
327
-       * @param $language
326
+     *  @private function getXoopsVersionSubmenu
327
+     * @param $language
328 328
      * @param $tables
329 329
      * @return string
330 330
      */
@@ -356,8 +356,8 @@  discard block
 block discarded – undo
356 356
     }
357 357
 
358 358
     /**
359
-    *  @private function getXoopsVersionBlocks
360
-      * @param $moduleDirname
359
+     *  @private function getXoopsVersionBlocks
360
+     * @param $moduleDirname
361 361
      * @param $tables
362 362
      * @param $language
363 363
      * @return string
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
     }
390 390
 
391 391
     /**
392
-    *  @private function getXoopsVersionTypeBlocks
392
+     *  @private function getXoopsVersionTypeBlocks
393 393
      * @param $moduleDirname
394 394
      * @param $tableName
395 395
      * @param $stuTableSoleName
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     }
415 415
 
416 416
     /**
417
-    *  @private function getXoopsVersionConfig
417
+     *  @private function getXoopsVersionConfig
418 418
      * @param $module
419 419
      * @param $table
420 420
      * @param $language
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
     }
566 566
 
567 567
     /**
568
-    *  @private function getNotificationsType
568
+     *  @private function getNotificationsType
569 569
      * @param $language
570 570
      * @param $type
571 571
      * @param $tableName
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
     }
605 605
 
606 606
     /**
607
-    *  @private function getXoopsVersionNotifications
607
+     *  @private function getXoopsVersionNotifications
608 608
      * @param $module
609 609
      * @param $language
610 610
      * @return string
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
     }
695 695
 
696 696
     /**
697
-    *  @private function getXoopsVersionNotificationGlobal
697
+     *  @private function getXoopsVersionNotificationGlobal
698 698
      * @param $language
699 699
      * @param $type
700 700
      * @param $name
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
     }
720 720
 
721 721
     /**
722
-    *  @private function getXoopsVersionNotificationCategory
722
+     *  @private function getXoopsVersionNotificationCategory
723 723
      * @param $language
724 724
      * @param $type
725 725
      * @param $name
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
     }
746 746
 
747 747
     /**
748
-    *  @private function getXoopsVersionNotificationTableName
748
+     *  @private function getXoopsVersionNotificationTableName
749 749
      * @param $language
750 750
      * @param $type
751 751
      * @param $name
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
     }
773 773
 
774 774
     /**
775
-    *  @private function getXoopsVersionNotifications
775
+     *  @private function getXoopsVersionNotifications
776 776
      * @param $language
777 777
      * @param $type
778 778
      * @param $name
@@ -802,8 +802,8 @@  discard block
 block discarded – undo
802 802
     }
803 803
 
804 804
     /**
805
-    *  @public function render
806
-    *  @param null
805
+     *  @public function render
806
+     *  @param null
807 807
      * @return bool|string
808 808
      */
809 809
     public function render()
Please login to merge, or discard this patch.
class/files/sql/SqlFile.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
         // Header Sql Comments
85 85
         $ret = null;
86 86
         $arrayServerInfo = array("# SQL Dump for {$moduleName} module", '# PhpMyAdmin Version: 4.0.4',
87
-                                 '# http://www.phpmyadmin.net', '#', "# Host: {$serverName}",
88
-                                 "# Generated on: {$date} to {$time}", "# Server version: {$serverVersion}",
89
-                                 "# PHP Version: {$phpVersion}\n", );
87
+                                    '# http://www.phpmyadmin.net', '#', "# Host: {$serverName}",
88
+                                    "# Generated on: {$date} to {$time}", "# Server version: {$serverVersion}",
89
+                                    "# PHP Version: {$phpVersion}\n", );
90 90
         foreach ($arrayServerInfo as $serverInfo) {
91 91
             $ret .= $this->getSimpleString($serverInfo);
92 92
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $ret = null;
110 110
         $arrayDbTable = array('#', "# Structure table for `{$moduleDirname}_{$tableName}` {$fieldsNumb}",
111
-                              '#', "\nCREATE TABLE `{$moduleDirname}_{$tableName}` (", );
111
+                                '#', "\nCREATE TABLE `{$moduleDirname}_{$tableName}` (", );
112 112
         foreach ($arrayDbTable as $dbTable) {
113 113
             $ret .= $this->getSimpleString($dbTable);
114 114
         }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $arrayServerInfo = array("# SQL Dump for {$moduleName} module", '# PhpMyAdmin Version: 4.0.4',
87 87
                                  '# http://www.phpmyadmin.net', '#', "# Host: {$serverName}",
88 88
                                  "# Generated on: {$date} to {$time}", "# Server version: {$serverVersion}",
89
-                                 "# PHP Version: {$phpVersion}\n", );
89
+                                 "# PHP Version: {$phpVersion}\n",);
90 90
         foreach ($arrayServerInfo as $serverInfo) {
91 91
             $ret .= $this->getSimpleString($serverInfo);
92 92
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $ret = null;
110 110
         $arrayDbTable = array('#', "# Structure table for `{$moduleDirname}_{$tableName}` {$fieldsNumb}",
111
-                              '#', "\nCREATE TABLE `{$moduleDirname}_{$tableName}` (", );
111
+                              '#', "\nCREATE TABLE `{$moduleDirname}_{$tableName}` (",);
112 112
         foreach ($arrayDbTable as $dbTable) {
113 113
             $ret .= $this->getSimpleString($dbTable);
114 114
         }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         }
305 305
         // ================= COMMA ================= //
306 306
         for ($i = 0; $i < $j; ++$i) {
307
-            if ($i != $j - 1) {
307
+            if ($i != $j-1) {
308 308
                 $row[] = $comma[$i].',';
309 309
             } else {
310 310
                 $row[] = $comma[$i];
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
         $ret = null;
417 417
         // Comma issue
418 418
         for ($i = 1; $i <= $index; ++$i) {
419
-            if ($i != $index - 1) {
419
+            if ($i != $index-1) {
420 420
                 $ret = $this->getComma(isset($comma[$i]), ',')."\n";
421 421
             } else {
422 422
                 $ret = $this->getComma(isset($comma[$i]))."\n";
Please login to merge, or discard this patch.
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      *  @public function write
59 59
      *
60
-     *  @param $module
61
-     *  @param $filename
60
+     *  @param string $module
61
+     *  @param string $filename
62 62
      */
63 63
     public function write($module, $filename)
64 64
     {
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      *  @private function getHeaderSqlComments
71 71
      *
72
-     *  @param $moduleName
73
-     * @param $moduleName
72
+     *  @param string $moduleName
73
+     * @param string $moduleName
74 74
      *
75 75
      * @return string
76 76
      */
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * @private function getDatabaseFields
145 145
      *
146
-     * @param $moduleDirname
146
+     * @param string $moduleDirname
147 147
      * @param $tableMid
148 148
      * @param $tableId
149 149
      * @param $tableName
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      *  @param $fieldAttribute
340 340
      *  @param $fieldNull
341 341
      *  @param $fieldDefault
342
-     *  @param $autoincrement
342
+     *  @param string $autoincrement
343 343
      *
344 344
      *  @return string
345 345
      */
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     /**
366 366
      * @private function getKey
367 367
      *
368
-     * @param $key
368
+     * @param integer $key
369 369
      * @param $fieldName
370 370
      * @return string
371 371
      */
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
     /**
397 397
      *  @private function getComma
398 398
      *
399
-     *  @param $row
400
-     *  @param $comma
399
+     *  @param boolean $row
400
+     *  @param string $comma
401 401
      *
402 402
      *  @return string
403 403
      */
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      *
435 435
      *  @param null
436 436
      *
437
-     *  @return bool|string
437
+     *  @return null|string
438 438
      */
439 439
     public function render()
440 440
     {
Please login to merge, or discard this patch.
class/files/TDMCreateArchitecture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         // Creation of 'module_author_logo.gif' file
123 123
         $this->copyFile('assets/images', $copyNewFile, $logoPng);
124 124
         $docs = array('/credits.txt' => 'credits.txt', '/install.txt' => 'install.txt',
125
-                    '/lang.diff' => 'lang.diff', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt', );
125
+                    '/lang.diff' => 'lang.diff', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt',);
126 126
         foreach ($docs as $k => $v) {
127 127
             // Creation of folder docs and .txt files
128 128
             $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v);
Please login to merge, or discard this patch.
include/functions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,26 +41,26 @@
 block discarded – undo
41 41
 var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true;
42 42
 }
43 43
 //--></script>
44
-<!-- End Form Validation JavaScript //-->', );
44
+<!-- End Form Validation JavaScript //-->',);
45 45
     $paypalform = array(0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
46 46
                                 1 => '<input name="cmd" value="_s-xclick" type="hidden">',
47 47
                                 2 => '<input name="hosted_button_id" value="%s" type="hidden">',
48 48
                                 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">',
49 49
                                 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">',
50
-                                5 => '</form>', );
50
+                                5 => '</form>',);
51 51
     for ($key = 0; $key <= 4; ++$key) {
52 52
         switch ($key) {
53 53
             case 2:
54
-                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')),  strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
54
+                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
55 55
                 break;
56 56
         }
57 57
     }
58 58
     $aboutRes = '';
59 59
     $istart = strpos($about, $paypalform[0], 1);
60
-    $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1;
61
-    $aboutRes .= substr($about, 0, $istart - 1);
60
+    $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1;
61
+    $aboutRes .= substr($about, 0, $istart-1);
62 62
     $aboutRes .= implode("\n", $donationform);
63
-    $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1);
63
+    $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1);
64 64
 
65 65
     return $aboutRes;
66 66
 }
Please login to merge, or discard this patch.
class/files/TDMCreateSmartyCode.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@
 block discarded – undo
254 254
      * @param string $operator
255 255
      * @param string $type
256 256
      * @param string $contentIf
257
-     * @param mixed  $contentElse
257
+     * @param string  $contentElse
258 258
      * @param bool   $count
259 259
      *
260 260
      * @return string
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@  discard block
 block discarded – undo
28 28
 class TDMCreateSmartyCode
29 29
 {
30 30
     /**
31
-    *  @public function constructor
32
-    *  @param null
33
-    */
31
+     *  @public function constructor
32
+     *  @param null
33
+     */
34 34
 
35 35
     public function __construct()
36 36
     {
37 37
     }
38 38
 
39 39
     /**
40
-    *  @static function getInstance
41
-    *  @param null
40
+     *  @static function getInstance
41
+     *  @param null
42 42
      * @return TDMCreateSmartyCode
43 43
      */
44 44
     public static function getInstance()
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
         return $ret;
73 73
     }
74 74
 
75
-     /**
76
-    *  @private function setAttributes
77
-    *  @param array $attributes
78
-     *
79
-     * @return string
80
-     */
75
+        /**
76
+         *  @private function setAttributes
77
+         *  @param array $attributes
78
+         *
79
+         * @return string
80
+         */
81 81
     private function getAttributes($attributes)
82 82
     {
83 83
         $str = '';
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
     }
92 92
 
93 93
     /**
94
-    *  @public function getSmartyEmpty
95
-    *  @param string $empty
94
+     *  @public function getSmartyEmpty
95
+     *  @param string $empty
96 96
      *
97 97
      * @return string
98 98
      */
Please login to merge, or discard this patch.
class/fields.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * @private function getFormNewLine
164 164
      *
165
-     * @param $form
166
-     * @param $class
167
-     * @param $i
165
+     * @param TDMCreateThemeForm $form
166
+     * @param string $class
167
+     * @param integer $i
168 168
      * @param $fieldMid
169 169
      * @param $fieldTid
170 170
      * @param $fName
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      *  @private function getFooterForm
450 450
      *
451 451
      *  @param null
452
-     * @param $form
452
+     * @param TDMCreateThemeForm $form
453 453
      *
454 454
      * @return mixed
455 455
      */
@@ -603,10 +603,10 @@  discard block
 block discarded – undo
603 603
     /**
604 604
      * Get Fields Criteria.
605 605
      * @param $crFields
606
-     * @param $start
607
-     * @param $limit
608
-     * @param $sort
609
-     * @param $order
606
+     * @param integer $start
607
+     * @param integer $limit
608
+     * @param string $sort
609
+     * @param string $order
610 610
      * @return
611 611
      */
612 612
     private function getFieldsCriteria($crFields, $start, $limit, $sort, $order)
Please login to merge, or discard this patch.
class/files/admin/AdminAbout.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
     /**
192 192
     *  @public function render
193 193
     *  @param null
194
-    * @return bool|string
194
+    * @return null|string
195 195
     */
196 196
     public function render()
197 197
     {
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,19 +28,19 @@  discard block
 block discarded – undo
28 28
 class AdminAbout extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    * @var mixed
32
-    */
31
+     * @var mixed
32
+     */
33 33
     private $axc = null;
34 34
 
35 35
     /**
36
-    * @var string
37
-    */
36
+     * @var string
37
+     */
38 38
     private $xc = null;
39 39
 
40 40
     /**
41
-    *  @public function constructor
42
-    *  @param null
43
-    */
41
+     *  @public function constructor
42
+     *  @param null
43
+     */
44 44
 
45 45
     public function __construct()
46 46
     {
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-    *  @static function getInstance
54
-    *  @param null
55
-    * @return AdminAbout
56
-    */
53
+     *  @static function getInstance
54
+     *  @param null
55
+     * @return AdminAbout
56
+     */
57 57
     public static function getInstance()
58 58
     {
59 59
         static $instance = false;
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-    *  @public function write
69
-    *  @param string $module
70
-    *  @param string $filename
71
-    */
68
+     *  @public function write
69
+     *  @param string $module
70
+     *  @param string $filename
71
+     */
72 72
     public function write($module, $filename)
73 73
     {
74 74
         $this->setModule($module);
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-    *  @public function render
80
-    *  @param null
81
-    * @return bool|string
82
-    */
79
+     *  @public function render
80
+     *  @param null
81
+     * @return bool|string
82
+     */
83 83
     public function render()
84 84
     {
85 85
         $module = $this->getModule();
Please login to merge, or discard this patch.
class/files/admin/AdminXoopsCode.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @public function getAdminTemplateMain
60 60
      * @param        $language
61 61
      * @param        $tableName
62
-     * @param        $stuTableSoleName
62
+     * @param        string $stuTableSoleName
63 63
      * @param string $op
64 64
      * @param string $type
65 65
      *
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @public function getAxcAddInfoBox
97
-     * @param        $language
97
+     * @param        string $language
98 98
      *
99 99
      * @param string $t
100 100
      * @return string
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
     /**
108 108
      * @public function getAxcAddInfoBoxLine
109
-     * @param        $language
109
+     * @param        string $language
110 110
      * @param string $label
111 111
      * @param string $var
112 112
      *
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     /**
129 129
      * @public function getAxcAddConfigBoxLine
130
-     * @param        $language
130
+     * @param        string $language
131 131
      * @param string $label
132 132
      * @param string $var
133 133
      *
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     /**
236 236
      * @private function getAxcImageFileSetVar
237 237
      * @param        $moduleDirname
238
-     * @param        $dirname
238
+     * @param        string $dirname
239 239
      * @param        $tableName
240 240
      * @param        $fieldName
241 241
      * @param bool   $formatUrl
@@ -327,8 +327,8 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * @public function getAxcFetchMedia
329 329
      *
330
-     * @param        $anchor
331
-     * @param        $var
330
+     * @param        string $anchor
331
+     * @param        string $var
332 332
      *
333 333
      * @param string $t
334 334
      * @return string
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     /**
342 342
      * @public function getAxcSetPrefix
343 343
      *
344
-     * @param        $anchor
344
+     * @param        string $anchor
345 345
      * @param        $var
346 346
      *
347 347
      * @param string $t
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 class AdminXoopsCode
29 29
 {
30 30
     /**
31
-    *  @static function getInstance
32
-    *  @param null
33
-    * @return AdminXoopsCode
34
-    */
31
+     *  @static function getInstance
32
+     *  @param null
33
+     * @return AdminXoopsCode
34
+     */
35 35
     public static function getInstance()
36 36
     {
37 37
         static $instance = false;
Please login to merge, or discard this patch.
class/files/blocks/BlocksFiles.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @public function write
57 57
      * @param string $module
58 58
      * @param mixed  $table
59
-     * @param        $filename
59
+     * @param        string $filename
60 60
      */
61 61
     public function write($module, $table, $filename)
62 62
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     *  @public function render
257 257
     *  @param null
258 258
     *
259
-    * @return bool|string
259
+    * @return null|string
260 260
     */
261 261
     public function render()
262 262
     {
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class BlocksFiles extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    *  @public function constructor
32
-    *  @param null
33
-    */
31
+     *  @public function constructor
32
+     *  @param null
33
+     */
34 34
 
35 35
     public function __construct()
36 36
     {
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
43
-    * @return BlocksFiles
44
-    */
41
+     *  @static function getInstance
42
+     *  @param null
43
+     * @return BlocksFiles
44
+     */
45 45
     public static function getInstance()
46 46
     {
47 47
         static $instance = false;
@@ -203,15 +203,15 @@  discard block
 block discarded – undo
203 203
     }
204 204
 
205 205
     /**
206
-    *  @public function getBlocksEdit
207
-    *  @param string $moduleDirname
208
-    *  @param string $tableName
209
-    *  @param string $fieldId
210
-    *  @param string $fieldMain
211
-    *  @param string $language
212
-    *
213
-    * @return string
214
-    */
206
+     *  @public function getBlocksEdit
207
+     *  @param string $moduleDirname
208
+     *  @param string $tableName
209
+     *  @param string $fieldId
210
+     *  @param string $fieldMain
211
+     *  @param string $language
212
+     *
213
+     * @return string
214
+     */
215 215
     private function getBlocksEdit($moduleDirname, $tableName, $fieldId, $fieldMain, $language)
216 216
     {
217 217
         $stuModuleDirname = strtoupper($moduleDirname);
@@ -253,11 +253,11 @@  discard block
 block discarded – undo
253 253
     }
254 254
 
255 255
     /**
256
-    *  @public function render
257
-    *  @param null
258
-    *
259
-    * @return bool|string
260
-    */
256
+     *  @public function render
257
+     *  @param null
258
+     *
259
+     * @return bool|string
260
+     */
261 261
     public function render()
262 262
     {
263 263
         $module = $this->getModule();
Please login to merge, or discard this patch.