Completed
Push — master ( 6b7a6d...74143b )
by Gino
20s
created
class/files/include/IncludeComments.php 2 patches
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.
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 IncludeComments 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 IncludeComments
44 44
      */
45 45
     public static function getInstance()
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    *  @public function write
57
-    *  @param string $module
58
-    *  @param mixed $table
56
+     *  @public function write
57
+     *  @param string $module
58
+     *  @param mixed $table
59 59
      */
60 60
     public function write($module, $table)
61 61
     {
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-    *  @public function getCommentsIncludes
68
-    *  @param string $module
69
-    *  @param string $filename
67
+     *  @public function getCommentsIncludes
68
+     *  @param string $module
69
+     *  @param string $filename
70 70
      *
71 71
      * @return bool|string
72 72
      */
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     /**
87
-    *  @public function getCommentsNew
88
-    *  @param string $module
89
-    *  @param string $filename
87
+     *  @public function getCommentsNew
88
+     *  @param string $module
89
+     *  @param string $filename
90 90
      *
91 91
      * @return bool|string
92 92
      */
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
         return $this->renderFile();
119 119
     }
120 120
     /**
121
-    *  @public function render
122
-    *  @param null
123
-    */
121
+     *  @public function render
122
+     *  @param null
123
+     */
124 124
     /*public function render() {
125 125
         $module = $this->getModule();
126 126
         $table = $this->getTable();
Please login to merge, or discard this patch.
class/files/include/IncludeInstall.php 2 patches
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.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class IncludeInstall 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 IncludeInstall
44 44
      */
45 45
     public static function getInstance()
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
     /**
129
-    *  @private function getInstallImagesFolder
130
-    *  @param string $moduleDirname
129
+     *  @private function getInstallImagesFolder
130
+     *  @param string $moduleDirname
131 131
      *
132 132
      * @return string
133 133
      */
@@ -200,8 +200,8 @@  discard block
 block discarded – undo
200 200
     }
201 201
 
202 202
     /**
203
-    *  @private function getInstallTableFilesFolder
204
-    *  @param string $tableName
203
+     *  @private function getInstallTableFilesFolder
204
+     *  @param string $tableName
205 205
      *
206 206
      * @return string
207 207
      */
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
     }
218 218
 
219 219
     /**
220
-    *  @private function getInstallFooter
221
-    *  @param null
220
+     *  @private function getInstallFooter
221
+     *  @param null
222 222
      * @return string
223 223
      */
224 224
     private function getInstallFooter()
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
     }
228 228
 
229 229
     /**
230
-    *  @public function render
231
-    *  @param null
230
+     *  @public function render
231
+     *  @param null
232 232
      * @return bool|string
233 233
      */
234 234
     public function render()
Please login to merge, or discard this patch.
class/files/include/IncludeNotifications.php 2 patches
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.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class IncludeNotifications 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 IncludeNotifications
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 mixed $table
59
-    *  @param string $filename
56
+     *  @public function write
57
+     *  @param string $module
58
+     *  @param mixed $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
-    *  @static function getNotificationsFunction
70
-    *  @param string $moduleDirname
69
+     *  @static function getNotificationsFunction
70
+     *  @param string $moduleDirname
71 71
      *
72 72
      * @return string
73 73
      */
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
     }
157 157
 
158 158
     /**
159
-    *  @public function render
160
-    *  @param null
159
+     *  @public function render
160
+     *  @param null
161 161
      * @return bool|string
162 162
      */
163 163
     public function render()
Please login to merge, or discard this patch.
class/files/language/LanguageBlocks.php 2 patches
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.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class LanguageBlocks 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
     {
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-    *  @static function getInstance
43
-    *  @param null
42
+     *  @static function getInstance
43
+     *  @param null
44 44
      * @return LanguageBlocks
45 45
      */
46 46
     public static function getInstance()
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-    *  @public function write
58
-    *  @param string $module
59
-    *  @param mixed $tables
60
-    *  @param string $filename
57
+     *  @public function write
58
+     *  @param string $module
59
+     *  @param mixed $tables
60
+     *  @param string $filename
61 61
      */
62 62
     public function write($module, $tables, $filename)
63 63
     {
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-    *  @private function getLanguageBlock
71
-    *  @param string $language
72
-    *  @param string $module
70
+     *  @private function getLanguageBlock
71
+     *  @param string $language
72
+     *  @param string $module
73 73
      *
74 74
      * @return string
75 75
      */
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-    *  @private function getFooter
107
-    *  @param null
106
+     *  @private function getFooter
107
+     *  @param null
108 108
      * @return string
109 109
      */
110 110
     private function getLanguageFooter()
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-    *  @public function render
119
-    *  @param null
118
+     *  @public function render
119
+     *  @param null
120 120
      * @return bool|string
121 121
      */
122 122
     public function render()
Please login to merge, or discard this patch.
class/files/language/LanguageHelp.php 2 patches
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.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class CssStyles 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 CssStyles
44 44
      */
45 45
     public static function getInstance()
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    *  @public function write
57
-    *  @param string $module
58
-    *  @param string $filename
56
+     *  @public function write
57
+     *  @param string $module
58
+     *  @param string $filename
59 59
      * @param $module
60 60
      * @param $filename
61 61
      */
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-    *  @public function render
70
-    *  @param null
69
+     *  @public function render
70
+     *  @param null
71 71
      * @return bool|string
72 72
      */
73 73
     public function render()
Please login to merge, or discard this patch.
class/files/language/LanguageMain.php 2 patches
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.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class LanguageMain 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
     {
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-    *  @static function getInstance
43
-    *  @param null
42
+     *  @static function getInstance
43
+     *  @param null
44 44
      * @return LanguageMain
45 45
      */
46 46
     public static function getInstance()
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-    *  @public function write
58
-    *  @param string $module
59
-    *  @param mixed $tables
60
-    *  @param string $filename
57
+     *  @public function write
58
+     *  @param string $module
59
+     *  @param mixed $tables
60
+     *  @param string $filename
61 61
      */
62 62
     public function write($module, $tables, $filename)
63 63
     {
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-    *  @private function geLanguagetMain
71
-    *  @param string $module
72
-    *  @param string $language
70
+     *  @private function geLanguagetMain
71
+     *  @param string $module
72
+     *  @param string $language
73 73
      *
74 74
      * @return string
75 75
      */
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-    *  @private function geLanguagetMainFooter
128
-    *  @param string $language
127
+     *  @private function geLanguagetMainFooter
128
+     *  @param string $language
129 129
      *
130 130
      * @return string
131 131
      */
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /**
142
-    *  @public function render
143
-    *  @param null
142
+     *  @public function render
143
+     *  @param null
144 144
      * @return bool|string
145 145
      */
146 146
     public function render()
Please login to merge, or discard this patch.
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   +30 added lines, -30 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()
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
         return $ret;
77 77
     }
78 78
 
79
-     /**
80
-    *  @private function setAttributes
81
-    *  @param array $attributes
82
-     *
83
-     * @return string
84
-     */
79
+        /**
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 2 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.
Indentation   +101 added lines, -101 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 = ($type != null) ? "{$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";
@@ -443,10 +443,10 @@  discard block
 block discarded – undo
443 443
     }
444 444
 
445 445
     /**
446
-    *  @public function getPhpCodeIsset
447
-    *  @param $var
448
-    *  @return string
449
-    */
446
+     *  @public function getPhpCodeIsset
447
+     *  @param $var
448
+     *  @return string
449
+     */
450 450
     public function getPhpCodeIsset($var)
451 451
     {
452 452
         return "isset(\${$var})";
@@ -464,32 +464,32 @@  discard block
 block discarded – undo
464 464
     }
465 465
 
466 466
     /**
467
-    *  @public function getPhpCodeIsDir
468
-    *  @param $var
469
-    *  @return string
470
-    */
467
+     *  @public function getPhpCodeIsDir
468
+     *  @param $var
469
+     *  @return string
470
+     */
471 471
     public function getPhpCodeIsDir($var)
472 472
     {
473 473
         return "is_dir({$var})";
474 474
     }
475 475
 
476 476
     /**
477
-    *  @public function getPhpCodeImplode
478
-    *  @param $left
479
-    *  @param $right
480
-    *  @return string
481
-    */
477
+     *  @public function getPhpCodeImplode
478
+     *  @param $left
479
+     *  @param $right
480
+     *  @return string
481
+     */
482 482
     public function getPhpCodeImplode($left, $right)
483 483
     {
484 484
         return "implode('{$left}', {$right})";
485 485
     }
486 486
 
487 487
     /**
488
-    *  @public function getPhpCodeExplode
489
-    *  @param $left
490
-    *  @param $right
491
-    *  @return string
492
-    */
488
+     *  @public function getPhpCodeExplode
489
+     *  @param $left
490
+     *  @param $right
491
+     *  @return string
492
+     */
493 493
     public function getPhpCodeExplode($left, $right)
494 494
     {
495 495
         return "explode('{$left}', {$right})";
@@ -590,41 +590,41 @@  discard block
 block discarded – undo
590 590
     }
591 591
 
592 592
     /**
593
-    *  @public function getPhpCodeSprintf
594
-    *  @param $left
595
-    *  @param $right
596
-    *  @return string
597
-    */
593
+     *  @public function getPhpCodeSprintf
594
+     *  @param $left
595
+     *  @param $right
596
+     *  @return string
597
+     */
598 598
     public function getPhpCodeSprintf($left, $right)
599 599
     {
600 600
         return "sprintf({$left}, {$right})";
601 601
     }
602 602
 
603 603
     /**
604
-    *  @public function getPhpCodeEmpty
605
-    *  @param $var
606
-    *  @return string
607
-    */
604
+     *  @public function getPhpCodeEmpty
605
+     *  @param $var
606
+     *  @return string
607
+     */
608 608
     public function getPhpCodeEmpty($var)
609 609
     {
610 610
         return "empty({$var})";
611 611
     }
612 612
 
613 613
     /**
614
-    *  @public function getPhpCodeHeader
615
-    *  @param $var
616
-    *  @return string
617
-    */
614
+     *  @public function getPhpCodeHeader
615
+     *  @param $var
616
+     *  @return string
617
+     */
618 618
     public function getPhpCodeHeader($var)
619 619
     {
620 620
         return "header({$var})";
621 621
     }
622 622
 
623 623
     /**
624
-    *  @public function getPhpCodeRawurlencode
625
-    *  @param $var
626
-    *  @return string
627
-    */
624
+     *  @public function getPhpCodeRawurlencode
625
+     *  @param $var
626
+     *  @return string
627
+     */
628 628
     public function getPhpCodeRawurlencode($var)
629 629
     {
630 630
         return "rawurlencode({$var})";
@@ -699,11 +699,11 @@  discard block
 block discarded – undo
699 699
     }
700 700
 
701 701
     /**
702
-    *  @public function getPhpCodeHtmlentities
703
-    *  @param $entitiesVar
704
-    *  @param $entitiesQuote
705
-    *  @return string
706
-    */
702
+     *  @public function getPhpCodeHtmlentities
703
+     *  @param $entitiesVar
704
+     *  @param $entitiesQuote
705
+     *  @return string
706
+     */
707 707
     public function getPhpCodeHtmlentities($entitiesVar, $entitiesQuote = false)
708 708
     {
709 709
         $entitiesVar = ($entitiesQuote !== false) ? $entitiesVar.', '.$entitiesQuote : $entitiesVar;
@@ -713,11 +713,11 @@  discard block
 block discarded – undo
713 713
     }
714 714
 
715 715
     /**
716
-    *  @public function getPhpCodeHtmlspecialchars
717
-    *  @param $specialVar
718
-    *  @param $specialQuote
719
-    *  @return string
720
-    */
716
+     *  @public function getPhpCodeHtmlspecialchars
717
+     *  @param $specialVar
718
+     *  @param $specialQuote
719
+     *  @return string
720
+     */
721 721
     public function getPhpCodeHtmlspecialchars($specialVar, $specialQuote = false)
722 722
     {
723 723
         $specialVar = ($specialQuote !== false) ? $specialVar.', '.$specialQuote : $specialVar;
Please login to merge, or discard this patch.
class/files/TDMCreateStructure.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
      *
191 191
      *  @param string $dir
192 192
      *
193
-     * @return string
193
+     * @return boolean
194 194
      */
195 195
     public function isDirEmpty($dir)
196 196
     {
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,24 +28,24 @@
 block discarded – undo
28 28
 class TDMCreateStructure
29 29
 {
30 30
     /**
31
-    * @var string
32
-    */
31
+     * @var string
32
+     */
33 33
     private $moduleName;
34 34
     /**
35
-    * @var string
36
-    */
35
+     * @var string
36
+     */
37 37
     private $folderName;
38 38
     /**
39
-    * @var string
40
-    */
39
+     * @var string
40
+     */
41 41
     private $fileName;
42 42
     /**
43
-    * @var string
44
-    */
43
+     * @var string
44
+     */
45 45
     private $path;
46 46
     /**
47
-    * @var mixed
48
-    */
47
+     * @var mixed
48
+     */
49 49
     private $uploadPath;
50 50
 
51 51
     /**
Please login to merge, or discard this patch.