Completed
Push — master ( 544d04...d95223 )
by Gino
05:38 queued 01:36
created
class/files/TDMCreateFile.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  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 122
      * @param $created
@@ -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/templates/user/TemplatesUserFooter.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/UserPdf.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * @param $module
86 86
      * @param $table
87
-     * @param $filename
87
+     * @param string $filename
88 88
      */
89 89
     public function write($module, $table, $filename)
90 90
     {
@@ -98,6 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @param $moduleDirname
100 100
      * @param $tableName
101
+     * @param string $language
101 102
      *
102 103
      * @return string
103 104
      */
@@ -235,7 +236,7 @@  discard block
 block discarded – undo
235 236
     *  @param null
236 237
     */
237 238
     /**
238
-     * @return bool|string
239
+     * @return null|string
239 240
      */
240 241
     public function render()
241 242
     {
Please login to merge, or discard this patch.
class/files/user/UserRate.php 2 patches
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * @param $module
86 86
      * @param $table
87
-     * @param $filename
87
+     * @param string $filename
88 88
      */
89 89
     public function write($module, $table, $filename)
90 90
     {
@@ -125,6 +125,10 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @return string
127 127
      */
128
+
129
+    /**
130
+     * @param string $language
131
+     */
128 132
     private function getUserRateSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $language)
129 133
     {
130 134
         $fields = $this->getTableFields($tableMid, $tableId);
@@ -203,6 +207,7 @@  discard block
 block discarded – undo
203 207
     *  @param null
204 208
     */
205 209
     /**
210
+     * @param string $language
206 211
      * @return string
207 212
      */
208 213
     public function getUserRateFooter($moduleDirname, $language)
@@ -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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     {
130 130
         $fields = $this->getTableFields($tableMid, $tableId);
131 131
         $cases = array('form' => array($this->getUserRateForm($tableName, $language)),
132
-                    'save' => array($this->getUserRateSave($moduleDirname, $fields, $tableName, $language)), );
132
+                    'save' => array($this->getUserRateSave($moduleDirname, $fields, $tableName, $language)),);
133 133
 
134 134
         return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true);
135 135
     }
Please login to merge, or discard this patch.
class/files/user/UserXoopsVersion.php 2 patches
Doc Comments   +27 added lines, -20 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @param $module
77 77
      * @param $table
78 78
      * @param $tables
79
-     * @param $filename
79
+     * @param string $filename
80 80
      */
81 81
     public function write($module, $table, $tables, $filename)
82 82
     {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     /**
126 126
      * @param $module
127 127
      * @param $table
128
-     * @param $language
128
+     * @param string $language
129 129
      *
130 130
      * @return string
131 131
      */
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     *  @param $language
346 346
     */
347 347
     /**
348
-     * @param $language
348
+     * @param string $language
349 349
      *
350 350
      * @return string
351 351
      */
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     */
381 381
     /**
382 382
      * @param $moduleDirname
383
-     * @param $language
383
+     * @param string $language
384 384
      *
385 385
      * @return string
386 386
      */
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
     /**
441 441
      * @param $module
442 442
      * @param $table
443
-     * @param $language
443
+     * @param string $language
444 444
      *
445 445
      * @return string
446 446
      */
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
     */
631 631
     /**
632 632
      * @param $moduleDirname
633
-     * @param $language
633
+     * @param string $language
634 634
      * @param $filename
635 635
      *
636 636
      * @return string
@@ -718,10 +718,11 @@  discard block
 block discarded – undo
718 718
     */
719 719
     /**
720 720
      * @param $language
721
-     * @param $type
722
-     * @param $name
723
-     * @param $title
721
+     * @param string $type
722
+     * @param string $name
723
+     * @param string $title
724 724
      * @param $from
725
+     * @param integer $num
725 726
      *
726 727
      * @return string
727 728
      */
@@ -742,10 +743,12 @@  discard block
 block discarded – undo
742 743
     */
743 744
     /**
744 745
      * @param $language
745
-     * @param $type
746
-     * @param $name
747
-     * @param $title
746
+     * @param string $type
747
+     * @param string $name
748
+     * @param string $title
748 749
      * @param $from
750
+     * @param string $allow
751
+     * @param integer $num
749 752
      *
750 753
      * @return string
751 754
      */
@@ -766,12 +769,13 @@  discard block
 block discarded – undo
766 769
     */
767 770
     /**
768 771
      * @param $language
769
-     * @param $type
770
-     * @param $name
771
-     * @param $title
772
+     * @param string $type
773
+     * @param string $name
774
+     * @param string $title
772 775
      * @param $from
773 776
      * @param $item
774 777
      * @param $allow
778
+     * @param integer $num
775 779
      *
776 780
      * @return string
777 781
      */
@@ -792,12 +796,15 @@  discard block
 block discarded – undo
792 796
     */
793 797
     /**
794 798
      * @param $language
795
-     * @param $type
796
-     * @param $name
797
-     * @param $title
799
+     * @param string $type
800
+     * @param string $name
801
+     * @param string $title
798 802
      * @param $from
799 803
      * @param $item
800
-     * @param $mail
804
+     * @param string $mail
805
+     * @param string $category
806
+     * @param string $table
807
+     * @param integer $num
801 808
      *
802 809
      * @return string
803 810
      */
@@ -820,7 +827,7 @@  discard block
 block discarded – undo
820 827
     *  @param null
821 828
     */
822 829
     /**
823
-     * @return bool|string
830
+     * @return null|string
824 831
      */
825 832
     public function render()
826 833
     {
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         $descriptions = array('name' => "{$language}NAME", 'version' => "{$module->getVar('mod_version')}", 'description' => "{$language}DESC",
143 143
                             'author' => "'{$module->getVar('mod_author')}'", 'author_mail' => "'{$module->getVar('mod_author_mail')}'", 'author_website_url' => "'{$module->getVar('mod_author_website_url')}'",
144
-                            'author_website_name' => "'{$module->getVar('mod_author_website_name')}'",'credits' => "'{$module->getVar('mod_credits')}'",'license' => "'{$module->getVar('mod_license')}'",
144
+                            'author_website_name' => "'{$module->getVar('mod_author_website_name')}'", 'credits' => "'{$module->getVar('mod_credits')}'", 'license' => "'{$module->getVar('mod_license')}'",
145 145
                             'license_url' => "'www.gnu.org/licenses/gpl-2.0.html/'", 'help' => "'page=help'", 'release_info' => "'{$module->getVar('mod_release_info')}'",
146 146
                             'release_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_release_file')}'", 'release_date' => "'{$date}'",
147 147
                             'manual' => "'{$module->getVar('mod_manual')}'", 'manual_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_manual_file')}'",
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                             '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')}'",
153 153
                             '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')}'",
154 154
                             'system_menu' => '1', 'hasAdmin' => $ha, 'hasMain' => $hm, 'adminindex' => "'admin/index.php'", 'adminmenu' => "'admin/menu.php'",
155
-                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'", );
155
+                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'",);
156 156
 
157 157
         $ret .= $this->usercode->getUserModVersion(1, $descriptions);
158 158
 
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         $ret = $this->getCommentLine("{$ucfType}");
426 426
         $blocks = array('file' => "'{$tableName}.php'", 'name' => "{$language}{$stuTableName}_BLOCK_{$stuType}", 'description' => "{$language}{$stuTableName}_BLOCK_{$stuType}_DESC",
427 427
                         'show_func' => "'b_{$moduleDirname}_{$tableName}_show'", 'edit_func' => "'b_{$moduleDirname}_{$tableName}_edit'",
428
-                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'", );
428
+                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'",);
429 429
         $ret .= $this->usercode->getUserModVersion(3, $blocks, 'blocks', '$b');
430 430
         $ret .= $this->getSimpleString('++$b;');
431 431
 
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
             $ret .= $this->xoopscode->getXoopsCodeLoad('xoopseditorhandler');
462 462
             $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('editorHandler ', 'XoopsEditorHandler::getInstance()');
463 463
             $editor = array('name' => "'{$moduleDirname}_editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$ucfFieldName}'", 'description' => "'{$language}EDITOR_{$ucfFieldName}_DESC'",
464
-                    'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler->getList())', );
464
+                    'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler->getList())',);
465 465
             $ret .= $this->usercode->getUserModVersion(3, $editor, 'config', '$c');
466 466
             $ret .= $this->getSimpleString('++$c;');
467 467
         }
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
             $group = $this->xoopscode->getXoopsCodeEqualsOperator('$groups[$group] ', '$key');
473 473
             $ret .= $this->phpcode->getPhpCodeForeach('xoopsGroups', false, 'key', 'group', $group);
474 474
             $groups = array('name' => "'groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
475
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups', );
475
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups',);
476 476
             $ret .= $this->usercode->getUserModVersion(3, $groups, 'config', '$c');
477 477
             $ret .= $this->getSimpleString('++$c;');
478 478
             $ret .= $this->getCommentLine('Get Admin groups');
@@ -483,14 +483,14 @@  discard block
 block discarded – undo
483 483
             $adminGroup = $this->xoopscode->getXoopsCodeEqualsOperator('$adminGroups[$adminGroup] ', '$key');
484 484
             $ret .= $this->phpcode->getPhpCodeForeach('adminXoopsGroups', false, 'key', 'adminGroup', $adminGroup);
485 485
             $adminGroups = array('name' => "'admin_groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
486
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups', );
486
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups',);
487 487
             $ret .= $this->usercode->getUserModVersion(3, $adminGroups, 'config', '$c');
488 488
             $ret .= $this->getSimpleString('++$c;');
489 489
         }
490 490
         $keyword = implode(', ', $this->getKeywords());
491 491
         $ret .= $this->getCommentLine('Keywords');
492 492
         $arrayKeyword = array('name' => "'keywords'", 'title' => "'{$language}KEYWORDS'", 'description' => "'{$language}KEYWORDS_DESC'",
493
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'", );
493
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'",);
494 494
         $ret .= $this->usercode->getUserModVersion(3, $arrayKeyword, 'config', '$c');
495 495
         $ret .= $this->getSimpleString('++$c;');
496 496
         unset($this->keywords);
@@ -498,82 +498,82 @@  discard block
 block discarded – undo
498 498
             if (in_array(array(10, 11, 12, 13, 14), $fieldElement)) {
499 499
                 $ret .= $this->getCommentLine('Uploads : maxsize of image');
500 500
                 $maxsize = array('name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'",
501
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000', );
501
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000',);
502 502
                 $ret .= $this->usercode->getUserModVersion(3, $maxsize, 'config', '$c');
503 503
                 $ret .= $this->getCommentLine('Uploads : mimetypes of image');
504 504
                 $ret .= $this->getSimpleString('++$c;');
505 505
                 $mimetypes = array('name' => "'mimetypes'", 'title' => "'{$language}MIMETYPES'", 'description' => "'{$language}MIMETYPES_DESC'",
506 506
                     'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => "array('image/gif', 'image/jpeg', 'image/png')", 'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg',
507 507
 				   'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe',
508
-				   'png' => 'image/png')", );
508
+				   'png' => 'image/png')",);
509 509
                 $ret .= $this->usercode->getUserModVersion(3, $mimetypes, 'config', '$c');
510 510
                 $ret .= $this->getSimpleString('++$c;');
511 511
             }
512 512
             if (1 == $table->getVar('table_admin')) {
513 513
                 $ret .= $this->getCommentLine('Admin pager');
514 514
                 $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'",
515
-                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
515
+                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
516 516
                 $ret .= $this->usercode->getUserModVersion(3, $adminPager, 'config', '$c');
517 517
                 $ret .= $this->getSimpleString('++$c;');
518 518
             }
519 519
             if (1 == $table->getVar('table_user')) {
520 520
                 $ret .= $this->getCommentLine('User pager');
521 521
                 $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
522
-                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
522
+                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
523 523
                 $ret .= $this->usercode->getUserModVersion(3, $userPager, 'config', '$c');
524 524
                 $ret .= $this->getSimpleString('++$c;');
525 525
             }
526 526
             if (1 == $table->getVar('table_tag')) {
527 527
                 $ret .= $this->getCommentLine('Use tag');
528 528
                 $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
529
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
529
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
530 530
                 $ret .= $this->usercode->getUserModVersion(3, $useTag, 'config', '$c');
531 531
                 $ret .= $this->getSimpleString('++$c;');
532 532
             }
533 533
         }
534 534
         $ret .= $this->getCommentLine('Number column');
535 535
         $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'",
536
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
536
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
537 537
         $ret .= $this->usercode->getUserModVersion(3, $numbCol, 'config', '$c');
538 538
         $ret .= $this->getSimpleString('++$c;');
539 539
         $ret .= $this->getCommentLine('Divide by');
540 540
         $divideby = array('name' => "'divideby'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
541
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
541
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
542 542
         $ret .= $this->usercode->getUserModVersion(3, $divideby, 'config', '$c');
543 543
         $ret .= $this->getSimpleString('++$c;');
544 544
         $ret .= $this->getCommentLine('Table type');
545 545
         $tableType = array('name' => "'table_type'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
546
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')", );
546
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')",);
547 547
         $ret .= $this->usercode->getUserModVersion(3, $tableType, 'config', '$c');
548 548
         $ret .= $this->getSimpleString('++$c;');
549 549
         $ret .= $this->getCommentLine('Panel by');
550 550
         $panelType = array('name' => "'panel_type'", 'title' => "'{$language}PANEL_TYPE'", 'description' => "'{$language}PANEL_TYPE_DESC'",
551
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')", );
551
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')",);
552 552
         $ret .= $this->usercode->getUserModVersion(3, $panelType, 'config', '$c');
553 553
         $ret .= $this->getSimpleString('++$c;');
554 554
         $ret .= $this->getCommentLine('Panel by');
555 555
         $advertise = array('name' => "'advertise'", 'title' => "'{$language}ADVERTISE'", 'description' => "'{$language}ADVERTISE_DESC'",
556
-                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''", );
556
+                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''",);
557 557
         $ret .= $this->usercode->getUserModVersion(3, $advertise, 'config', '$c');
558 558
         $ret .= $this->getSimpleString('++$c;');
559 559
         $ret .= $this->getCommentLine('Panel by');
560 560
         $bookmarks = array('name' => "'bookmarks'", 'title' => "'{$language}BOOKMARKS'", 'description' => "'{$language}BOOKMARKS_DESC'",
561
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
561
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
562 562
         $ret .= $this->usercode->getUserModVersion(3, $bookmarks, 'config', '$c');
563 563
         $ret .= $this->getSimpleString('++$c;');
564 564
         $ret .= $this->getCommentLine('Facebook Comments');
565 565
         $facebookComments = array('name' => "'facebook_comments'", 'title' => "'{$language}FACEBOOK_COMMENTS'", 'description' => "'{$language}FACEBOOK_COMMENTS_DESC'",
566
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
566
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
567 567
         $ret .= $this->usercode->getUserModVersion(3, $facebookComments, 'config', '$c');
568 568
         $ret .= $this->getSimpleString('++$c;');
569 569
         $ret .= $this->getCommentLine('Disqus Comments');
570 570
         $disqusComments = array('name' => "'disqus_comments'", 'title' => "'{$language}DISQUS_COMMENTS'", 'description' => "'{$language}DISQUS_COMMENTS_DESC'",
571
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
571
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
572 572
         $ret .= $this->usercode->getUserModVersion(3, $disqusComments, 'config', '$c');
573 573
         $ret .= $this->getSimpleString('++$c;');
574 574
         $ret .= $this->getCommentLine('Maintained by');
575 575
         $maintainedby = array('name' => "'maintainedby'", 'title' => "'{$language}MAINTAINEDBY'", 'description' => "'{$language}MAINTAINEDBY_DESC'",
576
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => "'{$module->getVar('mod_support_url')}'", );
576
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => "'{$module->getVar('mod_support_url')}'",);
577 577
         $ret .= $this->usercode->getUserModVersion(3, $maintainedby, 'config', '$c');
578 578
         $ret .= $this->getSimpleString('unset($c);');
579 579
 
@@ -608,14 +608,14 @@  discard block
 block discarded – undo
608 608
             case 'category':
609 609
                 $ret .= $this->getCommentLine('Category Notify');
610 610
                 $category = array('name' => "'category'", 'title' => "'{$language}{$stuTableName}_NOTIFY'", 'description' => "'{$language}{$stuTableName}_NOTIFY_DESC'",
611
-                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1', );
611
+                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1',);
612 612
                 $ret .= $this->usercode->getUserModVersion(3, $category, 'notification', "'{$type}'");
613 613
                 break;
614 614
             case 'event':
615 615
                 $ret .= $this->getCommentLine('Event Notify');
616 616
                 $event = array('name' => "'{$typeOfNotify}'", 'category' => "'{$tableName}'", 'admin_only' => '1', "'title'" => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY'",
617 617
                                 'caption' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_CAPTION'", 'description' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_DESC'",
618
-                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", );
618
+                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",);
619 619
                 $ret .= $this->usercode->getUserModVersion(3, $event, 'notification', "'{$type}'");
620 620
                 break;
621 621
         }
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
         $implodeFrom = implode(".php', '", $from);
732 732
         $ret = $this->getCommentLine('Global Notify');
733 733
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
734
-                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", );
734
+                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",);
735 735
         $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
736 736
 
737 737
         return $ret;
@@ -751,11 +751,11 @@  discard block
 block discarded – undo
751 751
      */
752 752
     private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $from, $item, $allow, $num)
753 753
     {
754
-        $title = strtoupper($title);//{$from}
754
+        $title = strtoupper($title); //{$from}
755 755
         $implodeFrom = implode(".php', '", $from);
756 756
         $ret = $this->getCommentLine('Category Notify');
757 757
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
758
-                        'subscribe_from' => "array('{$implodeFrom}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
758
+                        'subscribe_from' => "array('{$implodeFrom}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
759 759
         $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
760 760
 
761 761
         return $ret;
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
         $ucfTitle = ucfirst($title);
782 782
         $ret = $this->getCommentLine($ucfTitle.' Notify');
783 783
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
784
-                        'subscribe_from' => "'{$from}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
784
+                        'subscribe_from' => "'{$from}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
785 785
         $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
786 786
 
787 787
         return $ret;
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
         $ret = $this->getCommentLine($ucfTitle.' Notify');
810 810
         $event = array('name' => "'{$name}'", 'category' => "'{$category}'", 'admin_only' => "{$admin}", 'title' => "{$language}{$title}_{$table}_NOTIFY",
811 811
                         'caption' => "{$language}{$title}_{$table}_NOTIFY_CAPTION", 'description' => "{$language}{$title}_{$table}_NOTIFY_DESC",
812
-                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT", );
812
+                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT",);
813 813
         $ret .= $this->usercode->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
814 814
 
815 815
         return $ret;
Please login to merge, or discard this patch.