Completed
Push — master ( aa4794...6b7a6d )
by Gino
19s
created
class/files/TDMCreatePhpCode.php 1 patch
Doc Comments   +60 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,6 +111,10 @@  discard block
 block discarded – undo
111 111
     *
112 112
     *  @return string
113 113
     */
114
+
115
+    /**
116
+     * @param string $var
117
+     */
114 118
     public function getPhpCodeGlobals($var, $value = '')
115 119
     {
116 120
         if ($value != '') {
@@ -129,6 +133,10 @@  discard block
 block discarded – undo
129 133
     *
130 134
     *  @return string
131 135
     */
136
+
137
+    /**
138
+     * @param string $var
139
+     */
132 140
     public function getPhpCodeGlobalsVariables($var = null, $type = 'REQUEST')
133 141
     {
134 142
         $type = strtoupper($type);
@@ -165,6 +173,10 @@  discard block
 block discarded – undo
165 173
      *
166 174
      * @return string
167 175
      */
176
+
177
+    /**
178
+     * @param string $string
179
+     */
168 180
     public function getPhpCodeRemoveCarriageReturn($string, $n = "\n", $t = "\r")
169 181
     {
170 182
         return str_replace(array("{$n}", "{$t}"), '', $string);
@@ -190,6 +202,10 @@  discard block
 block discarded – undo
190 202
     *
191 203
     *  @return string
192 204
     */
205
+
206
+    /**
207
+     * @param string $filename
208
+     */
193 209
     public function getPhpCodeIncludeDir($directory = null, $filename = null, $once = false, $isPath = false, $type = 'include', $t = '')
194 210
     {
195 211
         if ($type === '') {
@@ -236,6 +252,11 @@  discard block
 block discarded – undo
236 252
     *
237 253
     *  @return string
238 254
     */
255
+
256
+    /**
257
+     * @param string $content
258
+     * @param string $extends
259
+     */
239 260
     public function getPhpCodeClass($name = null, $content = null, $extends = null, $type = null)
240 261
     {
241 262
         $typ = ($type != null) ? "{$type} " : '';
@@ -257,6 +278,10 @@  discard block
 block discarded – undo
257 278
     *
258 279
     *  @return string
259 280
     */
281
+
282
+    /**
283
+     * @param string $name
284
+     */
260 285
     public function getPhpCodeVariableClass($type = 'private', $name = null, $assign = 'null', $t = '')
261 286
     {
262 287
         return "{$t}{$type} \${$name} = {$assign};\n";
@@ -272,6 +297,10 @@  discard block
 block discarded – undo
272 297
     *
273 298
     *  @return string
274 299
     */
300
+
301
+    /**
302
+     * @param string $method
303
+     */
275 304
     public function getPhpCodeFunction($name = null, $params = null, $content = null, $method = null, $isRef = false, $t = '')
276 305
     {
277 306
         $inClass = ($method != null) ? $method : '';
@@ -382,8 +411,8 @@  discard block
 block discarded – undo
382 411
     /**
383 412
      *  @public function getPhpCodeSwitch
384 413
      *
385
-     *  @param $op
386
-     *  @param $content
414
+     *  @param string $op
415
+     *  @param string $content
387 416
      *  @param $t
388 417
      *
389 418
      *  @return string
@@ -441,6 +470,10 @@  discard block
 block discarded – undo
441 470
     *  @param $var
442 471
     *  @return string
443 472
     */
473
+
474
+    /**
475
+     * @param string $var
476
+     */
444 477
     public function getPhpCodeIsset($var)
445 478
     {
446 479
         return "isset(\${$var})";
@@ -461,6 +494,10 @@  discard block
 block discarded – undo
461 494
     *  @param $var
462 495
     *  @return string
463 496
     */
497
+
498
+    /**
499
+     * @param string $var
500
+     */
464 501
     public function getPhpCodeIsDir($var)
465 502
     {
466 503
         return "is_dir({$var})";
@@ -472,6 +509,11 @@  discard block
 block discarded – undo
472 509
     *  @param $right
473 510
     *  @return string
474 511
     */
512
+
513
+    /**
514
+     * @param string $left
515
+     * @param string $right
516
+     */
475 517
     public function getPhpCodeImplode($left, $right)
476 518
     {
477 519
         return "implode('{$left}', {$right})";
@@ -516,6 +558,10 @@  discard block
 block discarded – undo
516 558
     *  @param $newfile
517 559
     *  @return string
518 560
     */
561
+
562
+    /**
563
+     * @param string $file
564
+     */
519 565
     public function getPhpCodeCopy($file, $newfile = '', $t = '')
520 566
     {
521 567
         return "{$t}copy({$file}, {$newfile});\n";
@@ -565,6 +611,11 @@  discard block
 block discarded – undo
565 611
     *
566 612
     *  @return string
567 613
     */
614
+
615
+    /**
616
+     * @param string $type
617
+     * @param string $right
618
+     */
568 619
     public function getPhpCodeArrayType($var, $type, $left, $right = null, $isParam = false, $t = "\t\t")
569 620
     {
570 621
         $vars = ($right != null) ? "\${$left}, {$right}" : "\${$left}";
@@ -629,6 +680,13 @@  discard block
 block discarded – undo
629 680
     *
630 681
     *  @return string
631 682
     */
683
+
684
+    /**
685
+     * @param string $var
686
+     * @param string $exp
687
+     * @param string $str
688
+     * @param string $val
689
+     */
632 690
     public function getPhpCodePregFunzions($var, $exp = null, $str, $val, $type = 'match', $isParam = false, $t = "\t")
633 691
     {
634 692
         $pregFunz = "preg_{$type}('";
Please login to merge, or discard this patch.
class/files/TDMCreateStructure.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,6 @@  discard block
 block discarded – undo
88 88
     /**
89 89
      * @protected function getUploadPath
90 90
      *
91
-     * @param string $path
92 91
      *
93 92
      * @return string $path
94 93
      */
@@ -192,7 +191,7 @@  discard block
 block discarded – undo
192 191
      *
193 192
      *  @param string $dir
194 193
      *
195
-     * @return string
194
+     * @return boolean
196 195
      */
197 196
     public function isDirEmpty($dir)
198 197
     {
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
     *  @param string $table
63 63
     */
64 64
     /**
65
-     * @param $module
65
+     * @param string $module
66 66
      * @param $table
67
-     * @param $filename
67
+     * @param string $filename
68 68
      */
69 69
     public function write($module, $table, $filename)
70 70
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * @param $moduleDirname
84 84
      * @param $table
85
-     * @param $language
85
+     * @param string $language
86 86
      *
87 87
      * @return string
88 88
      */
@@ -109,9 +109,10 @@  discard block
 block discarded – undo
109 109
     *  @param string $language
110 110
     */
111 111
     /**
112
-     * @param $moduleDirname
112
+     * @param string $moduleDirname
113 113
      * @param $table
114
-     * @param $language
114
+     * @param string $language
115
+     * @param string $tableName
115 116
      *
116 117
      * @return string
117 118
      */
@@ -232,7 +233,7 @@  discard block
 block discarded – undo
232 233
     /**
233 234
      * @param null
234 235
      *
235
-     * @return bool|string
236
+     * @return null|string
236 237
      */
237 238
     public function render()
238 239
     {
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserBroken.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,9 @@  discard block
 block discarded – undo
63 63
     *  @param string $filename
64 64
     */
65 65
     /**
66
-     * @param $module
66
+     * @param string $module
67 67
      * @param $table
68
+     * @param string $filename
68 69
      */
69 70
     public function write($module, $table, $filename)
70 71
     {
@@ -98,7 +99,7 @@  discard block
 block discarded – undo
98 99
     /**
99 100
      * @param $moduleDirname
100 101
      * @param $table
101
-     * @param $language
102
+     * @param string $language
102 103
      *
103 104
      * @return string
104 105
      */
@@ -129,7 +130,7 @@  discard block
 block discarded – undo
129 130
     /**
130 131
      * @param $moduleDirname
131 132
      * @param $table
132
-     * @param $language
133
+     * @param string $language
133 134
      *
134 135
      * @return string
135 136
      */
@@ -191,7 +192,7 @@  discard block
 block discarded – undo
191 192
     /**
192 193
      * @param $filename
193 194
      *
194
-     * @return bool|string
195
+     * @return null|string
195 196
      */
196 197
     public function render()
197 198
     {
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserPages.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,8 +63,9 @@  discard block
 block discarded – undo
63 63
     *  @param string $filename
64 64
     */
65 65
     /**
66
-     * @param $module
66
+     * @param string $module
67 67
      * @param $table
68
+     * @param string $filename
68 69
      */
69 70
     public function write($module, $table, $filename)
70 71
     {
@@ -113,7 +114,8 @@  discard block
 block discarded – undo
113 114
     *  @param string $language
114 115
     */
115 116
     /**
116
-     * @param $language
117
+     * @param string $language
118
+     * @param string $tableName
117 119
      *
118 120
      * @return string
119 121
      */
@@ -136,9 +138,10 @@  discard block
 block discarded – undo
136 138
     *  @param string $language
137 139
     */
138 140
     /**
139
-     * @param $moduleDirname
141
+     * @param string $moduleDirname
140 142
      * @param $table
141
-     * @param $language
143
+     * @param string $language
144
+     * @param string $tableName
142 145
      *
143 146
      * @return string
144 147
      */
@@ -184,7 +187,7 @@  discard block
 block discarded – undo
184 187
     *  @param string $language
185 188
     */
186 189
     /**
187
-     * @param $language
190
+     * @param string $language
188 191
      *
189 192
      * @return string
190 193
      */
@@ -220,7 +223,7 @@  discard block
 block discarded – undo
220 223
     /**
221 224
      * @param null
222 225
      *
223
-     * @return bool|string
226
+     * @return null|string
224 227
      */
225 228
     public function render()
226 229
     {
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserRate.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,8 +63,9 @@  discard block
 block discarded – undo
63 63
     *  @param string $filename
64 64
     */
65 65
     /**
66
-     * @param $module
66
+     * @param string $module
67 67
      * @param $table
68
+     * @param string $filename
68 69
      */
69 70
     public function write($module, $table, $filename)
70 71
     {
@@ -82,7 +83,7 @@  discard block
 block discarded – undo
82 83
     /**
83 84
      * @param $moduleDirname
84 85
      * @param $table
85
-     * @param $language
86
+     * @param string $language
86 87
      *
87 88
      * @return string
88 89
      */
@@ -121,7 +122,7 @@  discard block
 block discarded – undo
121 122
     /**
122 123
      * @param $moduleDirname
123 124
      * @param $table
124
-     * @param $language
125
+     * @param string $language
125 126
      *
126 127
      * @return string
127 128
      */
@@ -182,7 +183,7 @@  discard block
 block discarded – undo
182 183
     /**
183 184
      * @param $moduleDirname
184 185
      * @param $table
185
-     * @param $language
186
+     * @param string $language
186 187
      *
187 188
      * @return string
188 189
      */
@@ -253,7 +254,7 @@  discard block
 block discarded – undo
253 254
     /**
254 255
      * @param $filename
255 256
      *
256
-     * @return bool|string
257
+     * @return null|string
257 258
      */
258 259
     public function render()
259 260
     {
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserRss.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,9 @@  discard block
 block discarded – undo
63 63
     *  @param string $filename
64 64
     */
65 65
     /**
66
-     * @param $module
66
+     * @param string $module
67 67
      * @param $table
68
+     * @param string $filename
68 69
      */
69 70
     public function write($module, $filename)
70 71
     {
@@ -133,7 +134,7 @@  discard block
 block discarded – undo
133 134
     /**
134 135
      * @param null
135 136
      *
136
-     * @return bool|string
137
+     * @return null|string
137 138
      */
138 139
     public function render()
139 140
     {
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserSubmit.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,8 +63,9 @@  discard block
 block discarded – undo
63 63
     *  @param string $filename
64 64
     */
65 65
     /**
66
-     * @param $module
66
+     * @param string $module
67 67
      * @param $table
68
+     * @param string $filename
68 69
      */
69 70
     public function write($module, $table, $filename)
70 71
     {
@@ -100,7 +101,7 @@  discard block
 block discarded – undo
100 101
     */
101 102
     /**
102 103
      * @param $moduleDirname
103
-     * @param $language
104
+     * @param string $language
104 105
      *
105 106
      * @return string
106 107
      */
@@ -150,7 +151,7 @@  discard block
 block discarded – undo
150 151
     /**
151 152
      * @param $filename
152 153
      *
153
-     * @return bool|string
154
+     * @return null|string
154 155
      */
155 156
     public function render()
156 157
     {
Please login to merge, or discard this patch.
class/files/user/UserBroken.php 2 patches
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
      *  @param $filename
64 64
      */
65 65
     /**
66
-     * @param $module
66
+     * @param string $module
67 67
      * @param $table
68
-     * @param $filename
68
+     * @param string $filename
69 69
      */
70 70
     public function write($module, $table, $filename)
71 71
     {
@@ -194,6 +194,10 @@  discard block
 block discarded – undo
194 194
       *
195 195
       * @return
196 196
       */
197
+
198
+    /**
199
+     * @param string $language
200
+     */
197 201
     private function getUserBrokenSwitch($moduleDirname, $tableName, $tableAutoincrement, $language)
198 202
     {
199 203
         $xc = TDMCreateXoopsCode::getInstance();
@@ -212,7 +216,7 @@  discard block
 block discarded – undo
212 216
      *  @param null
213 217
      */
214 218
     /**
215
-     * @return bool|string
219
+     * @return null|string
216 220
      */
217 221
     public function render()
218 222
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
         $tableMid = $table->getVar('table_mid');
203 203
         $fields = $this->getTableFields($tableMid, $tableId);
204 204
         $cases = array('form' => array($this->getUserBrokenForm($tableName, $language)),
205
-                    'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)), );
205
+                    'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)),);
206 206
 
207 207
         return $xc->getXcSwitch('op', $cases, true);
208 208
     }
Please login to merge, or discard this patch.