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