Completed
Pull Request — master (#126)
by Gino
03:40
created
class/files/templates/user/TemplatesUserSearch.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * @param $moduleDirname
84 84
      * @param $table
85
-     * @param $language
85
+     * @param string $language
86 86
      *
87 87
      * @return string
88 88
      */
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param $moduleDirname
123 123
      * @param $table
124
-     * @param $language
124
+     * @param string $language
125 125
      *
126 126
      * @return string
127 127
      */
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * @param $moduleDirname
184 184
      * @param $table
185
-     * @param $language
185
+     * @param string $language
186 186
      *
187 187
      * @return string
188 188
      */
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     /**
254 254
      * @param null
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/admin/AdminIndex.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
     *  @param string $filename
64 64
     */
65 65
     /**
66
-     * @param $module
66
+     * @param string $module
67 67
      * @param $tables
68
-     * @param $filename
68
+     * @param string $filename
69 69
      */
70 70
     public function write($module, $tables, $filename)
71 71
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     *  @param null
146 146
     */
147 147
     /**
148
-     * @return bool|string
148
+     * @return null|string
149 149
      */
150 150
     public function render()
151 151
     {
Please login to merge, or discard this patch.
class/files/admin/AdminPages.php 1 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/admin/AdminPermissions.php 2 patches
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @private function getPermissionsHeader    
75 75
      *
76 76
      * @param $module
77
-     * @param $language
77
+     * @param string $language
78 78
      *
79 79
      * @return string
80 80
      */
@@ -114,6 +114,10 @@  discard block
 block discarded – undo
114 114
      *
115 115
      *  @return string
116 116
      */
117
+
118
+    /**
119
+     * @param string $language
120
+     */
117 121
     private function getPermissionsSwitch($moduleDirname, $language)
118 122
     {
119 123
         $pc = TDMCreatePhpCode::getInstance();
@@ -198,7 +202,7 @@  discard block
 block discarded – undo
198 202
      *
199 203
      *  @param null
200 204
      *
201
-     *  @return bool|string
205
+     *  @return null|string
202 206
      */
203 207
     public function render()
204 208
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $ret .= $xc->getXcXoopsRequest('op', 'op', 'global');
101 101
         $ret .= $xc->getXcLoad('XoopsFormLoader');
102 102
         $optionsSelect = array('global' => "{$language}PERMISSIONS_GLOBAL", 'approve' => "{$language}PERMISSIONS_APPROVE",
103
-                                'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW", );
103
+                                'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW",);
104 104
         $formSelect = $xc->getXoopsFormSelectExtraOptions('formSelect', '\'\'', 'op', $optionsSelect, 'onchange="document.fselperm.submit()"');
105 105
         $ret .= $cc->getXoopsSimpleForm('permTableForm', 'formSelect', $formSelect, '\'\'', 'fselperm', 'permissions');
106 106
 
@@ -120,16 +120,16 @@  discard block
 block discarded – undo
120 120
         $cases = array('global' => array("\$formTitle = {$language}PERMISSIONS_GLOBAL;",
121 121
                                         "\$permName = '{$moduleDirname}_ac';",
122 122
                                         "\$permDesc = {$language}PERMISSIONS_GLOBAL_DESC;",
123
-                                        "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );", ),
123
+                                        "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );",),
124 124
                         'approve' => array("\$formTitle = {$language}PERMISSIONS_APPROVE;",
125 125
                                         "\$permName = '{$moduleDirname}_approve';",
126
-                                        "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;", ),
126
+                                        "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;",),
127 127
                         'submit' => array("\$formTitle = {$language}PERMISSIONS_SUBMIT;",
128 128
                                         "\$permName = '{$moduleDirname}_submit';",
129
-                                        "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;", ),
129
+                                        "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;",),
130 130
                         'view' => array("\$formTitle = {$language}PERMISSIONS_VIEW;",
131 131
                                         "\$permName = '{$moduleDirname}_view';",
132
-                                        "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;", ), );
132
+                                        "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;",),);
133 133
 
134 134
         $contentSwitch = $pc->getPhpCodeCaseSwitch($cases, true, false, "\t");
135 135
 
Please login to merge, or discard this patch.
class/files/admin/AdminXoopsCode.php 1 patch
Doc Comments   +20 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     *  @param null
33 33
     */
34 34
     /**
35
-     * @return Axc
35
+     * @return AdminXoopsCode
36 36
      */
37 37
     public static function getInstance()
38 38
     {
@@ -65,6 +65,10 @@  discard block
 block discarded – undo
65 65
      *
66 66
      *  @return string
67 67
      */
68
+
69
+    /**
70
+     * @param string $stuTableSoleName
71
+     */
68 72
     public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op = '?op=new', $type = 'add', $t = '')
69 73
     {
70 74
         $stuType = strtoupper($type);
@@ -96,6 +100,10 @@  discard block
 block discarded – undo
96 100
     *  
97 101
     *  @return string
98 102
     */
103
+
104
+    /**
105
+     * @param string $language
106
+     */
99 107
     public function getAxcAddInfoBox($language, $t = '')
100 108
     {
101 109
         return "{$t}\$adminMenu->addInfoBox({$language});\n";
@@ -109,6 +117,10 @@  discard block
 block discarded – undo
109 117
     *  
110 118
     *  @return string
111 119
     */
120
+
121
+    /**
122
+     * @param string $language
123
+     */
112 124
     public function getAxcAddInfoBoxLine($language, $label = '', $var = '', $t = '')
113 125
     {
114 126
         $aMenu = $t.'$adminMenu->addInfoBoxLine(';
@@ -129,6 +141,10 @@  discard block
 block discarded – undo
129 141
     *  
130 142
     *  @return string
131 143
     */
144
+
145
+    /**
146
+     * @param string $language
147
+     */
132 148
     public function getAxcAddConfigBoxLine($language, $label = '', $var = '', $t = '')
133 149
     {
134 150
         $aMenu = $t.'$adminMenu->addConfigBoxLine(';
@@ -316,8 +332,8 @@  discard block
 block discarded – undo
316 332
     /**
317 333
      *  @public function getAxcFetchMedia
318 334
      *
319
-     *  @param $anchor
320
-     *  @param $var
335
+     *  @param string $anchor
336
+     *  @param string $var
321 337
      *
322 338
      *  @return string
323 339
      */
@@ -329,7 +345,7 @@  discard block
 block discarded – undo
329 345
     /**
330 346
      *  @public function getAxcSetPrefix
331 347
      *
332
-     *  @param $anchor
348
+     *  @param string $anchor
333 349
      *  @param $var
334 350
      *
335 351
      *  @return string
Please login to merge, or discard this patch.
class/files/blocks/BlocksFiles.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,8 +62,9 @@  discard block
 block discarded – undo
62 62
     *  @param mixed $table
63 63
     */
64 64
     /**
65
-     * @param $module
65
+     * @param string $module
66 66
      * @param $table
67
+     * @param string $filename
67 68
      */
68 69
     public function write($module, $table, $filename)
69 70
     {
@@ -226,7 +227,7 @@  discard block
 block discarded – undo
226 227
      * @param $tableName
227 228
      * @param $fieldId
228 229
      * @param $fieldMain
229
-     * @param $language
230
+     * @param string $language
230 231
      *
231 232
      * @return string
232 233
      */
@@ -277,7 +278,7 @@  discard block
 block discarded – undo
277 278
     /**
278 279
      * @param $filename
279 280
      *
280
-     * @return bool|string
281
+     * @return null|string
281 282
      */
282 283
     public function render()
283 284
     {
Please login to merge, or discard this patch.
class/files/classes/ClassFiles.php 1 patch
Doc Comments   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@  discard block
 block discarded – undo
60 60
      *  @param string $module
61 61
      *  @param string $table
62 62
      *  @param mixed $tables
63
+     * @param string $filename
63 64
      */
64 65
     public function write($module, $table, $tables, $filename)
65 66
     {
@@ -502,7 +503,7 @@  discard block
 block discarded – undo
502 503
      *  @public function getClassHandler
503 504
      *
504 505
      *  @param string $moduleDirname
505
-     *  @param string $tableName
506
+     *  @param string $table
506 507
      *  @param string $fieldId
507 508
      *  @param string $fieldMain
508 509
      *
@@ -594,8 +595,8 @@  discard block
 block discarded – undo
594 595
      *  @public function getClassCounter
595 596
      *
596 597
      *  @param $tableName
597
-     *  @param $fieldId
598
-     *  @param $fieldMain
598
+     *  @param string $fieldId
599
+     *  @param string $fieldMain
599 600
      *
600 601
      *  @return string
601 602
      */
@@ -622,8 +623,8 @@  discard block
 block discarded – undo
622 623
      *  @public function getClassAll
623 624
      *
624 625
      *  @param $tableName
625
-     *  @param $fieldId
626
-     *  @param $fieldMain
626
+     *  @param string $fieldId
627
+     *  @param string $fieldMain
627 628
      *
628 629
      *  @return string
629 630
      */
@@ -650,9 +651,10 @@  discard block
 block discarded – undo
650 651
      *  @public function getClassByCategory
651 652
      *
652 653
      *  @param $tableName
653
-     *  @param $fieldId
654
-     *  @param $fieldMain
654
+     *  @param string $fieldId
655
+     *  @param string $fieldMain
655 656
      *  @param $fieldParent
657
+     * @param string $moduleDirname
656 658
      *
657 659
      *  @return string
658 660
      */
@@ -727,8 +729,9 @@  discard block
 block discarded – undo
727 729
     /**
728 730
      *  @public function getClassGetTableSolenameById
729 731
      *
730
-     *  @param $moduleDirname
732
+     *  @param string $moduleDirname
731 733
      *  @param $table
734
+     * @param string $fieldMain
732 735
      *
733 736
      *  @return string
734 737
      */
Please login to merge, or discard this patch.
class/files/classes/ClassFormElements.php 2 patches
Doc Comments   +70 added lines patch added patch discarded remove patch
@@ -49,6 +49,11 @@  discard block
 block discarded – undo
49 49
      * @param $module
50 50
      * @param $table
51 51
      */
52
+
53
+    /**
54
+     * @param string $module
55
+     * @param string $table
56
+     */
52 57
     public function initForm($module, $table)
53 58
     {
54 59
         $this->setModule($module);
@@ -64,6 +69,10 @@  discard block
 block discarded – undo
64 69
      *
65 70
      * @return string
66 71
      */
72
+
73
+    /**
74
+     * @param string $language
75
+     */
67 76
     private function getXoopsFormText($language, $fieldName, $fieldDefault, $required = 'false')
68 77
     {
69 78
         $tf = TDMCreateFile::getInstance();
@@ -94,6 +103,10 @@  discard block
 block discarded – undo
94 103
      *
95 104
      * @return string
96 105
      */
106
+
107
+    /**
108
+     * @param string $language
109
+     */
97 110
     private function getXoopsFormTextArea($language, $fieldName, $required = 'false')
98 111
     {
99 112
         $tf = TDMCreateFile::getInstance();
@@ -117,6 +130,10 @@  discard block
 block discarded – undo
117 130
      *
118 131
      * @return string
119 132
      */
133
+
134
+    /**
135
+     * @param string $language
136
+     */
120 137
     private function getXoopsFormDhtmlTextArea($language, $moduleDirname, $fieldName, $required = 'false')
121 138
     {
122 139
         $tf = TDMCreateFile::getInstance();
@@ -149,6 +166,10 @@  discard block
 block discarded – undo
149 166
      *
150 167
      * @return string
151 168
      */
169
+
170
+    /**
171
+     * @param string $language
172
+     */
152 173
     private function getXoopsFormCheckBox($language, $tableSoleName, $fieldName, $fieldElementId, $required = 'false')
153 174
     {
154 175
         $tf = TDMCreateFile::getInstance();
@@ -213,6 +234,10 @@  discard block
 block discarded – undo
213 234
      *
214 235
      * @return string
215 236
      */
237
+
238
+    /**
239
+     * @param string $language
240
+     */
216 241
     private function getXoopsFormImageList($language, $moduleDirname, $tableName, $tableSoleName, $fieldName, $required = 'false')
217 242
     {
218 243
         $tf = TDMCreateFile::getInstance();
@@ -264,6 +289,10 @@  discard block
 block discarded – undo
264 289
      *
265 290
      * @return string
266 291
      */
292
+
293
+    /**
294
+     * @param string $language
295
+     */
267 296
     private function getXoopsFormSelectFile($language, $moduleDirname, $fieldName, $required = 'false')
268 297
     {
269 298
         $tf = TDMCreateFile::getInstance();
@@ -316,6 +345,10 @@  discard block
 block discarded – undo
316 345
      *
317 346
      * @return string
318 347
      */
348
+
349
+    /**
350
+     * @param string $language
351
+     */
319 352
     private function getXoopsFormUrlFile($language, $moduleDirname, $fieldName, $fieldDefault, $required = 'false')
320 353
     {
321 354
         $pc = TDMCreatePhpCode::getInstance();
@@ -345,6 +378,10 @@  discard block
 block discarded – undo
345 378
      *
346 379
      * @return string
347 380
      */
381
+
382
+    /**
383
+     * @param string $language
384
+     */
348 385
     private function getXoopsFormUploadImage($language, $moduleDirname, $tableName, $tableSoleName, $fieldName, $required = 'false')
349 386
     {
350 387
         $tf = TDMCreateFile::getInstance();
@@ -396,6 +433,10 @@  discard block
 block discarded – undo
396 433
      *
397 434
      * @return string
398 435
      */
436
+
437
+    /**
438
+     * @param string $language
439
+     */
399 440
     private function getXoopsFormUploadFile($language, $moduleDirname, $tableName, $fieldName, $required = 'false')
400 441
     {
401 442
         $pc = TDMCreatePhpCode::getInstance();
@@ -421,6 +462,10 @@  discard block
 block discarded – undo
421 462
      *
422 463
      * @return string
423 464
      */
465
+
466
+    /**
467
+     * @param string $language
468
+     */
424 469
     private function getXoopsFormColorPicker($language, $moduleDirname, $fieldName, $required = 'false')
425 470
     {
426 471
         $pc = TDMCreatePhpCode::getInstance();
@@ -446,6 +491,10 @@  discard block
 block discarded – undo
446 491
      *
447 492
      * @return string
448 493
      */
494
+
495
+    /**
496
+     * @param string $language
497
+     */
449 498
     private function getXoopsFormSelectBox($language, $moduleDirname, $tableName, $fieldName, $required = 'false')
450 499
     {
451 500
         $tf = TDMCreateFile::getInstance();
@@ -475,6 +524,10 @@  discard block
 block discarded – undo
475 524
      *
476 525
      * @return string
477 526
      */
527
+
528
+    /**
529
+     * @param string $language
530
+     */
478 531
     private function getXoopsFormSelectUser($language, $moduleDirname, $fieldName, $required = 'false')
479 532
     {
480 533
         $pc = TDMCreatePhpCode::getInstance();
@@ -498,6 +551,10 @@  discard block
 block discarded – undo
498 551
      *
499 552
      * @return string
500 553
      */
554
+
555
+    /**
556
+     * @param string $language
557
+     */
501 558
     private function getXoopsFormRadioYN($language, $fieldName, $required = 'false')
502 559
     {
503 560
         $tf = TDMCreateFile::getInstance();
@@ -522,6 +579,10 @@  discard block
 block discarded – undo
522 579
      *
523 580
      * @return string
524 581
      */
582
+
583
+    /**
584
+     * @param string $language
585
+     */
525 586
     private function getXoopsFormTextDateSelect($language, $fieldName, $required = 'false')
526 587
     {
527 588
         $tf = TDMCreateFile::getInstance();
@@ -549,6 +610,10 @@  discard block
 block discarded – undo
549 610
      *
550 611
      * @return string
551 612
      */
613
+
614
+    /**
615
+     * @param string $language
616
+     */
552 617
     private function getXoopsFormTable($language, $moduleDirname, $tableName, $fieldName, $fieldElement, $required = 'false')
553 618
     {
554 619
         $tc = TDMCreateHelper::getInstance();
@@ -583,6 +648,11 @@  discard block
 block discarded – undo
583 648
      *
584 649
      * @return string
585 650
      */
651
+
652
+    /**
653
+     * @param string $language
654
+     * @param string $topicTableName
655
+     */
586 656
     private function getXoopsFormTopic($language, $moduleDirname, $topicTableName, $fieldId, $fieldPid, $fieldMain, $required = 'false')
587 657
     {
588 658
         $tf = TDMCreateFile::getInstance();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,9 +130,9 @@
 block discarded – undo
130 130
         $ret .= $pc->getPhpCodeArray('editorConfigs', null, false, "\t\t");
131 131
         $getConfig = $xc->getXcGetConfig($moduleDirname, $moduleDirname.'_editor_'.$rpFieldName);
132 132
         $configs = array('name' => "'{$fieldName}'", 'value' => "\$this->getVar('{$fieldName}', 'e')", 'rows' => 5, 'cols' => 40,
133
-                        'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig, );
133
+                        'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig,);
134 134
         foreach ($configs as $c => $d) {
135
-            $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d,  null, false, "\t\t");
135
+            $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t");
136 136
         }
137 137
         $formEditor = $cc->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true);
138 138
         $ret .= $cc->getClassAddElement('form', $formEditor.$required);
Please login to merge, or discard this patch.
class/files/docs/DocsFiles.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.