Completed
Push — master ( df9201...fc5d0d )
by Goffy
9s
created
class/files/TDMCreateHtmlSmartyCodes.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
     /**
491 491
     *  @public function getSmartyConst
492 492
     *  @param string $language
493
-    *  @param mixed $const
493
+    *  @param string $const
494 494
      *
495 495
      * @return string
496 496
      */
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
      * @param string $operator
579 579
      * @param string $type
580 580
      * @param string $contentIf
581
-     * @param mixed  $contentElse
581
+     * @param boolean  $contentElse
582 582
      * @param bool   $count
583 583
      *
584 584
      * @param bool   $noSimbol
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@  discard block
 block discarded – undo
28 28
 class TDMCreateHtmlSmartyCodes
29 29
 {
30 30
     /**
31
-    *  @public function constructor
32
-    *  @param null
33
-    */
31
+     *  @public function constructor
32
+     *  @param null
33
+     */
34 34
 
35 35
     public function __construct()
36 36
     {
37 37
     }
38 38
 
39 39
     /**
40
-    *  @static function getInstance
41
-    *  @param null
40
+     *  @static function getInstance
41
+     *  @param null
42 42
      * @return TDMCreateHtmlSmartyCodes
43 43
      */
44 44
     public static function getInstance()
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-    *  @private function setAttributes
81
-    *  @param array $attributes
82
-    *
83
-    * @return string
84
-    */
80
+     *  @private function setAttributes
81
+     *  @param array $attributes
82
+     *
83
+     * @return string
84
+     */
85 85
     private function getAttributes($attributes)
86 86
     {
87 87
         $str = '';
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-    *  @public function getHtmlEmpty
99
-    *  @param string $empty
98
+     *  @public function getHtmlEmpty
99
+     *  @param string $empty
100 100
      *
101 101
      * @return string
102 102
      */
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-    *  @public function getHtmlComment
110
-    *  @param string $htmlComment
109
+     *  @public function getHtmlComment
110
+     *  @param string $htmlComment
111 111
      *
112 112
      * @return string
113 113
      */
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
     }
451 451
 
452 452
     /**
453
-    *  @public function getHtmlTableData
453
+     *  @public function getHtmlTableData
454 454
      * @param $content
455 455
      * @param $tdClass
456 456
      * @param $colspan
@@ -466,8 +466,8 @@  discard block
 block discarded – undo
466 466
     }
467 467
 
468 468
     /**
469
-    *  @public function getSmartyComment
470
-    *  @param string $comment
469
+     *  @public function getSmartyComment
470
+     *  @param string $comment
471 471
      *
472 472
      * @return string
473 473
      */
@@ -477,8 +477,8 @@  discard block
 block discarded – undo
477 477
     }
478 478
 
479 479
     /**
480
-    *  @public function getSmartyNoSimbol
481
-    *  @param string $noSimbol
480
+     *  @public function getSmartyNoSimbol
481
+     *  @param string $noSimbol
482 482
      *
483 483
      * @return string
484 484
      */
@@ -488,9 +488,9 @@  discard block
 block discarded – undo
488 488
     }
489 489
 
490 490
     /**
491
-    *  @public function getSmartyConst
492
-    *  @param string $language
493
-    *  @param mixed $const
491
+     *  @public function getSmartyConst
492
+     *  @param string $language
493
+     *  @param mixed $const
494 494
      *
495 495
      * @return string
496 496
      */
@@ -500,8 +500,8 @@  discard block
 block discarded – undo
500 500
     }
501 501
 
502 502
     /**
503
-    *  @public function getSmartySingleVar
504
-    *  @param string $var
503
+     *  @public function getSmartySingleVar
504
+     *  @param string $var
505 505
      *
506 506
      * @return string
507 507
      */
@@ -511,9 +511,9 @@  discard block
 block discarded – undo
511 511
     }
512 512
 
513 513
     /**
514
-    *  @public function getSmartyDoubleVar
515
-    *  @param string $leftVar
516
-    *  @param string $rightVar
514
+     *  @public function getSmartyDoubleVar
515
+     *  @param string $leftVar
516
+     *  @param string $rightVar
517 517
      *
518 518
      * @return string
519 519
      */
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
     }
548 548
 
549 549
     /**
550
-    *  @public function getSmartyIncludeFileListSection
550
+     *  @public function getSmartyIncludeFileListSection
551 551
      * @param $moduleDirname
552 552
      * @param $fileName
553 553
      * @param $tableFieldName
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
     }
561 561
 
562 562
     /**
563
-    *  @public function getSmartyIncludeFileListForeach
563
+     *  @public function getSmartyIncludeFileListForeach
564 564
      * @param $moduleDirname
565 565
      * @param $fileName
566 566
      * @param $tableFieldName
Please login to merge, or discard this patch.
class/files/TDMCreatePhpCode.php 3 patches
Doc Comments   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
     /**
108 108
     *  @public function getPhpCodeGlobals
109
-    *  @param $var
109
+    *  @param string $var
110 110
     *  @param $value
111 111
     *
112 112
     *  @return string
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     /**
126 126
     *  @public function getPhpCodeGlobalsVariables
127
-    *  @param $var
127
+    *  @param string $var
128 128
     *  @param $type
129 129
     *
130 130
     *  @return string
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
 
162 162
     /**
163 163
      * @public function getPhpCodeRemoveCarriageReturn
164
-     * @param        $string
164
+     * @param        string $string
165 165
      *
166
-     * @param string $n
167
-     * @param string $t
166
+     * @param string string
167
+     * @param string string
168 168
      * @return string
169 169
      */
170 170
     public function getPhpCodeRemoveCarriageReturn($string, $n = "\n", $t = "\r")
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     /**
187 187
      * @public function getPhpCodeIncludeDir
188 188
      * @param        $directory
189
-     * @param        $filename
189
+     * @param        string $filename
190 190
      * @param bool   $once
191 191
      * @param bool   $isPath
192 192
      *
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
     /**
235 235
     *  @public function getPhpCodeClass
236 236
     *  @param $name
237
-    *  @param $content
238
-    *  @param $extends
237
+    *  @param string $content
238
+    *  @param string $extends
239 239
     *  @param $type
240 240
     *
241 241
     *  @return string
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
     *  @public function getPhpCodeClass
257 257
     *  @param $type
258
-    *  @param $name
258
+    *  @param string $name
259 259
     *  @param $assign
260 260
     *  @param $t - Indentation
261 261
     *
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      * @param        $name
272 272
      * @param        $params
273 273
      * @param        $content
274
-     * @param        $method
274
+     * @param        string $method
275 275
      * @param bool   $isRef
276 276
      * @param string $t - Indentation
277 277
      * @return string
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      * @param string $operator
295 295
      * @param string $type
296 296
      * @param string $contentIf
297
-     * @param mixed  $contentElse
297
+     * @param string|false  $contentElse
298 298
      * @param $t - Indentation
299 299
      *
300 300
      * @return string
@@ -388,8 +388,8 @@  discard block
 block discarded – undo
388 388
     /**
389 389
      *  @public function getPhpCodeSwitch
390 390
      *
391
-     *  @param $op
392
-     *  @param $content
391
+     *  @param string $op
392
+     *  @param string $content
393 393
      *  @param $t
394 394
      *
395 395
      *  @return string
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 
445 445
     /**
446 446
     *  @public function getPhpCodeIsset
447
-    *  @param $var
447
+    *  @param string $var
448 448
     *  @return string
449 449
     */
450 450
     public function getPhpCodeIsset($var)
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 
466 466
     /**
467 467
     *  @public function getPhpCodeIsDir
468
-    *  @param $var
468
+    *  @param string $var
469 469
     *  @return string
470 470
     */
471 471
     public function getPhpCodeIsDir($var)
@@ -475,8 +475,8 @@  discard block
 block discarded – undo
475 475
 
476 476
     /**
477 477
     *  @public function getPhpCodeImplode
478
-    *  @param $left
479
-    *  @param $right
478
+    *  @param string $left
479
+    *  @param string $right
480 480
     *  @return string
481 481
     */
482 482
     public function getPhpCodeImplode($left, $right)
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 
522 522
     /**
523 523
      * @public function getPhpCodeCopy
524
-     * @param        $file
524
+     * @param        string $file
525 525
      * @param string $newfile
526 526
      * @param string $t
527 527
      * @return string
@@ -569,9 +569,9 @@  discard block
 block discarded – undo
569 569
     /**
570 570
      * @public function getPhpCodeArrayType
571 571
      * @param        $var
572
-     * @param        $type
572
+     * @param        string $type
573 573
      * @param        $left
574
-     * @param        $right
574
+     * @param        string $right
575 575
      * @param bool   $isParam
576 576
      *
577 577
      * @param string $t
@@ -632,10 +632,10 @@  discard block
 block discarded – undo
632 632
 
633 633
     /**
634 634
      * @public function getPhpCodePregFunzions
635
-     * @param        $var
636
-     * @param        $exp
637
-     * @param        $str
638
-     * @param        $val
635
+     * @param        string $var
636
+     * @param        string $exp
637
+     * @param        string $str
638
+     * @param        string $val
639 639
      * @param string $type
640 640
      * @param bool   $isParam
641 641
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
     */
707 707
     public function getPhpCodeHtmlentities($entitiesVar, $entitiesQuote = false)
708 708
     {
709
-        $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar . ', ' . $entitiesQuote : $entitiesVar;
709
+        $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar.', '.$entitiesQuote : $entitiesVar;
710 710
         $entities = "htmlentities({$entitiesVar})";
711 711
 
712 712
         return $entities;
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
     */
721 721
     public function getPhpCodeHtmlspecialchars($specialVar, $specialQuote = false)
722 722
     {
723
-        $specialVar = (false !== $specialQuote) ? $specialVar . ', ' . $specialQuote : $specialVar;
723
+        $specialVar = (false !== $specialQuote) ? $specialVar.', '.$specialQuote : $specialVar;
724 724
         $specialchars = "htmlspecialchars({$specialVar})";
725 725
 
726 726
         return $specialchars;
Please login to merge, or discard this patch.
Indentation   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 class TDMCreatePhpCode
29 29
 {
30 30
     /**
31
-    *  @static function getInstance
32
-    *  @param null
31
+     *  @static function getInstance
32
+     *  @param null
33 33
      * @return TDMCreatePhpCode
34 34
      */
35 35
     public static function getInstance()
@@ -81,36 +81,36 @@  discard block
 block discarded – undo
81 81
     }
82 82
 
83 83
     /**
84
-    *  @public function getPhpCodeDefine
85
-    *  @param $left
86
-    *  @param $right
87
-    *
88
-    *  @return string
89
-    */
84
+     *  @public function getPhpCodeDefine
85
+     *  @param $left
86
+     *  @param $right
87
+     *
88
+     *  @return string
89
+     */
90 90
     public function getPhpCodeDefine($left, $right)
91 91
     {
92 92
         return "define('{$left}', {$right});\n";
93 93
     }
94 94
 
95 95
     /**
96
-    *  @public function getPhpCodeDefine
97
-    *  @param $left
98
-    *  @param $right
99
-    *
100
-    *  @return string
101
-    */
96
+     *  @public function getPhpCodeDefine
97
+     *  @param $left
98
+     *  @param $right
99
+     *
100
+     *  @return string
101
+     */
102 102
     public function getPhpCodeDefined($left = 'XOOPS_ROOT_PATH', $right = 'Restricted access')
103 103
     {
104 104
         return "defined('{$left}') || die('{$right}');\n";
105 105
     }
106 106
 
107 107
     /**
108
-    *  @public function getPhpCodeGlobals
109
-    *  @param $var
110
-    *  @param $value
111
-    *
112
-    *  @return string
113
-    */
108
+     *  @public function getPhpCodeGlobals
109
+     *  @param $var
110
+     *  @param $value
111
+     *
112
+     *  @return string
113
+     */
114 114
     public function getPhpCodeGlobals($var, $value = '')
115 115
     {
116 116
         if ('' != $value) {
@@ -123,12 +123,12 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-    *  @public function getPhpCodeGlobalsVariables
127
-    *  @param $var
128
-    *  @param $type
129
-    *
130
-    *  @return string
131
-    */
126
+     *  @public function getPhpCodeGlobalsVariables
127
+     *  @param $var
128
+     *  @param $type
129
+     *
130
+     *  @return string
131
+     */
132 132
     public function getPhpCodeGlobalsVariables($var = null, $type = 'REQUEST')
133 133
     {
134 134
         $type = strtoupper($type);
@@ -173,11 +173,11 @@  discard block
 block discarded – undo
173 173
     }
174 174
 
175 175
     /**
176
-    *  @public function getPhpCodeFileExists
177
-    *  @param $filename
178
-    *
179
-    *  @return string
180
-    */
176
+     *  @public function getPhpCodeFileExists
177
+     *  @param $filename
178
+     *
179
+     *  @return string
180
+     */
181 181
     public function getPhpCodeFileExists($filename)
182 182
     {
183 183
         return "file_exists({$filename})";
@@ -217,29 +217,29 @@  discard block
 block discarded – undo
217 217
     }
218 218
 
219 219
     /**
220
-    *  @public function getPhpCodeTernaryOperator
221
-    *  @param $return
222
-    *  @param $condition
223
-    *  @param $one
224
-    *  @param $two
225
-    *  @param $t - Indentation
226
-    *
227
-    *  @return string
228
-    */
220
+     *  @public function getPhpCodeTernaryOperator
221
+     *  @param $return
222
+     *  @param $condition
223
+     *  @param $one
224
+     *  @param $two
225
+     *  @param $t - Indentation
226
+     *
227
+     *  @return string
228
+     */
229 229
     public function getPhpCodeTernaryOperator($return, $condition, $one, $two, $t = '')
230 230
     {
231 231
         return "{$t}\${$return} = {$condition} ? {$one} : {$two};\n";
232 232
     }
233 233
 
234 234
     /**
235
-    *  @public function getPhpCodeClass
236
-    *  @param $name
237
-    *  @param $content
238
-    *  @param $extends
239
-    *  @param $type
240
-    *
241
-    *  @return string
242
-    */
235
+     *  @public function getPhpCodeClass
236
+     *  @param $name
237
+     *  @param $content
238
+     *  @param $extends
239
+     *  @param $type
240
+     *
241
+     *  @return string
242
+     */
243 243
     public function getPhpCodeClass($name = null, $content = null, $extends = null, $type = null)
244 244
     {
245 245
         $typ = (null != $type) ? "{$type} " : '';
@@ -253,14 +253,14 @@  discard block
 block discarded – undo
253 253
     }
254 254
 
255 255
     /**
256
-    *  @public function getPhpCodeClass
257
-    *  @param $type
258
-    *  @param $name
259
-    *  @param $assign
260
-    *  @param $t - Indentation
261
-    *
262
-    *  @return string
263
-    */
256
+     *  @public function getPhpCodeClass
257
+     *  @param $type
258
+     *  @param $name
259
+     *  @param $assign
260
+     *  @param $t - Indentation
261
+     *
262
+     *  @return string
263
+     */
264 264
     public function getPhpCodeVariableClass($type = 'private', $name = null, $assign = 'null', $t = '')
265 265
     {
266 266
         return "{$t}{$type} \${$name} = {$assign};\n";
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     public function getPhpCodeSwitch($op = null, $content = null, $t = '')
398 398
     {
399 399
         //$ret = "{$t}switch(\${$op}) {\n"; test goffy
400
-		$ret = "switch(\${$op}) {\n";
400
+        $ret = "switch(\${$op}) {\n";
401 401
         $ret .= "{$content}";
402 402
         $ret .= "}\n";
403 403
 
@@ -444,10 +444,10 @@  discard block
 block discarded – undo
444 444
     }
445 445
 
446 446
     /**
447
-    *  @public function getPhpCodeIsset
448
-    *  @param $var
449
-    *  @return string
450
-    */
447
+     *  @public function getPhpCodeIsset
448
+     *  @param $var
449
+     *  @return string
450
+     */
451 451
     public function getPhpCodeIsset($var)
452 452
     {
453 453
         return "isset(\${$var})";
@@ -465,32 +465,32 @@  discard block
 block discarded – undo
465 465
     }
466 466
 
467 467
     /**
468
-    *  @public function getPhpCodeIsDir
469
-    *  @param $var
470
-    *  @return string
471
-    */
468
+     *  @public function getPhpCodeIsDir
469
+     *  @param $var
470
+     *  @return string
471
+     */
472 472
     public function getPhpCodeIsDir($var)
473 473
     {
474 474
         return "is_dir({$var})";
475 475
     }
476 476
 
477 477
     /**
478
-    *  @public function getPhpCodeImplode
479
-    *  @param $left
480
-    *  @param $right
481
-    *  @return string
482
-    */
478
+     *  @public function getPhpCodeImplode
479
+     *  @param $left
480
+     *  @param $right
481
+     *  @return string
482
+     */
483 483
     public function getPhpCodeImplode($left, $right)
484 484
     {
485 485
         return "implode('{$left}', {$right})";
486 486
     }
487 487
 
488 488
     /**
489
-    *  @public function getPhpCodeExplode
490
-    *  @param $left
491
-    *  @param $right
492
-    *  @return string
493
-    */
489
+     *  @public function getPhpCodeExplode
490
+     *  @param $left
491
+     *  @param $right
492
+     *  @return string
493
+     */
494 494
     public function getPhpCodeExplode($left, $right)
495 495
     {
496 496
         return "explode('{$left}', {$right})";
@@ -591,41 +591,41 @@  discard block
 block discarded – undo
591 591
     }
592 592
 
593 593
     /**
594
-    *  @public function getPhpCodeSprintf
595
-    *  @param $left
596
-    *  @param $right
597
-    *  @return string
598
-    */
594
+     *  @public function getPhpCodeSprintf
595
+     *  @param $left
596
+     *  @param $right
597
+     *  @return string
598
+     */
599 599
     public function getPhpCodeSprintf($left, $right)
600 600
     {
601 601
         return "sprintf({$left}, {$right})";
602 602
     }
603 603
 
604 604
     /**
605
-    *  @public function getPhpCodeEmpty
606
-    *  @param $var
607
-    *  @return string
608
-    */
605
+     *  @public function getPhpCodeEmpty
606
+     *  @param $var
607
+     *  @return string
608
+     */
609 609
     public function getPhpCodeEmpty($var)
610 610
     {
611 611
         return "empty({$var})";
612 612
     }
613 613
 
614 614
     /**
615
-    *  @public function getPhpCodeHeader
616
-    *  @param $var
617
-    *  @return string
618
-    */
615
+     *  @public function getPhpCodeHeader
616
+     *  @param $var
617
+     *  @return string
618
+     */
619 619
     public function getPhpCodeHeader($var)
620 620
     {
621 621
         return "header({$var})";
622 622
     }
623 623
 
624 624
     /**
625
-    *  @public function getPhpCodeRawurlencode
626
-    *  @param $var
627
-    *  @return string
628
-    */
625
+     *  @public function getPhpCodeRawurlencode
626
+     *  @param $var
627
+     *  @return string
628
+     */
629 629
     public function getPhpCodeRawurlencode($var)
630 630
     {
631 631
         return "rawurlencode({$var})";
@@ -700,11 +700,11 @@  discard block
 block discarded – undo
700 700
     }
701 701
 
702 702
     /**
703
-    *  @public function getPhpCodeHtmlentities
704
-    *  @param $entitiesVar
705
-    *  @param $entitiesQuote
706
-    *  @return string
707
-    */
703
+     *  @public function getPhpCodeHtmlentities
704
+     *  @param $entitiesVar
705
+     *  @param $entitiesQuote
706
+     *  @return string
707
+     */
708 708
     public function getPhpCodeHtmlentities($entitiesVar, $entitiesQuote = false)
709 709
     {
710 710
         $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar . ', ' . $entitiesQuote : $entitiesVar;
@@ -714,11 +714,11 @@  discard block
 block discarded – undo
714 714
     }
715 715
 
716 716
     /**
717
-    *  @public function getPhpCodeHtmlspecialchars
718
-    *  @param $specialVar
719
-    *  @param $specialQuote
720
-    *  @return string
721
-    */
717
+     *  @public function getPhpCodeHtmlspecialchars
718
+     *  @param $specialVar
719
+     *  @param $specialQuote
720
+     *  @return string
721
+     */
722 722
     public function getPhpCodeHtmlspecialchars($specialVar, $specialQuote = false)
723 723
     {
724 724
         $specialVar = (false !== $specialQuote) ? $specialVar . ', ' . $specialQuote : $specialVar;
Please login to merge, or discard this patch.
class/files/TDMCreateXoopsCode.php 3 patches
Doc Comments   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     *  @public function getXcEqualsOperator
67 67
     *  @param $var
68 68
     *  @param $value
69
-    *  @param $interlock
69
+    *  @param boolean|string $interlock
70 70
     *  @param $ref
71 71
     *  @param $t - Indentation
72 72
     *
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      *  @public function getXcLoadLanguage
120 120
      *
121
-     *  @param $lang
121
+     *  @param string $lang
122 122
      * @param $t
123 123
      *
124 124
      *  @return string
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
 
131 131
     /**
132 132
     *  @public function getXcAnchorFunction
133
-    *  @param $anchor
134
-    *  @param $name
135
-    *  @param $vars
133
+    *  @param string $anchor
134
+    *  @param string $name
135
+    *  @param string $vars
136 136
     *  @param $close
137 137
     *
138 138
     *  @return string
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
      * @param string $var
215 215
      * @param string $anchor
216 216
      * @param        $param1
217
-     * @param        $param2
218
-     * @param        $param3
217
+     * @param        string $param2
218
+     * @param        string $param3
219 219
      * @param string $t
220 220
      * @return string
221 221
      */
@@ -229,8 +229,8 @@  discard block
 block discarded – undo
229 229
      * @param string $var
230 230
      * @param string $anchor
231 231
      * @param        $param1
232
-     * @param        $param2
233
-     * @param        $param3
232
+     * @param        string $param2
233
+     * @param        string $param3
234 234
      * @param string $t
235 235
      * @return string
236 236
      */
@@ -273,8 +273,8 @@  discard block
 block discarded – undo
273 273
 
274 274
     /**
275 275
     *  @public function getXcMediaUploader
276
-    *  @param $var
277
-    *  @param $dirPath
276
+    *  @param string $var
277
+    *  @param string $dirPath
278 278
     *  @param $moduleDirname
279 279
      * @param $t
280 280
     *  @return string
@@ -314,8 +314,8 @@  discard block
 block discarded – undo
314 314
 
315 315
     /**
316 316
     *  @public function getXcXoopsImgListArray
317
-    *  @param $return
318
-    *  @param $var
317
+    *  @param string $return
318
+    *  @param string $var
319 319
     *  @param $t
320 320
     *
321 321
     *  @return string
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     /**
329 329
     *  @public function getXcGetConfig
330 330
     *  @param $moduleDirname
331
-    *  @param $name
331
+    *  @param string $name
332 332
     *  @return string
333 333
     */
334 334
     public function getXcGetConfig($moduleDirname, $name)
@@ -847,11 +847,11 @@  discard block
 block discarded – undo
847 847
     /**
848 848
      * @public function getXcGetInfo
849 849
      *
850
-     * @param        $left
851
-     * @param        $string
850
+     * @param        string string
851
+     * @param        string $string
852 852
      * @param bool   $isParam
853 853
      *
854
-     * @param string $t
854
+     * @param string string
855 855
      * @return string
856 856
      */
857 857
     public function getXcGetInfo($left, $string, $isParam = false, $t = '')
@@ -868,7 +868,7 @@  discard block
 block discarded – undo
868 868
     /**
869 869
      * @public function getXcAddRight
870 870
      *
871
-     * @param        $anchor
871
+     * @param        string $anchor
872 872
      * @param string $permString
873 873
      * @param string $var
874 874
      * @param string $groups
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
     /**
893 893
      * @public function getXcCheckRight
894 894
      *
895
-     * @param        $anchor
895
+     * @param        string $anchor
896 896
      * @param string $permString
897 897
      * @param string $var
898 898
      * @param string $groups
@@ -944,7 +944,7 @@  discard block
 block discarded – undo
944 944
 
945 945
     /**
946 946
      *  @public function getXcClearCount
947
-     * @param  $left
947
+     * @param  string $left
948 948
      *  @param $anchor
949 949
      *  @param  $params
950 950
      *  @param $t
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
 
982 982
     /**
983 983
      * @public function getXcClearHandlerAll
984
-     * @param        $left
984
+     * @param        string $left
985 985
      * @param string $anchor
986 986
      * @param string $params
987 987
      * @param string $t
@@ -1107,7 +1107,7 @@  discard block
 block discarded – undo
1107 1107
     /**
1108 1108
      * @public function getXcRedirectHeader
1109 1109
      * @param        $directory
1110
-     * @param        $options
1110
+     * @param        string $options
1111 1111
      * @param        $numb
1112 1112
      * @param        $var
1113 1113
      * @param bool   $isString
@@ -1209,7 +1209,7 @@  discard block
 block discarded – undo
1209 1209
     /**
1210 1210
      * @public function getXcObjHandlerCount
1211 1211
      *
1212
-     * @param        $left
1212
+     * @param        string $left
1213 1213
      * @param        $tableName
1214 1214
      * @param string $obj
1215 1215
      *
Please login to merge, or discard this patch.
Indentation   +134 added lines, -134 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TDMCreateXoopsCode
29 29
 {
30 30
     /**
31
-    *  @static function getInstance
32
-    *  @param null
33
-    */
31
+     *  @static function getInstance
32
+     *  @param null
33
+     */
34 34
     /**
35 35
      * @return TDMCreateXoopsCode
36 36
      */
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-    *  @public function getXcEqualsOperator
67
-    *  @param $var
68
-    *  @param $value
69
-    *  @param $interlock
70
-    *  @param $ref
71
-    *  @param $t - Indentation
72
-    *
73
-    *  @return string
74
-    */
66
+     *  @public function getXcEqualsOperator
67
+     *  @param $var
68
+     *  @param $value
69
+     *  @param $interlock
70
+     *  @param $ref
71
+     *  @param $t - Indentation
72
+     *
73
+     *  @return string
74
+     */
75 75
     public function getXcEqualsOperator($var, $value, $interlock = null, $ref = false, $t = '')
76 76
     {
77 77
         if (false === $ref) {
@@ -84,20 +84,20 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     /**
87
-    *  @public function getXcCPHeader
88
-    *  @param null
89
-    *  @return string
90
-    */
87
+     *  @public function getXcCPHeader
88
+     *  @param null
89
+     *  @return string
90
+     */
91 91
     public function getXcCPHeader()
92 92
     {
93 93
         return "xoops_cp_header();\n";
94 94
     }
95 95
 
96 96
     /**
97
-    *  @public function getXcCPFooter
98
-    *  @param null
99
-    *  @return string
100
-    */
97
+     *  @public function getXcCPFooter
98
+     *  @param null
99
+     *  @return string
100
+     */
101 101
     public function getXcCPFooter()
102 102
     {
103 103
         return "xoops_cp_footer();\n";
@@ -129,14 +129,14 @@  discard block
 block discarded – undo
129 129
     }
130 130
 
131 131
     /**
132
-    *  @public function getXcAnchorFunction
133
-    *  @param $anchor
134
-    *  @param $name
135
-    *  @param $vars
136
-    *  @param $close
137
-    *
138
-    *  @return string
139
-    */
132
+     *  @public function getXcAnchorFunction
133
+     *  @param $anchor
134
+     *  @param $name
135
+     *  @param $vars
136
+     *  @param $close
137
+     *
138
+     *  @return string
139
+     */
140 140
     public function getXcAnchorFunction($anchor, $name, $vars, $close = false)
141 141
     {
142 142
         $semicolon = false !== $close ? ';' : '';
@@ -145,28 +145,28 @@  discard block
 block discarded – undo
145 145
     }
146 146
 
147 147
     /**
148
-    *  @public function getXcSetVar
149
-    *  @param $tableName
150
-    *  @param $fieldName
151
-    *  @param $var
148
+     *  @public function getXcSetVar
149
+     *  @param $tableName
150
+     *  @param $fieldName
151
+     *  @param $var
152 152
      * @param $t
153
-    *  @return string
154
-    */
153
+     *  @return string
154
+     */
155 155
     public function getXcSetVar($tableName, $fieldName, $var, $t = '')
156 156
     {
157 157
         return "{$t}\${$tableName}Obj->setVar('{$fieldName}', {$var});\n";
158 158
     }
159 159
 
160 160
     /**
161
-    *  @public function getXcGetVar
162
-    *  @param $varLeft
163
-    *  @param $handle
164
-    *  @param $var
165
-    *  @param $isParam
161
+     *  @public function getXcGetVar
162
+     *  @param $varLeft
163
+     *  @param $handle
164
+     *  @param $var
165
+     *  @param $isParam
166 166
      * @param $t
167
-    *
168
-    *  @return string
169
-    */
167
+     *
168
+     *  @return string
169
+     */
170 170
     public function getXcGetVar($varLeft = '', $handle = '', $var = '', $isParam = false, $t = '')
171 171
     {
172 172
         if (!$isParam) {
@@ -179,31 +179,31 @@  discard block
 block discarded – undo
179 179
     }
180 180
 
181 181
     /**
182
-    *  @public function getXcGroupPermForm
183
-    *  @param $varLeft
184
-    *  @param $formTitle
185
-    *  @param $moduleId
186
-    *  @param $permName
187
-    *  @param $permDesc
188
-    *  @param $filename
182
+     *  @public function getXcGroupPermForm
183
+     *  @param $varLeft
184
+     *  @param $formTitle
185
+     *  @param $moduleId
186
+     *  @param $permName
187
+     *  @param $permDesc
188
+     *  @param $filename
189 189
      * @param $t
190
-    *
191
-    *  @return string
192
-    */
190
+     *
191
+     *  @return string
192
+     */
193 193
     public function getXcGroupPermForm($varLeft = '', $formTitle = '', $moduleId = '', $permName = '', $permDesc = '', $filename = '', $t = '')
194 194
     {
195 195
         return "{$t}\${$varLeft} = new XoopsGroupPermForm({$formTitle}, {$moduleId}, {$permName}, {$permDesc}, {$filename});\n";
196 196
     }
197 197
 
198 198
     /**
199
-    *  @public function getXcAddItem
200
-    *  @param $varLeft
201
-    *  @param $paramLeft
202
-    *  @param $paramRight
203
-    * @param $t
204
-    *
205
-    *  @return string
206
-    */
199
+     *  @public function getXcAddItem
200
+     *  @param $varLeft
201
+     *  @param $paramLeft
202
+     *  @param $paramRight
203
+     * @param $t
204
+     *
205
+     *  @return string
206
+     */
207 207
     public function getXcAddItem($varLeft = '', $paramLeft = '', $paramRight = '', $t = '')
208 208
     {
209 209
         return "{$t}\${$varLeft}->addItem({$paramLeft}, {$paramRight});\n";
@@ -260,25 +260,25 @@  discard block
 block discarded – undo
260 260
     }
261 261
 
262 262
     /**
263
-    *  @public function getXcCheckBoxOrRadioYNSetVar
264
-    *  @param $tableName
265
-    *  @param $fieldName
263
+     *  @public function getXcCheckBoxOrRadioYNSetVar
264
+     *  @param $tableName
265
+     *  @param $fieldName
266 266
      * @param $t
267
-    *  @return string
268
-    */
267
+     *  @return string
268
+     */
269 269
     public function getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName, $t = '')
270 270
     {
271 271
         return $this->getXcSetVar($tableName, $fieldName, "((1 == \$_REQUEST['{$fieldName}']) ? '1' : '0')", $t);
272 272
     }
273 273
 
274 274
     /**
275
-    *  @public function getXcMediaUploader
276
-    *  @param $var
277
-    *  @param $dirPath
278
-    *  @param $moduleDirname
275
+     *  @public function getXcMediaUploader
276
+     *  @param $var
277
+     *  @param $dirPath
278
+     *  @param $moduleDirname
279 279
      * @param $t
280
-    *  @return string
281
-    */
280
+     *  @return string
281
+     */
282 282
     public function getXcMediaUploader($var, $dirPath, $moduleDirname, $t = '')
283 283
     {
284 284
         $mimetypes = $this->getXcGetConfig($moduleDirname, 'mimetypes');
@@ -290,72 +290,72 @@  discard block
 block discarded – undo
290 290
     }
291 291
 
292 292
     /**
293
-    *  @public function getXcXoopsCaptcha
294
-    *  @param $var
295
-    *  @param $instance
296
-    * @param $t
297
-    *
298
-    *  @return string
299
-    */
293
+     *  @public function getXcXoopsCaptcha
294
+     *  @param $var
295
+     *  @param $instance
296
+     * @param $t
297
+     *
298
+     *  @return string
299
+     */
300 300
     public function getXcGetInstance($var = '', $instance = '', $t = '')
301 301
     {
302 302
         return "{$t}\${$var} = {$instance}::getInstance();\n";
303 303
     }
304 304
 
305 305
     /**
306
-    *  @public function getXcXoopsCaptcha
307
-    *  @param $t
308
-    *  @return string
309
-    */
306
+     *  @public function getXcXoopsCaptcha
307
+     *  @param $t
308
+     *  @return string
309
+     */
310 310
     public function getXcXoopsCaptcha($t = '')
311 311
     {
312 312
         return "{$t}\$xoopsCaptcha = XoopsCaptcha::getInstance();\n";
313 313
     }
314 314
 
315 315
     /**
316
-    *  @public function getXcXoopsImgListArray
317
-    *  @param $return
318
-    *  @param $var
319
-    *  @param $t
320
-    *
321
-    *  @return string
322
-    */
316
+     *  @public function getXcXoopsImgListArray
317
+     *  @param $return
318
+     *  @param $var
319
+     *  @param $t
320
+     *
321
+     *  @return string
322
+     */
323 323
     public function getXcXoopsImgListArray($return, $var, $t = '')
324 324
     {
325 325
         return "{$t}\${$return} = XoopsLists::getImgListAsArray( {$var} );\n";
326 326
     }
327 327
 
328 328
     /**
329
-    *  @public function getXcGetConfig
330
-    *  @param $moduleDirname
331
-    *  @param $name
332
-    *  @return string
333
-    */
329
+     *  @public function getXcGetConfig
330
+     *  @param $moduleDirname
331
+     *  @param $name
332
+     *  @return string
333
+     */
334 334
     public function getXcGetConfig($moduleDirname, $name)
335 335
     {
336 336
         return "\${$moduleDirname}->getConfig('{$name}')";
337 337
     }
338 338
 
339 339
     /**
340
-    *  @public function getXcIdGetVar
341
-    *  @param $lpFieldName
342
-    * @param $t
343
-    *  @return string
344
-    */
340
+     *  @public function getXcIdGetVar
341
+     *  @param $lpFieldName
342
+     * @param $t
343
+     *  @return string
344
+     */
345 345
     public function getXcIdGetVar($lpFieldName, $t = '')
346 346
     {
347 347
         return "{$t}\${$lpFieldName}['id'] = \$i;\n";
348 348
     }
349 349
 
350 350
     /**
351
-    *  @public function getXcGetVarAll
352
-    *  @param $lpFieldName
353
-    *  @param $rpFieldName
354
-    *  @param $tableName
355
-    *  @param $fieldName
351
+     *  @public function getXcGetVarAll
352
+     *  @param $lpFieldName
353
+     *  @param $rpFieldName
354
+     *  @param $tableName
355
+     *  @param $fieldName
356 356
      * @param $t
357
-    *  @return string
358
-    */
357
+     *  @return string
358
+     */
359 359
     public function getXcGetVarAll($lpFieldName, $rpFieldName, $tableName, $fieldName, $t = '')
360 360
     {
361 361
         return "{$t}\${$lpFieldName}['{$rpFieldName}'] = \${$tableName}All[\$i]->getVar('{$fieldName}');\n";
@@ -390,14 +390,14 @@  discard block
 block discarded – undo
390 390
     }
391 391
 
392 392
     /**
393
-    *  @public function getXoopsClearHandler
394
-    *  @param $left
395
-    *  @param $anchor
396
-    *  @param $var
393
+     *  @public function getXoopsClearHandler
394
+     *  @param $left
395
+     *  @param $anchor
396
+     *  @param $var
397 397
      * @param $t
398 398
      *
399
-    *  @return string
400
-    */
399
+     *  @return string
400
+     */
401 401
     public function getXoopsClearHandler($left, $anchor, $var, $t = '')
402 402
     {
403 403
         return "{$t}\${$left}Handler = \${$anchor}->getHandler('{$var}');\n";
@@ -539,13 +539,13 @@  discard block
 block discarded – undo
539 539
         return $ret;
540 540
     }
541 541
     /**
542
-    *  @public function getXcUrlFileGetVar
543
-    *  @param $lpFieldName
544
-    *  @param $rpFieldName
545
-    *  @param $tableName
546
-    *  @param $fieldName
547
-    *  @return string
548
-    */
542
+     *  @public function getXcUrlFileGetVar
543
+     *  @param $lpFieldName
544
+     *  @param $rpFieldName
545
+     *  @param $tableName
546
+     *  @param $fieldName
547
+     *  @return string
548
+     */
549 549
     public function getXcUrlFileGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName)
550 550
     {
551 551
         return $this->getXcGetVarAll($lpFieldName, $rpFieldName, $tableName, $fieldName);
@@ -609,11 +609,11 @@  discard block
 block discarded – undo
609 609
     }
610 610
 
611 611
     /**
612
-    *  @public function getXcUserHeader
613
-    *  @param $moduleDirname
614
-    *  @param $tableName
615
-    *  @return string
616
-    */
612
+     *  @public function getXcUserHeader
613
+     *  @param $moduleDirname
614
+     *  @param $tableName
615
+     *  @return string
616
+     */
617 617
     public function getXcUserHeader($moduleDirname, $tableName)
618 618
     {
619 619
         $phpCodeUserHeader = TDMCreatePhpCode::getInstance();
@@ -625,8 +625,8 @@  discard block
 block discarded – undo
625 625
     }
626 626
 
627 627
     /**
628
-    *  @public function getXcPermissionsHeader
629
-    *  @param null
628
+     *  @public function getXcPermissionsHeader
629
+     *  @param null
630 630
      * @return string
631 631
      */
632 632
     public function getXcPermissionsHeader()
@@ -1165,20 +1165,20 @@  discard block
 block discarded – undo
1165 1165
     }
1166 1166
 
1167 1167
     /**
1168
-    *  @public function getXcSecurityCheck
1169
-    *  @param $denial
1170
-    *  @return boolean
1171
-    */
1168
+     *  @public function getXcSecurityCheck
1169
+     *  @param $denial
1170
+     *  @return boolean
1171
+     */
1172 1172
     public function getXcSecurityCheck($denial = '')
1173 1173
     {
1174 1174
         return "{$denial}\$GLOBALS['xoopsSecurity']->check()";
1175 1175
     }
1176 1176
 
1177 1177
     /**
1178
-    *  @public function getXcSecurityErrors
1179
-    *  @param null
1180
-    *  @return string
1181
-    */
1178
+     *  @public function getXcSecurityErrors
1179
+     *  @param null
1180
+     *  @return string
1181
+     */
1182 1182
     public function getXcSecurityErrors()
1183 1183
     {
1184 1184
         return "\$GLOBALS['xoopsSecurity']->getErrors()";
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         $pTopic = TDMCreatePhpCode::getInstance();
470 470
         $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
471 471
         $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
472
-        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t);
472
+        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t);
473 473
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
474 474
 
475 475
         return $ret;
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
     {
492 492
         $pParentTopic = TDMCreatePhpCode::getInstance();
493 493
         $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t");
494
-        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t");
494
+        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t");
495 495
         $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS');
496 496
         $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups);
497 497
         $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t);
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         $pVarFromID = TDMCreatePhpCode::getInstance();
515 515
         $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t);
516 516
         $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, '');
517
-        $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID);
517
+        $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID);
518 518
         $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t);
519 519
 
520 520
         return $ret;
@@ -1082,7 +1082,7 @@  discard block
 block discarded – undo
1082 1082
         $phpCodeSecurity = TDMCreatePhpCode::getInstance();
1083 1083
         $securityError = $this->getXcSecurityErrors();
1084 1084
         $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError);
1085
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1085
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1086 1086
         $securityCheck = $this->getXcSecurityCheck();
1087 1087
 
1088 1088
         return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t);
@@ -1098,7 +1098,7 @@  discard block
 block discarded – undo
1098 1098
     public function getXcInsertData($tableName, $language, $t = '')
1099 1099
     {
1100 1100
         $phpCodeInsertData = TDMCreatePhpCode::getInstance();
1101
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1101
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1102 1102
         $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj');
1103 1103
 
1104 1104
         return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t);
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
         $phpXoopsConfirm = TDMCreatePhpCode::getInstance();
1146 1146
         $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')";
1147 1147
         $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER');
1148
-        $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, '');
1148
+        $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, '');
1149 1149
         $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar);
1150 1150
         $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n";
1151 1151
 
@@ -1319,7 +1319,7 @@  discard block
 block discarded – undo
1319 1319
     {
1320 1320
         $ret = TDMCreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
1321 1321
         $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
1322
-        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t);
1322
+        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t);
1323 1323
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
1324 1324
 
1325 1325
         return $ret;
@@ -1407,18 +1407,18 @@  discard block
 block discarded – undo
1407 1407
                 $fieldMain = $fieldName;
1408 1408
             }
1409 1409
             if ((5 == $fieldElement) || (6 == $fieldElement)) {
1410
-                $ret .= $t . $this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1410
+                $ret .= $t.$this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1411 1411
             } elseif (13 == $fieldElement) {
1412 1412
                 $ret .= $axCodeSaveElements->getAxcUploadImageSetVar($moduleDirname, $tableName, $fieldName, $fieldMain);
1413 1413
             } elseif (14 == $fieldElement) {
1414 1414
                 $ret .= $axCodeSaveElements->getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName);
1415 1415
             } elseif (15 == $fieldElement) {
1416
-                $ret .= $t . $this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1416
+                $ret .= $t.$this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1417 1417
             } else {
1418 1418
                 if ((0 != $f) && 1 == $tableAutoincrement) {
1419
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1419
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1420 1420
                 } elseif ((0 == $f) && 0 == $tableAutoincrement) {
1421
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1421
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1422 1422
                 }
1423 1423
             }
1424 1424
         }
@@ -1440,7 +1440,7 @@  discard block
 block discarded – undo
1440 1440
         $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t);
1441 1441
         $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t");
1442 1442
         $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t");
1443
-        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t");
1443
+        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t");
1444 1444
         $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t);
1445 1445
 
1446 1446
         return $ret;
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminPages.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @public function write
57 57
      * @param string $module
58 58
      * @param string $table
59
-     * @param        $filename
59
+     * @param        string $filename
60 60
      */
61 61
     public function write($module, $table, $filename)
62 62
     {
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     /**
262 262
     *  @public function render
263 263
     *  @param null
264
-    *  @return bool|string
264
+    *  @return null|string
265 265
     */
266 266
     public function render()
267 267
     {
Please login to merge, or discard this patch.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TemplatesAdminPages extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    *  @public function constructor
32
-    *  @param null
33
-    */
31
+     *  @public function constructor
32
+     *  @param null
33
+     */
34 34
 
35 35
     public function __construct()
36 36
     {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
41
+     *  @static function getInstance
42
+     *  @param null
43 43
      * @return TemplatesAdminPages
44 44
      */
45 45
     public static function getInstance()
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-    *  @private function getTemplatesAdminPagesHeader
70
-    *  @param string $moduleDirname
71
-    *  @return string
72
-    */
69
+     *  @private function getTemplatesAdminPagesHeader
70
+     *  @param string $moduleDirname
71
+     *  @return string
72
+     */
73 73
     private function getTemplatesAdminPagesHeader($moduleDirname)
74 74
     {
75 75
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
@@ -244,10 +244,10 @@  discard block
 block discarded – undo
244 244
     }
245 245
 
246 246
     /**
247
-    *  @private function getTemplatesAdminPagesFooter
248
-    *  @param string $moduleDirname
249
-    *  @return string
250
-    */
247
+     *  @private function getTemplatesAdminPagesFooter
248
+     *  @param string $moduleDirname
249
+     *  @return string
250
+     */
251 251
     private function getTemplatesAdminPagesFooter($moduleDirname)
252 252
     {
253 253
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
@@ -259,10 +259,10 @@  discard block
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-    *  @public function render
263
-    *  @param null
264
-    *  @return bool|string
265
-    */
262
+     *  @public function render
263
+     *  @param null
264
+     *  @return bool|string
265
+     */
266 266
     public function render()
267 267
     {
268 268
         $module = $this->getModule();
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $lang = $hc->getSmartyConst($language, 'FORM_ACTION');
110 110
         $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, false, "\t\t\t");
111
-        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL;
111
+        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL;
112 112
         $ret = $hc->getHtmlTag('thead', [], $tr);
113 113
 
114 114
         return $ret;
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
157 157
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
158 158
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
159
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t" . $img);
159
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t".$img);
160 160
                         break;
161 161
                     case 13:
162 162
                         $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
163 163
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
164
-                        $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
164
+                        $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
165 165
                         $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, false, "\t\t");
166 166
                         break;
167 167
                     default:
@@ -177,13 +177,13 @@  discard block
 block discarded – undo
177 177
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
178 178
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png');
179 179
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
180
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
180
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
181 181
         $lang = $hc->getSmartyConst('', '_DELETE');
182 182
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
183 183
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png');
184 184
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
185
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
186
-        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n" . $anchor);
185
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
186
+        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n".$anchor);
187 187
         $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\'');
188 188
         $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td);
189 189
         $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr);
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @param string $moduleDirname
94 94
      * @param        $tableId
95 95
      * @param        $tableMid
96
-     * @param        $tableName
96
+     * @param        string $tableName
97 97
      * @param        $tableSoleName
98 98
      * @param        $tableAutoincrement
99 99
      * @param string $language
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      * @public function render
208 208
      * @param null
209 209
      *
210
-     * @return bool|string
210
+     * @return null|string
211 211
      */
212 212
     public function render()
213 213
     {
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
             $fieldName    = $fields[$f]->getVar('field_name');
82 82
             $stuFieldName = strtoupper($fieldName);
83 83
             $lang         = $hc->getSmartyConst($language, $stuFieldName);
84
-            $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL;
84
+            $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
85 85
         }
86
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
86
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
87 87
 
88
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
88
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
89 89
     }
90 90
 
91 91
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $td = '';
106 106
         if (1 == $tableAutoincrement) {
107 107
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
108
-            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
108
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
109 109
         }
110 110
         $fields = $this->getTableFields($tableMid, $tableId);
111 111
         foreach (array_keys($fields) as $f) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
124 124
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
125 125
                         $span   = $hc->getHtmlTag('span', [], $double);
126
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span) . PHP_EOL;
126
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span).PHP_EOL;
127 127
                         /*$ret .= <<<EOT
128 128
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
129 129
 EOT;*/
@@ -132,18 +132,18 @@  discard block
 block discarded – undo
132 132
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
133 133
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
134 134
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', false);
135
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
135
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
136 136
                         break;
137 137
                     case 13:
138
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
138
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
139 139
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
140
-                        $img    = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', false);
141
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
140
+                        $img    = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', false);
141
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
142 142
                         break;
143 143
                     default:
144 144
                         if (0 != $f) {
145 145
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
146
-                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
146
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
147 147
                         }
148 148
                         break;
149 149
                 }
@@ -153,19 +153,19 @@  discard block
 block discarded – undo
153 153
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
154 154
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
155 155
         $img    = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', false);
156
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
156
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
157 157
         $lang   = $hc->getSmartyConst('', '_DELETE');
158 158
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
159 159
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
160
-        $img    = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', false);
161
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
162
-        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor) . PHP_EOL;
160
+        $img    = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', false);
161
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
162
+        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor).PHP_EOL;
163 163
         $cycle   = $hc->getSmartyNoSimbol('cycle values="odd, even"');
164
-        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td) . PHP_EOL;
165
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
166
-        $tbody   = $hc->getHtmlTag('tbody', [], $foreach) . PHP_EOL;
164
+        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td).PHP_EOL;
165
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL;
166
+        $tbody   = $hc->getHtmlTag('tbody', [], $foreach).PHP_EOL;
167 167
 
168
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
168
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL;
169 169
     }
170 170
 
171 171
     /**
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
     private function getTemplatesBlocksTableTfoot()
176 176
     {
177 177
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
178
-        $td = $hc->getHtmlTag('td', [], '&nbsp;') . PHP_EOL;
179
-        $tr = $hc->getHtmlTag('tr', [], $td) . PHP_EOL;
178
+        $td = $hc->getHtmlTag('td', [], '&nbsp;').PHP_EOL;
179
+        $tr = $hc->getHtmlTag('tr', [], $td).PHP_EOL;
180 180
 
181
-        return $hc->getHtmlTag('tfoot', [], $tr) . PHP_EOL;
181
+        return $hc->getHtmlTag('tfoot', [], $tr).PHP_EOL;
182 182
     }
183 183
 
184 184
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $tbody .= $this->getTemplatesBlocksTableTfoot();
201 201
         $single = $hc->getSmartySingleVar('table_type');
202 202
 
203
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
203
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
204 204
     }
205 205
 
206 206
     /**
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserCategories.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     *  @param string $moduleDirname
174 174
     *  @param string $tableName
175 175
      * @param $tableSoleName
176
-     * @param $language
176
+     * @param string $language
177 177
      * @return string
178 178
      */
179 179
     private function getTemplatesUserCategoriesPanel($moduleDirname, $tableName, $tableSoleName, $language)
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 
221 221
     /**
222 222
     *  @public function render
223
-     * @return bool|string
223
+     * @return null|string
224 224
      *
225 225
      */
226 226
     public function render()
Please login to merge, or discard this patch.
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TemplatesUserCategories extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    *  @public function constructor
32
-    *  @param null
33
-    */
31
+     *  @public function constructor
32
+     *  @param null
33
+     */
34 34
 
35 35
     public function __construct()
36 36
     {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
41
+     *  @static function getInstance
42
+     *  @param null
43 43
      * @return TemplatesUserCategories
44 44
      */
45 45
     public static function getInstance()
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    *  @public function write
57
-    *  @param string $module
58
-    *  @param string $table
59
-    *  @param string $filename
56
+     *  @public function write
57
+     *  @param string $module
58
+     *  @param string $table
59
+     *  @param string $filename
60 60
      */
61 61
     public function write($module, $table, $filename)
62 62
     {
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-    *  @private function getTemplatesUserCategoriesHeader
70
-    *  @param string $moduleDirname
69
+     *  @private function getTemplatesUserCategoriesHeader
70
+     *  @param string $moduleDirname
71 71
      * @return string
72 72
      *
73 73
      */
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-    *  @private function getTemplatesUserCategoriesTable
83
-    *  @param string $language
82
+     *  @private function getTemplatesUserCategoriesTable
83
+     *  @param string $language
84 84
      * @param $moduleDirname
85 85
      * @param $tableName
86 86
      * @param $tableSoleName
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     /**
100
-    *  @private function getTemplatesUserCategoriesThead
101
-    *  @param string $language
100
+     *  @private function getTemplatesUserCategoriesThead
101
+     *  @param string $language
102 102
      * @param $tableName
103 103
      * @return string
104 104
      */
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-    *  @private function getTemplatesUserCategoriesTbody
119
-    *  @param string $moduleDirname
120
-    *  @param string $language
118
+     *  @private function getTemplatesUserCategoriesTbody
119
+     *  @param string $moduleDirname
120
+     *  @param string $language
121 121
      * @param $tableName
122 122
      * @param $tableSoleName
123 123
      * @return string
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     }
139 139
 
140 140
     /**
141
-    *  @private function getTemplatesUserCategoriesTfoot
141
+     *  @private function getTemplatesUserCategoriesTfoot
142 142
      * @return string
143 143
      *
144 144
      */
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-    *  @private function getTemplatesUserCategories
155
+     *  @private function getTemplatesUserCategories
156 156
      * @param $moduleDirname
157 157
      * @param $tableName
158 158
      * @param $tableSoleName
@@ -169,9 +169,9 @@  discard block
 block discarded – undo
169 169
     }
170 170
 
171 171
     /**
172
-    *  @private function getTemplatesUserCategoriesPanel
173
-    *  @param string $moduleDirname
174
-    *  @param string $tableName
172
+     *  @private function getTemplatesUserCategoriesPanel
173
+     *  @param string $moduleDirname
174
+     *  @param string $tableName
175 175
      * @param $tableSoleName
176 176
      * @param $language
177 177
      * @return string
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
     }
207 207
 
208 208
     /**
209
-    *  @private function getTemplatesUserCategoriesFooter
210
-    *  @param string $moduleDirname
209
+     *  @private function getTemplatesUserCategoriesFooter
210
+     *  @param string $moduleDirname
211 211
      *
212 212
      * @return string
213 213
      */
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     }
220 220
 
221 221
     /**
222
-    *  @public function render
222
+     *  @public function render
223 223
      * @return bool|string
224 224
      *
225 225
      */
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserIndex.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * @public function write
57
-     * @param $module
57
+     * @param string $module
58 58
      * @param $table
59 59
      * @param $tables
60
-     * @param $filename
60
+     * @param string $filename
61 61
      */
62 62
     public function write($module, $table, $tables, $filename)
63 63
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     *  @public function getTemplatesUserIndexBodyDefault
156 156
      * @param $module
157 157
      * @param $table
158
-     * @param $language
158
+     * @param string $language
159 159
      * @return bool|string
160 160
      */
161 161
     public function getTemplatesUserIndexBodyDefault($module, $table, $language)
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      * @param $moduleDirname
210 210
      * @param $tableName
211 211
      * @param $tableSoleName
212
-     * @param $language
212
+     * @param string $language
213 213
      * @return bool|string
214 214
      */
215 215
     public function getTemplateUserIndexCategories($moduleDirname, $tableName, $tableSoleName, $language)
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      * @param $moduleDirname
261 261
      * @param $tableName
262 262
      * @param $tableSoleName
263
-     * @param $language
263
+     * @param string $language
264 264
      * @return bool|string
265 265
      */
266 266
     public function getTemplateUserIndexTable($moduleDirname, $tableName, $tableSoleName, $language)
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     /**
306 306
     *  @public function render
307 307
     *  @param null
308
-     * @return bool|string
308
+     * @return null|string
309 309
      */
310 310
     public function render()
311 311
     {
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TemplatesUserIndex extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    *  @public function constructor
32
-    *  @param null
33
-    */
31
+     *  @public function constructor
32
+     *  @param null
33
+     */
34 34
 
35 35
     public function __construct()
36 36
     {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
41
+     *  @static function getInstance
42
+     *  @param null
43 43
      * @return TemplatesUserIndex
44 44
      */
45 45
     public static function getInstance()
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-    *  @public function getTemplateUserIndexHeader
72
-    *  @param $moduleDirname
71
+     *  @public function getTemplateUserIndexHeader
72
+     *  @param $moduleDirname
73 73
      * @return bool|string
74 74
      */
75 75
     public function getTemplateUserIndexHeader($moduleDirname)
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-    *  @private function getTemplatesUserIndexTable
83
+     *  @private function getTemplatesUserIndexTable
84 84
      * @param $moduleDirname
85 85
      * @param $tableName
86 86
      * @param $tableSoleName
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
     }
99 99
 
100 100
     /**
101
-    *  @private function getTemplatesUserIndexThead
102
-    *  @param string $language
101
+     *  @private function getTemplatesUserIndexThead
102
+     *  @param string $language
103 103
      * @param $tableName
104 104
      * @return string
105 105
      */
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     }
117 117
 
118 118
     /**
119
-    *  @private function getTemplatesUserIndexTbody
119
+     *  @private function getTemplatesUserIndexTbody
120 120
      * @param $moduleDirname
121 121
      * @param $tableName
122 122
      * @param $tableSoleName
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /**
142
-    *  @private function getTemplatesUserIndexTfoot
142
+     *  @private function getTemplatesUserIndexTfoot
143 143
      * @return string
144 144
      */
145 145
     private function getTemplatesUserIndexTableTfoot()
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-    *  @public function getTemplatesUserIndexBodyDefault
155
+     *  @public function getTemplatesUserIndexBodyDefault
156 156
      * @param $module
157 157
      * @param $table
158 158
      * @param $language
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     }
206 206
 
207 207
     /**
208
-    *  @public function getTemplateUserIndexCategories
208
+     *  @public function getTemplateUserIndexCategories
209 209
      * @param $moduleDirname
210 210
      * @param $tableName
211 211
      * @param $tableSoleName
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     }
257 257
 
258 258
     /**
259
-    *  @public function getTemplateUserIndexTable
259
+     *  @public function getTemplateUserIndexTable
260 260
      * @param $moduleDirname
261 261
      * @param $tableName
262 262
      * @param $tableSoleName
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
     }
292 292
 
293 293
     /**
294
-    *  @public function getTemplateUserIndexFooter
295
-    *  @param $moduleDirname
294
+     *  @public function getTemplateUserIndexFooter
295
+     *  @param $moduleDirname
296 296
      * @return bool|string
297 297
      */
298 298
     public function getTemplateUserIndexFooter($moduleDirname)
@@ -303,8 +303,8 @@  discard block
 block discarded – undo
303 303
     }
304 304
 
305 305
     /**
306
-    *  @public function render
307
-    *  @param null
306
+     *  @public function render
307
+     *  @param null
308 308
      * @return bool|string
309 309
      */
310 310
     public function render()
Please login to merge, or discard this patch.
class/files/user/UserBroken.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 
55 55
     /**
56 56
      *  @public function write
57
-     *  @param $module
57
+     *  @param string $module
58 58
      *  @param mixed $table
59
-     *  @param $filename
59
+     *  @param string $filename
60 60
      */
61 61
     public function write($module, $table, $filename)
62 62
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      *  @param $tableName
177 177
      *  @param $tableSoleName
178 178
      *  @param $tableAutoincrement
179
-     *  @param $language
179
+     *  @param string $language
180 180
      * @return bool|string
181 181
       */
182 182
     private function getUserBrokenSwitch($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $language)
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     /**
196 196
      *  @public function render
197 197
      *  @param null
198
-     * @return bool|string
198
+     * @return null|string
199 199
      */
200 200
     public function render()
201 201
     {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,14 +171,14 @@
 block discarded – undo
171 171
     }
172 172
 
173 173
     /**
174
-      *  @private function getUserSubmitSwitch
175
-      *  @param $moduleDirname
174
+     *  @private function getUserSubmitSwitch
175
+     *  @param $moduleDirname
176 176
      *  @param $tableName
177 177
      *  @param $tableSoleName
178 178
      *  @param $tableAutoincrement
179 179
      *  @param $language
180 180
      * @return bool|string
181
-      */
181
+     */
182 182
     private function getUserBrokenSwitch($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $language)
183 183
     {
184 184
         $xc = TDMCreateXoopsCode::getInstance();
Please login to merge, or discard this patch.
class/files/user/UserPdf.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param $moduleDirname
84 84
      * @param $tableName
85 85
      * @param $fields
86
-     * @param $language
86
+     * @param string $language
87 87
      * @return string
88 88
      */
89 89
     private function getUserPdfHeader($moduleDirname, $tableName, $fields, $language)
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     /**
215 215
     *  @public function render
216 216
     *  @param null
217
-     * @return bool|string
217
+     * @return null|string
218 218
      */
219 219
     public function render()
220 220
     {
Please login to merge, or discard this patch.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,19 +28,19 @@  discard block
 block discarded – undo
28 28
 class UserPdf extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    * @var mixed
32
-    */
31
+     * @var mixed
32
+     */
33 33
     private $uc = null;
34 34
 
35 35
     /**
36
-    * @var string
37
-    */
36
+     * @var string
37
+     */
38 38
     private $xc = null;
39 39
 
40 40
     /**
41
-    *  @public function constructor
42
-    *  @param null
43
-    */
41
+     *  @public function constructor
42
+     *  @param null
43
+     */
44 44
 
45 45
     public function __construct()
46 46
     {
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-    *  @static function getInstance
55
-    *  @param null
54
+     *  @static function getInstance
55
+     *  @param null
56 56
      * @return UserPdf
57 57
      */
58 58
     public static function getInstance()
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-    *  @public function write
70
-    *  @param string $module
71
-    *  @param mixed $table
72
-    *  @param string $filename
69
+     *  @public function write
70
+     *  @param string $module
71
+     *  @param mixed $table
72
+     *  @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     }
105 105
 
106 106
     /**
107
-    *  @public function getAdminPagesList
107
+     *  @public function getAdminPagesList
108 108
      * @param $moduleDirname
109 109
      * @param $fields
110 110
      * @return string
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
     }
213 213
 
214 214
     /**
215
-    *  @public function render
216
-    *  @param null
215
+     *  @public function render
216
+     *  @param null
217 217
      * @return bool|string
218 218
      */
219 219
     public function render()
Please login to merge, or discard this patch.