Completed
Push — master ( 6f00b4...805ee0 )
by Gino
03:23
created
class/files/admin/AdminPages.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@
 block discarded – undo
376 376
                         'new' => array($new),
377 377
                         'save' => array($save),
378 378
                         'edit' => array($edit),
379
-                        'delete' => array($delete), );
379
+                        'delete' => array($delete),);
380 380
         $content .= $this->getAdminPagesSwitch($cases);
381 381
         $content .= $this->getInclude('footer');
382 382
         //
Please login to merge, or discard this patch.
Doc Comments   +30 added lines patch added patch discarded remove patch
@@ -58,6 +58,11 @@  discard block
 block discarded – undo
58 58
     *  @param $module
59 59
     *  @param $table
60 60
     */
61
+
62
+    /**
63
+     * @param string $module
64
+     * @param string $filename
65
+     */
61 66
     public function write($module, $table, $filename)
62 67
     {
63 68
         $this->setModule($module);
@@ -112,6 +117,10 @@  discard block
 block discarded – undo
112 117
     *  @param $fieldMain
113 118
     *  @return string
114 119
     */
120
+
121
+    /**
122
+     * @param string $language
123
+     */
115 124
     private function getAdminPagesList($moduleDirname, $table, $language, $fields, $fieldId, $fieldInForm, $fieldMain, $t = '')
116 125
     {
117 126
         $pc = TDMCreatePhpCode::getInstance();
@@ -164,6 +173,10 @@  discard block
 block discarded – undo
164 173
     *  @param $language
165 174
     *  @return string
166 175
     */
176
+
177
+    /**
178
+     * @param string $language
179
+     */
167 180
     private function getAdminPagesNew($moduleDirname, $tableName, $fieldInForm, $language, $t = '')
168 181
     {
169 182
         $pc = TDMCreatePhpCode::getInstance();
@@ -197,6 +210,11 @@  discard block
 block discarded – undo
197 210
     *
198 211
     *  @return string
199 212
     */
213
+
214
+    /**
215
+     * @param string $ccFieldId
216
+     * @param string $newFieldId
217
+     */
200 218
     private function getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, $newFieldId, $perm = 'view')
201 219
     {
202 220
         $pc = TDMCreatePhpCode::getInstance();
@@ -221,6 +239,10 @@  discard block
 block discarded – undo
221 239
     *  @param $fieldMain
222 240
     *  @return string
223 241
     */
242
+
243
+    /**
244
+     * @param string $language
245
+     */
224 246
     private function getAdminPagesSave($moduleDirname, $tableName, $tableCategory, $language, $fields, $fieldId, $fieldMain, $t = '')
225 247
     {
226 248
         $pc = TDMCreatePhpCode::getInstance();
@@ -311,6 +333,10 @@  discard block
 block discarded – undo
311 333
     *  @param $fieldInForm
312 334
     *  @return string
313 335
     */
336
+
337
+    /**
338
+     * @param string $language
339
+     */
314 340
     private function getAdminPagesEdit($moduleDirname, $table, $language, $fieldId, $fieldInForm, $t = '')
315 341
     {
316 342
         $pc = TDMCreatePhpCode::getInstance();
@@ -351,6 +377,10 @@  discard block
 block discarded – undo
351 377
     *  @param $fieldMain
352 378
     *  @return string
353 379
     */
380
+
381
+    /**
382
+     * @param string $language
383
+     */
354 384
     private function getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, $t = '')
355 385
     {
356 386
         $axc = AdminXoopsCode::getInstance();
Please login to merge, or discard this patch.
class/files/user/UserSearch.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * @param $module
121 121
      * @param $tableName
122
-     * @param $language
122
+     * @param string $language
123 123
      *
124 124
      * @return string
125 125
      */
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @param $moduleDirname
140 140
      * @param $tableName
141
-     * @param $language
141
+     * @param string $language
142 142
      *
143 143
      * @return string
144 144
      */
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     *  @param null
167 167
     */
168 168
     /**
169
-     * @return bool|string
169
+     * @return null|string
170 170
      */
171 171
     public function render()
172 172
     {
Please login to merge, or discard this patch.
class/fieldattributes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  * @version         $Id: 1.91 fieldattributes.php 13027 2015-02-14 12:18:10Z timgno $
23 23
  */
24 24
 
25
- /*
25
+    /*
26 26
 *  @Class TDMCreateFieldattributes
27 27
 *  @extends XoopsObject
28 28
 */
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.
class/files/TDMCreateFile.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
      * @param $subdir
122 122
      * @param $fileName
123 123
      * @param $content
124
-     * @param $created
125
-     * @param $notCreated
124
+     * @param string $created
125
+     * @param string $notCreated
126 126
      * @param $mode
127 127
      */
128 128
     public function create($moduleDirname, $subdir = null, $fileName = null, $content = '', $created = null, $notCreated = null, $mode = 'w+')
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     *  @param string $subdir
185 185
     */
186 186
     /**
187
-     * @param $subdir
187
+     * @param string $subdir
188 188
      */
189 189
     private function setSubDir($subdir)
190 190
     {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     *  @param string $content
230 230
     */
231 231
     /**
232
-     * @param $content
232
+     * @param string $content
233 233
      */
234 234
     private function setContent($content)
235 235
     {
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     *  @param string $mode
317 317
     */
318 318
     /**
319
-     * @param $mode
319
+     * @param string $mode
320 320
      */
321 321
     private function setMode($mode)
322 322
     {
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
      *  @param $string
432 432
      */
433 433
     /**
434
-     * @param $string
434
+     * @param string $string
435 435
      *
436 436
      * @return string
437 437
      */
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
      *  @param $string
446 446
      */
447 447
     /**
448
-     * @param $string
448
+     * @param string $string
449 449
      *
450 450
      * @return string
451 451
      */
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
     /**
525 525
      * @private function getHeaderComment
526 526
      *
527
-     * @param $comment
527
+     * @param string $comment
528 528
      *
529 529
      * @return string
530 530
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         if (strrpos($path, '\\')) {
261 261
             $str = strrpos($path, '\\');
262 262
             if ($str !== false) {
263
-                return substr($path, $str + 1, strlen($path));
263
+                return substr($path, $str+1, strlen($path));
264 264
             } else {
265 265
                 return substr($path, $str, strlen($path));
266 266
             }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         if (strpos($string, '_')) {
389 389
             $str = strpos($string, '_');
390 390
             if ($str !== false) {
391
-                $ret = substr($string, $str + 1, strlen($string));
391
+                $ret = substr($string, $str+1, strlen($string));
392 392
 
393 393
                 return $ret;
394 394
             }
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
         $ret .= "*/\n";
588 588
         $copyright = array($name => 'module for xoops', '' => '', '@copyright  ' => '   module for xoops', '@license   ' => "    {$license}", '@package   ' => "    {$dirname}",
589 589
                             '@since    ' => "     {$since}", '@min_xoops   ' => "  {$minXoops}", '@author    ' => "    {$author} - Email:<{$authorMail}> - Website:<{$authorWebsiteUrl}>",
590
-                            '@version    ' => "   \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$", );
590
+                            '@version    ' => "   \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$",);
591 591
         $ret .= TDMCreatePhpCode::getInstance()->getPhpCodeCommentMultiLine($copyright);
592 592
 
593 593
         return $ret;
Please login to merge, or discard this patch.
class/files/TDMCreateArchitecture.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $language = ($xLanguage != 'english') ? $xLanguage : 'english';
114 114
         $copyFiles = array('class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile,
115 115
                         'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile,
116
-                        'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile, );
116
+                        'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile,);
117 117
         foreach ($copyFiles as $k => $v) {
118 118
             // Creation of folders and index.html file
119 119
             $this->makeDirAndCopyFile($k, $v, 'index.html');
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         // Creation of 'module_author_logo.gif' file
139 139
         $this->copyFile('assets/images', $copyNewFile, $stlModuleAuthor.'_logo.gif');
140 140
         $docs = array('/credits.txt' => 'credits.txt', '/install.txt' => 'install.txt',
141
-                    '/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt', );
141
+                    '/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt',);
142 142
         foreach ($docs as $k => $v) {
143 143
             // Creation of folder docs and .txt files
144 144
             $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v);
Please login to merge, or discard this patch.
class/files/TDMCreateHtmlCode.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         return $ret;
97 97
     }
98 98
 
99
-     /*
99
+        /*
100 100
     *  @private function setAttributes
101 101
     *  @param array $attributes
102 102
     */
Please login to merge, or discard this patch.
class/files/TDMCreateSmartyCode.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         return $ret;
97 97
     }
98 98
 
99
-     /*
99
+        /*
100 100
     *  @private function setAttributes
101 101
     *  @param array $attributes
102 102
     */
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     *  @param null
44 44
     */
45 45
     /**
46
-     * @return TDMCreateSmartySmartyCodes
46
+     * @return TDMCreateSmartyCode
47 47
      */
48 48
     public static function &getInstance()
49 49
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * @param string $operator
257 257
      * @param string $type
258 258
      * @param string $contentIf
259
-     * @param mixed  $contentElse
259
+     * @param string  $contentElse
260 260
      * @param bool   $count
261 261
      *
262 262
      * @return string
Please login to merge, or discard this patch.
class/files/user/UserXoopsVersion.php 2 patches
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->uc->getUserModVersion(1, $descriptions);
163 163
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         $ret = $this->phpcode->getPhpCodeCommentLine("{$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->uc->getUserModVersion(3, $blocks, 'blocks', '$b');
455 455
         $ret .= $this->getSimpleString('++$b;');
456 456
 
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
                 $ret .= $this->xc->getXcLoad('xoopseditorhandler');
486 486
                 $ret .= $this->xc->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()');
487 487
                 $editor = array('name' => "'{$moduleDirname}_editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$stuFieldName}'", 'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'",
488
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())', );
488
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())',);
489 489
                 $ret .= $this->uc->getUserModVersion(3, $editor, 'config', '$c');
490 490
                 $ret .= $this->getSimpleString('++$c;');
491 491
             }
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
             $group = $this->xc->getXcEqualsOperator('$groups[$group] ', '$key');
499 499
             $ret .= $this->phpcode->getPhpCodeForeach('xoopsGroups', false, 'key', 'group', $group);
500 500
             $groups = array('name' => "'groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
501
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups', );
501
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups',);
502 502
             $ret .= $this->uc->getUserModVersion(3, $groups, 'config', '$c');
503 503
             $ret .= $this->getSimpleString('++$c;');
504 504
             $ret .= $this->phpcode->getPhpCodeCommentLine('Get Admin groups');
@@ -509,14 +509,14 @@  discard block
 block discarded – undo
509 509
             $adminGroup = $this->xc->getXcEqualsOperator('$adminGroups[$adminGroup] ', '$key');
510 510
             $ret .= $this->phpcode->getPhpCodeForeach('adminXoopsGroups', false, 'key', 'adminGroup', $adminGroup);
511 511
             $adminGroups = array('name' => "'admin_groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
512
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups', );
512
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups',);
513 513
             $ret .= $this->uc->getUserModVersion(3, $adminGroups, 'config', '$c');
514 514
             $ret .= $this->getSimpleString('++$c;');
515 515
         }
516 516
         $keyword = implode(', ', $this->getKeywords());
517 517
         $ret .= $this->phpcode->getPhpCodeCommentLine('Keywords');
518 518
         $arrayKeyword = array('name' => "'keywords'", 'title' => "'{$language}KEYWORDS'", 'description' => "'{$language}KEYWORDS_DESC'",
519
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'", );
519
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'",);
520 520
         $ret .= $this->uc->getUserModVersion(3, $arrayKeyword, 'config', '$c');
521 521
         $ret .= $this->getSimpleString('++$c;');
522 522
         unset($this->keywords);
@@ -527,80 +527,80 @@  discard block
 block discarded – undo
527 527
         if (in_array(10, $fieldElement) || in_array(11, $fieldElement) || in_array(12, $fieldElement) || in_array(13, $fieldElement) || in_array(14, $fieldElement)) {
528 528
             $ret .= $this->phpcode->getPhpCodeCommentLine('Uploads : maxsize of image');
529 529
             $maxsize = array('name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'",
530
-                'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000', );
530
+                'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000',);
531 531
             $ret .= $this->uc->getUserModVersion(3, $maxsize, 'config', '$c');
532 532
             $ret .= $this->phpcode->getPhpCodeCommentLine('Uploads : mimetypes of image');
533 533
             $ret .= $this->getSimpleString('++$c;');
534 534
             $mimetypes = array('name' => "'mimetypes'", 'title' => "'{$language}MIMETYPES'", 'description' => "'{$language}MIMETYPES_DESC'",
535 535
                 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => "array('image/gif', 'image/jpeg', 'image/png')",
536
-                'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')", );
536
+                'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')",);
537 537
             $ret .= $this->uc->getUserModVersion(3, $mimetypes, 'config', '$c');
538 538
             $ret .= $this->getSimpleString('++$c;');
539 539
         }
540 540
         if (1 == $table->getVar('table_admin')) {
541 541
             $ret .= $this->phpcode->getPhpCodeCommentLine('Admin pager');
542 542
             $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'",
543
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
543
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
544 544
             $ret .= $this->uc->getUserModVersion(3, $adminPager, 'config', '$c');
545 545
             $ret .= $this->getSimpleString('++$c;');
546 546
         }
547 547
         if (1 == $table->getVar('table_user')) {
548 548
             $ret .= $this->phpcode->getPhpCodeCommentLine('User pager');
549 549
             $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
550
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
550
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
551 551
             $ret .= $this->uc->getUserModVersion(3, $userPager, 'config', '$c');
552 552
             $ret .= $this->getSimpleString('++$c;');
553 553
         }
554 554
         if (1 == $table->getVar('table_tag')) {
555 555
             $ret .= $this->phpcode->getPhpCodeCommentLine('Use tag');
556 556
             $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
557
-                    'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
557
+                    'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
558 558
             $ret .= $this->uc->getUserModVersion(3, $useTag, 'config', '$c');
559 559
             $ret .= $this->getSimpleString('++$c;');
560 560
         }
561 561
         $ret .= $this->phpcode->getPhpCodeCommentLine('Number column');
562 562
         $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'",
563
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
563
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
564 564
         $ret .= $this->uc->getUserModVersion(3, $numbCol, 'config', '$c');
565 565
         $ret .= $this->getSimpleString('++$c;');
566 566
         $ret .= $this->phpcode->getPhpCodeCommentLine('Divide by');
567 567
         $divideby = array('name' => "'divideby'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
568
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
568
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
569 569
         $ret .= $this->uc->getUserModVersion(3, $divideby, 'config', '$c');
570 570
         $ret .= $this->getSimpleString('++$c;');
571 571
         $ret .= $this->phpcode->getPhpCodeCommentLine('Table type');
572 572
         $tableType = array('name' => "'table_type'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
573
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')", );
573
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')",);
574 574
         $ret .= $this->uc->getUserModVersion(3, $tableType, 'config', '$c');
575 575
         $ret .= $this->getSimpleString('++$c;');
576 576
         $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by');
577 577
         $panelType = array('name' => "'panel_type'", 'title' => "'{$language}PANEL_TYPE'", 'description' => "'{$language}PANEL_TYPE_DESC'",
578
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')", );
578
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')",);
579 579
         $ret .= $this->uc->getUserModVersion(3, $panelType, 'config', '$c');
580 580
         $ret .= $this->getSimpleString('++$c;');
581 581
         $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by');
582 582
         $advertise = array('name' => "'advertise'", 'title' => "'{$language}ADVERTISE'", 'description' => "'{$language}ADVERTISE_DESC'",
583
-                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''", );
583
+                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''",);
584 584
         $ret .= $this->uc->getUserModVersion(3, $advertise, 'config', '$c');
585 585
         $ret .= $this->getSimpleString('++$c;');
586 586
         $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by');
587 587
         $bookmarks = array('name' => "'bookmarks'", 'title' => "'{$language}BOOKMARKS'", 'description' => "'{$language}BOOKMARKS_DESC'",
588
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
588
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
589 589
         $ret .= $this->uc->getUserModVersion(3, $bookmarks, 'config', '$c');
590 590
         $ret .= $this->getSimpleString('++$c;');
591 591
         $ret .= $this->phpcode->getPhpCodeCommentLine('Facebook Comments');
592 592
         $facebookComments = array('name' => "'facebook_comments'", 'title' => "'{$language}FACEBOOK_COMMENTS'", 'description' => "'{$language}FACEBOOK_COMMENTS_DESC'",
593
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
593
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
594 594
         $ret .= $this->uc->getUserModVersion(3, $facebookComments, 'config', '$c');
595 595
         $ret .= $this->getSimpleString('++$c;');
596 596
         $ret .= $this->phpcode->getPhpCodeCommentLine('Disqus Comments');
597 597
         $disqusComments = array('name' => "'disqus_comments'", 'title' => "'{$language}DISQUS_COMMENTS'", 'description' => "'{$language}DISQUS_COMMENTS_DESC'",
598
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
598
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
599 599
         $ret .= $this->uc->getUserModVersion(3, $disqusComments, 'config', '$c');
600 600
         $ret .= $this->getSimpleString('++$c;');
601 601
         $ret .= $this->phpcode->getPhpCodeCommentLine('Maintained by');
602 602
         $maintainedby = array('name' => "'maintainedby'", 'title' => "'{$language}MAINTAINEDBY'", 'description' => "'{$language}MAINTAINEDBY_DESC'",
603
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'", );
603
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'",);
604 604
         $ret .= $this->uc->getUserModVersion(3, $maintainedby, 'config', '$c');
605 605
         $ret .= $this->getSimpleString('unset($c);');
606 606
 
@@ -636,14 +636,14 @@  discard block
 block discarded – undo
636 636
             case 'category':
637 637
                 $ret .= $this->phpcode->getPhpCodeCommentLine('Category Notify');
638 638
                 $category = array('name' => "'category'", 'title' => "'{$language}{$stuTableName}_NOTIFY'", 'description' => "'{$language}{$stuTableName}_NOTIFY_DESC'",
639
-                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1', );
639
+                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1',);
640 640
                 $ret .= $this->uc->getUserModVersion(3, $category, 'notification', "'{$type}'");
641 641
                 break;
642 642
             case 'event':
643 643
                 $ret .= $this->phpcode->getPhpCodeCommentLine('Event Notify');
644 644
                 $event = array('name' => "'{$typeOfNotify}'", 'category' => "'{$tableName}'", 'admin_only' => '1', "'title'" => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY'",
645 645
                                 'caption' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_CAPTION'", 'description' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_DESC'",
646
-                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", );
646
+                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",);
647 647
                 $ret .= $this->uc->getUserModVersion(3, $event, 'notification', "'{$type}'");
648 648
                 break;
649 649
         }
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
         $implodeFrom = implode(".php', '", $from);
763 763
         $ret = $this->phpcode->getPhpCodeCommentLine('Global Notify');
764 764
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
765
-                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", );
765
+                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",);
766 766
         $ret .= $this->uc->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
767 767
 
768 768
         return $ret;
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
         $impFile = implode(".php', '", $file);
787 787
         $ret = $this->phpcode->getPhpCodeCommentLine('Category Notify');
788 788
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
789
-                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
789
+                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
790 790
         $ret .= $this->uc->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
791 791
 
792 792
         return $ret;
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
         $ucfTitle = ucfirst($title);
813 813
         $ret = $this->phpcode->getPhpCodeCommentLine($ucfTitle.' Notify');
814 814
         $table = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
815
-                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
815
+                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
816 816
         $ret .= $this->uc->getUserModVersion(4, $table, 'notification', "'{$type}'", $num);
817 817
 
818 818
         return $ret;
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
         $ret = $this->phpcode->getPhpCodeCommentLine($ucfTitle.' Notify');
841 841
         $event = array('name' => "'{$name}'", 'category' => "'{$category}'", 'admin_only' => "{$admin}", 'title' => "{$language}{$title}_{$table}_NOTIFY",
842 842
                         'caption' => "{$language}{$title}_{$table}_NOTIFY_CAPTION", 'description' => "{$language}{$title}_{$table}_NOTIFY_DESC",
843
-                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT", );
843
+                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT",);
844 844
         $ret .= $this->uc->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
845 845
 
846 846
         return $ret;
Please login to merge, or discard this patch.
Doc Comments   +28 added lines, -17 removed lines patch added patch discarded remove patch
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
     *  @param $filename
70 70
     */
71 71
     /**
72
-     * @param $module
72
+     * @param string $module
73 73
      * @param $table
74 74
      * @param $tables
75
-     * @param $filename
75
+     * @param string $filename
76 76
      */
77 77
     public function write($module, $table, $tables, $filename)
78 78
     {
@@ -121,6 +121,10 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @return string
123 123
      */
124
+
125
+    /**
126
+     * @param string $language
127
+     */
124 128
     private function getXoopsVersionHeader($module, $language)
125 129
     {
126 130
         $xCodeVHeader = TDMCreateXoopsCode::getInstance();
@@ -359,7 +363,7 @@  discard block
 block discarded – undo
359 363
     *  @param $language
360 364
     */
361 365
     /**
362
-     * @param $language
366
+     * @param string $language
363 367
      *
364 368
      * @return string
365 369
      */
@@ -397,7 +401,7 @@  discard block
 block discarded – undo
397 401
     */
398 402
     /**
399 403
      * @param $moduleDirname
400
-     * @param $language
404
+     * @param string $language
401 405
      *
402 406
      * @return string
403 407
      */
@@ -435,6 +439,7 @@  discard block
 block discarded – undo
435 439
     /**
436 440
      * @param $moduleDirname
437 441
      * @param $language
442
+     * @param string $stuTableSoleName
438 443
      *
439 444
      * @return string
440 445
      */
@@ -462,7 +467,7 @@  discard block
 block discarded – undo
462 467
     /**
463 468
      * @param $module
464 469
      * @param $table
465
-     * @param $language
470
+     * @param string $language
466 471
      *
467 472
      * @return string
468 473
      */
@@ -660,7 +665,7 @@  discard block
 block discarded – undo
660 665
     */
661 666
     /**
662 667
      * @param $moduleDirname
663
-     * @param $language
668
+     * @param string $language
664 669
      *
665 670
      * @return string
666 671
      */
@@ -753,10 +758,11 @@  discard block
 block discarded – undo
753 758
     */
754 759
     /**
755 760
      * @param $language
756
-     * @param $type
757
-     * @param $name
758
-     * @param $title
761
+     * @param string $type
762
+     * @param string $name
763
+     * @param string $title
759 764
      * @param $from
765
+     * @param integer $num
760 766
      *
761 767
      * @return string
762 768
      */
@@ -779,10 +785,12 @@  discard block
 block discarded – undo
779 785
     */
780 786
     /**
781 787
      * @param $language
782
-     * @param $type
783
-     * @param $name
784
-     * @param $title
788
+     * @param string $type
789
+     * @param string $name
790
+     * @param string $title
785 791
      * @param $from
792
+     * @param string $allow
793
+     * @param integer $num
786 794
      *
787 795
      * @return string
788 796
      */
@@ -805,12 +813,13 @@  discard block
 block discarded – undo
805 813
     */
806 814
     /**
807 815
      * @param $language
808
-     * @param $type
816
+     * @param string $type
809 817
      * @param $name
810 818
      * @param $title
811 819
      * @param $file
812 820
      * @param $item
813 821
      * @param $allow
822
+     * @param integer $num
814 823
      *
815 824
      * @return string
816 825
      */
@@ -833,12 +842,14 @@  discard block
 block discarded – undo
833 842
     */
834 843
     /**
835 844
      * @param $language
836
-     * @param $type
837
-     * @param $name
845
+     * @param string $type
846
+     * @param string $name
838 847
      * @param $title
839 848
      * @param $from
840 849
      * @param $item
841
-     * @param $mail
850
+     * @param string $mail
851
+     * @param string $table
852
+     * @param integer $num
842 853
      *
843 854
      * @return string
844 855
      */
@@ -863,7 +874,7 @@  discard block
 block discarded – undo
863 874
     *  @param null
864 875
     */
865 876
     /**
866
-     * @return bool|string
877
+     * @return null|string
867 878
      */
868 879
     public function render()
869 880
     {
Please login to merge, or discard this patch.