Passed
Branch master (31be8b)
by Gino
03:04
created
class/files/sql/SqlFile.php 1 patch
Doc Comments   +19 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @param $module
70 70
      * @param $tables
71
-     * @param $filename
71
+     * @param string $filename
72 72
      */
73 73
     public function write($module, $tables, $filename)
74 74
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     *  @param $moduleName
83 83
     */
84 84
     /**
85
-     * @param $moduleName
85
+     * @param string $moduleName
86 86
      *
87 87
      * @return string
88 88
      */
@@ -135,6 +135,10 @@  discard block
 block discarded – undo
135 135
     *  @param $moduleDirname
136 136
     *  @return null|string
137 137
     */
138
+
139
+    /**
140
+     * @param string $moduleDirname
141
+     */
138 142
     private function getDatabaseTables($moduleDirname)
139 143
     {
140 144
         $ret = null;
@@ -351,6 +355,10 @@  discard block
 block discarded – undo
351 355
     *  @param $autoincrement
352 356
     *  @return string
353 357
     */
358
+
359
+    /**
360
+     * @param string $autoincrement
361
+     */
354 362
     private function getFieldRow($fieldName, $fieldTypeValue, $fieldAttribute = null, $fieldNull = null, $fieldDefault = null, $autoincrement = null)
355 363
     {
356 364
         $retAutoincrement = <<<SQL
@@ -381,6 +389,10 @@  discard block
 block discarded – undo
381 389
     *  @private function getKey
382 390
     *  @return string
383 391
     */
392
+
393
+    /**
394
+     * @param integer $key
395
+     */
384 396
     private function getKey($key, $fieldName)
385 397
     {
386 398
         switch ($key) {
@@ -420,6 +432,11 @@  discard block
 block discarded – undo
420 432
     *  @param $comma
421 433
     *  @return string
422 434
     */
435
+
436
+    /**
437
+     * @param boolean $row
438
+     * @param string $comma
439
+     */
423 440
     private function getComma($row, $comma = null)
424 441
     {
425 442
         $ret = <<<SQL
Please login to merge, or discard this patch.
class/files/TDMCreateTableFields.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
     /**
31 31
      *  @public function constructor
32 32
      *
33
-     *  @param mixed $table
34 33
      */
35 34
     public function __construct()
36 35
     {
Please login to merge, or discard this patch.
class/modules.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      * @param $logoIcon
392 392
      * @param $moduleDirname
393 393
      *
394
-     * @return bool|string
394
+     * @return false|string
395 395
      */
396 396
     private static function createLogo($logoIcon, $moduleDirname)
397 397
     {
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      * Get Defined Language.
475 475
      */
476 476
     /**
477
-     * @param $lang
477
+     * @param string $lang
478 478
      *
479 479
      * @return string
480 480
      */
@@ -587,6 +587,10 @@  discard block
 block discarded – undo
587 587
 
588 588
     /**
589 589
      * Get Modules Criteria.
590
+     * @param integer $start
591
+     * @param integer $limit
592
+     * @param string $sort
593
+     * @param string $order
590 594
      */
591 595
     private function getModulesCriteria($criteriaModules, $start, $limit, $sort, $order)
592 596
     {
Please login to merge, or discard this patch.
class/files/classes/ClassFiles.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     /**
67 67
      * @param $module
68 68
      * @param $table
69
-     * @param $filename
69
+     * @param string $filename
70 70
      */
71 71
     public function write($module, $filename)
72 72
     {
Please login to merge, or discard this patch.
class/files/user/UserSubmit.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @param $module
71 71
      * @param $table
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -182,6 +182,7 @@  discard block
 block discarded – undo
182 182
     *  @param null
183 183
     */
184 184
     /**
185
+     * @param string $language
185 186
      * @return string
186 187
      */
187 188
     public function getUserSubmitFooter($moduleDirname, $language)
@@ -203,6 +204,10 @@  discard block
 block discarded – undo
203 204
      *
204 205
      * @return string
205 206
      */
207
+
208
+    /**
209
+     * @param string $language
210
+     */
206 211
     private function getUserSubmitSwitch($moduleDirname, $tableName, $tableSoleName, $language)
207 212
     {
208 213
         $table = $this->getTable();
@@ -220,7 +225,7 @@  discard block
 block discarded – undo
220 225
     *  @param null
221 226
     */
222 227
     /**
223
-     * @return bool|string
228
+     * @return null|string
224 229
      */
225 230
     public function render()
226 231
     {
Please login to merge, or discard this patch.
class/files/user/UserViewTag.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @param $module
71 71
      * @param $tables
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $tables, $filename)
75 75
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     *  @param null
147 147
     */
148 148
     /**
149
-     * @return bool|string
149
+     * @return null|string
150 150
      */
151 151
     public function render()
152 152
     {
Please login to merge, or discard this patch.
class/files/user/UserVisit.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @param $module
71 71
      * @param $tables
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $tables, $filename)
75 75
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     *  @param null
147 147
     */
148 148
     /**
149
-     * @return bool|string
149
+     * @return null|string
150 150
      */
151 151
     public function render()
152 152
     {
Please login to merge, or discard this patch.
class/files/user/UserXoopsVersion.php 2 patches
Doc Comments   +31 added lines, -19 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @param $module
91 91
      * @param $table
92 92
      * @param $tables
93
-     * @param $filename
93
+     * @param string $filename
94 94
      */
95 95
     public function write($module, $table, $tables, $filename)
96 96
     {
@@ -139,6 +139,10 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @return string
141 141
      */
142
+
143
+    /**
144
+     * @param string $language
145
+     */
142 146
     private function getXoopsVersionHeader($module, $language)
143 147
     {
144 148
         $date = date(_DBDATESTRING);
@@ -371,7 +375,7 @@  discard block
 block discarded – undo
371 375
     *  @param $language
372 376
     */
373 377
     /**
374
-     * @param $language
378
+     * @param string $language
375 379
      *
376 380
      * @return string
377 381
      */
@@ -407,7 +411,7 @@  discard block
 block discarded – undo
407 411
     */
408 412
     /**
409 413
      * @param $moduleDirname
410
-     * @param $language
414
+     * @param string $language
411 415
      *
412 416
      * @return string
413 417
      */
@@ -445,6 +449,7 @@  discard block
 block discarded – undo
445 449
     /**
446 450
      * @param $moduleDirname
447 451
      * @param $language
452
+     * @param string $stuTableSoleName
448 453
      *
449 454
      * @return string
450 455
      */
@@ -470,7 +475,7 @@  discard block
 block discarded – undo
470 475
     /**
471 476
      * @param $module
472 477
      * @param $table
473
-     * @param $language
478
+     * @param string $language
474 479
      *
475 480
      * @return string
476 481
      */
@@ -663,7 +668,7 @@  discard block
 block discarded – undo
663 668
     */
664 669
     /**
665 670
      * @param $moduleDirname
666
-     * @param $language
671
+     * @param string $language
667 672
      *
668 673
      * @return string
669 674
      */
@@ -754,10 +759,11 @@  discard block
 block discarded – undo
754 759
     */
755 760
     /**
756 761
      * @param $language
757
-     * @param $type
758
-     * @param $name
759
-     * @param $title
762
+     * @param string $type
763
+     * @param string $name
764
+     * @param string $title
760 765
      * @param $from
766
+     * @param integer $num
761 767
      *
762 768
      * @return string
763 769
      */
@@ -778,10 +784,12 @@  discard block
 block discarded – undo
778 784
     */
779 785
     /**
780 786
      * @param $language
781
-     * @param $type
782
-     * @param $name
783
-     * @param $title
787
+     * @param string $type
788
+     * @param string $name
789
+     * @param string $title
784 790
      * @param $from
791
+     * @param string $allow
792
+     * @param integer $num
785 793
      *
786 794
      * @return string
787 795
      */
@@ -802,12 +810,13 @@  discard block
 block discarded – undo
802 810
     */
803 811
     /**
804 812
      * @param $language
805
-     * @param $type
806
-     * @param $name
807
-     * @param $title
813
+     * @param string $type
814
+     * @param string $name
815
+     * @param string $title
808 816
      * @param $file
809 817
      * @param $item
810 818
      * @param $allow
819
+     * @param integer $num
811 820
      *
812 821
      * @return string
813 822
      */
@@ -828,12 +837,15 @@  discard block
 block discarded – undo
828 837
     */
829 838
     /**
830 839
      * @param $language
831
-     * @param $type
832
-     * @param $name
833
-     * @param $title
840
+     * @param string $type
841
+     * @param string $name
842
+     * @param string $title
834 843
      * @param $from
835 844
      * @param $item
836
-     * @param $mail
845
+     * @param string $mail
846
+     * @param string $category
847
+     * @param string $table
848
+     * @param integer $num
837 849
      *
838 850
      * @return string
839 851
      */
@@ -856,7 +868,7 @@  discard block
 block discarded – undo
856 868
     *  @param null
857 869
     */
858 870
     /**
859
-     * @return bool|string
871
+     * @return null|string
860 872
      */
861 873
     public function render()
862 874
     {
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $descriptions = array('name' => "{$language}NAME", 'version' => "{$module->getVar('mod_version')}", 'description' => "{$language}DESC",
148 148
                             'author' => "'{$module->getVar('mod_author')}'", 'author_mail' => "'{$module->getVar('mod_author_mail')}'", 'author_website_url' => "'{$module->getVar('mod_author_website_url')}'",
149
-                            'author_website_name' => "'{$module->getVar('mod_author_website_name')}'",'credits' => "'{$module->getVar('mod_credits')}'",'license' => "'{$module->getVar('mod_license')}'",
149
+                            'author_website_name' => "'{$module->getVar('mod_author_website_name')}'", 'credits' => "'{$module->getVar('mod_credits')}'", 'license' => "'{$module->getVar('mod_license')}'",
150 150
                             'license_url' => "'www.gnu.org/licenses/gpl-2.0.html/'", 'help' => "'page=help'", 'release_info' => "'{$module->getVar('mod_release_info')}'",
151 151
                             'release_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_release_file')}'", 'release_date' => "'{$date}'",
152 152
                             'manual' => "'{$module->getVar('mod_manual')}'", 'manual_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_manual_file')}'",
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                             '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')}'",
158 158
                             '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')}'",
159 159
                             'system_menu' => '1', 'hasAdmin' => $ha, 'hasMain' => $hm, 'adminindex' => "'admin/index.php'", 'adminmenu' => "'admin/menu.php'",
160
-                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'", );
160
+                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'",);
161 161
 
162 162
         $ret .= $this->usercode->getUserModVersion(1, $descriptions);
163 163
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         $ret = $this->getCommentLine("{$ucfTableName}");
451 451
         $blocks = array('file' => "'{$tableName}.php'", 'name' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}", 'description' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}_DESC",
452 452
                         'show_func' => "'b_{$moduleDirname}_{$tableName}_show'", 'edit_func' => "'b_{$moduleDirname}_{$tableName}_edit'",
453
-                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'", );
453
+                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'",);
454 454
         $ret .= $this->usercode->getUserModVersion(3, $blocks, 'blocks', '$b');
455 455
         $ret .= $this->getSimpleString('++$b;');
456 456
 
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
             $ret .= $this->xoopscode->getXoopsCodeLoad('xoopseditorhandler');
489 489
             $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$editorHandler ', 'XoopsEditorHandler::getInstance()');
490 490
             $editor = array('name' => "'{$moduleDirname}_editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$ucfFieldName}'", 'description' => "'{$language}EDITOR_{$ucfFieldName}_DESC'",
491
-                    'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler->getList())', );
491
+                    'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler->getList())',);
492 492
             $ret .= $this->usercode->getUserModVersion(3, $editor, 'config', '$c');
493 493
             $ret .= $this->getSimpleString('++$c;');
494 494
         }
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
             $group = $this->xoopscode->getXoopsCodeEqualsOperator('$groups[$group] ', '$key');
500 500
             $ret .= $this->phpcode->getPhpCodeForeach('xoopsGroups', false, 'key', 'group', $group);
501 501
             $groups = array('name' => "'groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
502
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups', );
502
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups',);
503 503
             $ret .= $this->usercode->getUserModVersion(3, $groups, 'config', '$c');
504 504
             $ret .= $this->getSimpleString('++$c;');
505 505
             $ret .= $this->getCommentLine('Get Admin groups');
@@ -510,14 +510,14 @@  discard block
 block discarded – undo
510 510
             $adminGroup = $this->xoopscode->getXoopsCodeEqualsOperator('$adminGroups[$adminGroup] ', '$key');
511 511
             $ret .= $this->phpcode->getPhpCodeForeach('adminXoopsGroups', false, 'key', 'adminGroup', $adminGroup);
512 512
             $adminGroups = array('name' => "'admin_groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
513
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups', );
513
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups',);
514 514
             $ret .= $this->usercode->getUserModVersion(3, $adminGroups, 'config', '$c');
515 515
             $ret .= $this->getSimpleString('++$c;');
516 516
         }
517 517
         $keyword = implode(', ', $this->getKeywords());
518 518
         $ret .= $this->getCommentLine('Keywords');
519 519
         $arrayKeyword = array('name' => "'keywords'", 'title' => "'{$language}KEYWORDS'", 'description' => "'{$language}KEYWORDS_DESC'",
520
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'", );
520
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'",);
521 521
         $ret .= $this->usercode->getUserModVersion(3, $arrayKeyword, 'config', '$c');
522 522
         $ret .= $this->getSimpleString('++$c;');
523 523
         unset($this->keywords);
@@ -525,81 +525,81 @@  discard block
 block discarded – undo
525 525
             if (in_array(array(10, 11, 12, 13, 14), $fieldElement)) {
526 526
                 $ret .= $this->getCommentLine('Uploads : maxsize of image');
527 527
                 $maxsize = array('name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'",
528
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000', );
528
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000',);
529 529
                 $ret .= $this->usercode->getUserModVersion(3, $maxsize, 'config', '$c');
530 530
                 $ret .= $this->getCommentLine('Uploads : mimetypes of image');
531 531
                 $ret .= $this->getSimpleString('++$c;');
532 532
                 $mimetypes = array('name' => "'mimetypes'", 'title' => "'{$language}MIMETYPES'", 'description' => "'{$language}MIMETYPES_DESC'",
533 533
                     'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => "array('image/gif', 'image/jpeg', 'image/png')",
534
-                    'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')", );
534
+                    'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')",);
535 535
                 $ret .= $this->usercode->getUserModVersion(3, $mimetypes, 'config', '$c');
536 536
                 $ret .= $this->getSimpleString('++$c;');
537 537
             }
538 538
             if (1 == $table->getVar('table_admin')) {
539 539
                 $ret .= $this->getCommentLine('Admin pager');
540 540
                 $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'",
541
-                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
541
+                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
542 542
                 $ret .= $this->usercode->getUserModVersion(3, $adminPager, 'config', '$c');
543 543
                 $ret .= $this->getSimpleString('++$c;');
544 544
             }
545 545
             if (1 == $table->getVar('table_user')) {
546 546
                 $ret .= $this->getCommentLine('User pager');
547 547
                 $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
548
-                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
548
+                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
549 549
                 $ret .= $this->usercode->getUserModVersion(3, $userPager, 'config', '$c');
550 550
                 $ret .= $this->getSimpleString('++$c;');
551 551
             }
552 552
             if (1 == $table->getVar('table_tag')) {
553 553
                 $ret .= $this->getCommentLine('Use tag');
554 554
                 $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
555
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
555
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
556 556
                 $ret .= $this->usercode->getUserModVersion(3, $useTag, 'config', '$c');
557 557
                 $ret .= $this->getSimpleString('++$c;');
558 558
             }
559 559
         }
560 560
         $ret .= $this->getCommentLine('Number column');
561 561
         $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'",
562
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
562
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
563 563
         $ret .= $this->usercode->getUserModVersion(3, $numbCol, 'config', '$c');
564 564
         $ret .= $this->getSimpleString('++$c;');
565 565
         $ret .= $this->getCommentLine('Divide by');
566 566
         $divideby = array('name' => "'divideby'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
567
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
567
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
568 568
         $ret .= $this->usercode->getUserModVersion(3, $divideby, 'config', '$c');
569 569
         $ret .= $this->getSimpleString('++$c;');
570 570
         $ret .= $this->getCommentLine('Table type');
571 571
         $tableType = array('name' => "'table_type'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
572
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')", );
572
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')",);
573 573
         $ret .= $this->usercode->getUserModVersion(3, $tableType, 'config', '$c');
574 574
         $ret .= $this->getSimpleString('++$c;');
575 575
         $ret .= $this->getCommentLine('Panel by');
576 576
         $panelType = array('name' => "'panel_type'", 'title' => "'{$language}PANEL_TYPE'", 'description' => "'{$language}PANEL_TYPE_DESC'",
577
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')", );
577
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')",);
578 578
         $ret .= $this->usercode->getUserModVersion(3, $panelType, 'config', '$c');
579 579
         $ret .= $this->getSimpleString('++$c;');
580 580
         $ret .= $this->getCommentLine('Panel by');
581 581
         $advertise = array('name' => "'advertise'", 'title' => "'{$language}ADVERTISE'", 'description' => "'{$language}ADVERTISE_DESC'",
582
-                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''", );
582
+                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''",);
583 583
         $ret .= $this->usercode->getUserModVersion(3, $advertise, 'config', '$c');
584 584
         $ret .= $this->getSimpleString('++$c;');
585 585
         $ret .= $this->getCommentLine('Panel by');
586 586
         $bookmarks = array('name' => "'bookmarks'", 'title' => "'{$language}BOOKMARKS'", 'description' => "'{$language}BOOKMARKS_DESC'",
587
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
587
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
588 588
         $ret .= $this->usercode->getUserModVersion(3, $bookmarks, 'config', '$c');
589 589
         $ret .= $this->getSimpleString('++$c;');
590 590
         $ret .= $this->getCommentLine('Facebook Comments');
591 591
         $facebookComments = array('name' => "'facebook_comments'", 'title' => "'{$language}FACEBOOK_COMMENTS'", 'description' => "'{$language}FACEBOOK_COMMENTS_DESC'",
592
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
592
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
593 593
         $ret .= $this->usercode->getUserModVersion(3, $facebookComments, 'config', '$c');
594 594
         $ret .= $this->getSimpleString('++$c;');
595 595
         $ret .= $this->getCommentLine('Disqus Comments');
596 596
         $disqusComments = array('name' => "'disqus_comments'", 'title' => "'{$language}DISQUS_COMMENTS'", 'description' => "'{$language}DISQUS_COMMENTS_DESC'",
597
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
597
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
598 598
         $ret .= $this->usercode->getUserModVersion(3, $disqusComments, 'config', '$c');
599 599
         $ret .= $this->getSimpleString('++$c;');
600 600
         $ret .= $this->getCommentLine('Maintained by');
601 601
         $maintainedby = array('name' => "'maintainedby'", 'title' => "'{$language}MAINTAINEDBY'", 'description' => "'{$language}MAINTAINEDBY_DESC'",
602
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'", );
602
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'",);
603 603
         $ret .= $this->usercode->getUserModVersion(3, $maintainedby, 'config', '$c');
604 604
         $ret .= $this->getSimpleString('unset($c);');
605 605
 
@@ -635,14 +635,14 @@  discard block
 block discarded – undo
635 635
             case 'category':
636 636
                 $ret .= $this->getCommentLine('Category Notify');
637 637
                 $category = array('name' => "'category'", 'title' => "'{$language}{$stuTableName}_NOTIFY'", 'description' => "'{$language}{$stuTableName}_NOTIFY_DESC'",
638
-                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1', );
638
+                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1',);
639 639
                 $ret .= $this->usercode->getUserModVersion(3, $category, 'notification', "'{$type}'");
640 640
                 break;
641 641
             case 'event':
642 642
                 $ret .= $this->getCommentLine('Event Notify');
643 643
                 $event = array('name' => "'{$typeOfNotify}'", 'category' => "'{$tableName}'", 'admin_only' => '1', "'title'" => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY'",
644 644
                                 'caption' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_CAPTION'", 'description' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_DESC'",
645
-                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", );
645
+                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",);
646 646
                 $ret .= $this->usercode->getUserModVersion(3, $event, 'notification', "'{$type}'");
647 647
                 break;
648 648
         }
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
         $implodeFrom = implode(".php', '", $from);
762 762
         $ret = $this->getCommentLine('Global Notify');
763 763
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
764
-                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", );
764
+                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",);
765 765
         $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
766 766
 
767 767
         return $ret;
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
         $impFile = implode(".php', '", $file);
786 786
         $ret = $this->getCommentLine('Category Notify');
787 787
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
788
-                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
788
+                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
789 789
         $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
790 790
 
791 791
         return $ret;
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
         $ucfTitle = ucfirst($title);
812 812
         $ret = $this->getCommentLine($ucfTitle.' Notify');
813 813
         $table = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
814
-                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
814
+                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
815 815
         $ret .= $this->usercode->getUserModVersion(4, $table, 'notification', "'{$type}'", $num);
816 816
 
817 817
         return $ret;
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
         $ret = $this->getCommentLine($ucfTitle.' Notify');
840 840
         $event = array('name' => "'{$name}'", 'category' => "'{$category}'", 'admin_only' => "{$admin}", 'title' => "{$language}{$title}_{$table}_NOTIFY",
841 841
                         'caption' => "{$language}{$title}_{$table}_NOTIFY_CAPTION", 'description' => "{$language}{$title}_{$table}_NOTIFY_DESC",
842
-                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT", );
842
+                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT",);
843 843
         $ret .= $this->usercode->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
844 844
 
845 845
         return $ret;
Please login to merge, or discard this patch.
class/files/language/LanguageAdmin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
     *  @param null
254 254
     */
255 255
     /**
256
-     * @return bool|string
256
+     * @return null|string
257 257
      */
258 258
     public function render()
259 259
     {
Please login to merge, or discard this patch.