Passed
Push — master ( 9625ba...bbffc5 )
by Michael
02:24
created
class/fields.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * @private function getFormNewLine
164 164
      *
165
-     * @param $form
166
-     * @param $class
167
-     * @param $i
165
+     * @param TDMCreateThemeForm $form
166
+     * @param string $class
167
+     * @param integer $i
168 168
      * @param $fieldMid
169 169
      * @param $fieldTid
170 170
      * @param $fName
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
     /**
449 449
      * @private function getFooterForm
450 450
      *
451
-     * @param $form
451
+     * @param TDMCreateThemeForm $form
452 452
      *
453 453
      * @return mixed
454 454
      */
@@ -602,10 +602,10 @@  discard block
 block discarded – undo
602 602
     /**
603 603
      * Get Fields Criteria.
604 604
      * @param $crFields
605
-     * @param $start
606
-     * @param $limit
607
-     * @param $sort
608
-     * @param $order
605
+     * @param integer $start
606
+     * @param integer $limit
607
+     * @param string $sort
608
+     * @param string $order
609 609
      * @return
610 610
      */
611 611
     private function getFieldsCriteria($crFields, $start, $limit, $sort, $order)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@
 block discarded – undo
325 325
         $id = 1;
326 326
         foreach ($fields as $field) {
327 327
             $class = ('even' === $class) ? 'odd' : 'even';
328
-            $fieldId = (int)$field->getVar('field_id');
328
+            $fieldId = (int) $field->getVar('field_id');
329 329
             if ($id > $fieldNumb) {   // delete additional fields, if number of fields is reduced - goffy
330 330
                 $fieldsObj = &$tdmcreate->getHandler('fields')->get($fieldId);
331 331
                 $tdmcreate->getHandler('fields')->delete($fieldsObj, true);
Please login to merge, or discard this patch.
class/files/sql/SqlFile.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      *  @public function write
59 59
      *
60
-     *  @param $module
61
-     *  @param $filename
60
+     *  @param string $module
61
+     *  @param string $filename
62 62
      */
63 63
     public function write($module, $filename)
64 64
     {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @private function getHeaderSqlComments
71 71
      *
72
-     * @param $moduleName
72
+     * @param string $moduleName
73 73
      *
74 74
      * @return string
75 75
      */
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     /**
147 147
      * @private function getDatabaseFields
148 148
      *
149
-     * @param $moduleDirname
149
+     * @param string $moduleDirname
150 150
      * @param $tableMid
151 151
      * @param $tableId
152 152
      * @param $tableName
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      *  @param $fieldAttribute
343 343
      *  @param $fieldNull
344 344
      *  @param $fieldDefault
345
-     *  @param $autoincrement
345
+     *  @param string $autoincrement
346 346
      *
347 347
      *  @return string
348 348
      */
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     /**
369 369
      * @private function getKey
370 370
      *
371
-     * @param $key
371
+     * @param integer $key
372 372
      * @param $fieldName
373 373
      * @return string
374 374
      */
@@ -399,8 +399,8 @@  discard block
 block discarded – undo
399 399
     /**
400 400
      *  @private function getComma
401 401
      *
402
-     *  @param $row
403
-     *  @param $comma
402
+     *  @param boolean $row
403
+     *  @param string $comma
404 404
      *
405 405
      *  @return string
406 406
      */
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
      *
438 438
      *  @param null
439 439
      *
440
-     *  @return bool|string
440
+     *  @return null|string
441 441
      */
442 442
     public function render()
443 443
     {
Please login to merge, or discard this patch.
class/files/TDMCreateFile.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
      * @param $subdir
117 117
      * @param $fileName
118 118
      * @param $content
119
-     * @param $created
120
-     * @param $notCreated
119
+     * @param string $created
120
+     * @param string $notCreated
121 121
      * @param $mode
122 122
      */
123 123
     public function create($moduleDirname, $subdir = null, $fileName = null, $content = '', $created = null, $notCreated = null, $mode = 'w+')
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
     /**
169 169
      * @private function setSubDir
170
-     * @param $subdir
170
+     * @param string $subdir
171 171
      */
172 172
     private function setSubDir($subdir)
173 173
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 
207 207
     /**
208 208
      * @private function setContent
209
-     * @param $content
209
+     * @param string $content
210 210
      */
211 211
     private function setContent($content)
212 212
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 
283 283
     /**
284 284
      * @private function setMode
285
-     * @param $mode
285
+     * @param string $mode
286 286
      */
287 287
     private function setMode($mode)
288 288
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
     /**
378 378
      *  @public function getUcfirst
379
-     *  @param $string
379
+     *  @param string $string
380 380
      *
381 381
      * @return string
382 382
      */
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
     /**
389 389
      * @public function getLcfirst
390 390
      *
391
-     * @param $string
391
+     * @param string $string
392 392
      * @return string
393 393
      */
394 394
     public function getLcfirst($string)
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     /**
442 442
      * @private function getDashComment
443 443
      *
444
-     * @param $comment
444
+     * @param string $comment
445 445
      *
446 446
      * @return string
447 447
      */
Please login to merge, or discard this patch.
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 class TDMCreateFile extends TDMCreateTableFields
29 29
 {
30 30
     /**
31
-    * @var string
32
-    */
31
+     * @var string
32
+     */
33 33
     private $xf = null;
34 34
 
35 35
     /**
@@ -54,39 +54,39 @@  discard block
 block discarded – undo
54 54
     private $uploadPath = null;
55 55
 
56 56
     /**
57
-    * @var string
58
-    */
57
+     * @var string
58
+     */
59 59
     private $content = null;
60 60
 
61 61
     /**
62
-    * @var mixed
63
-    */
62
+     * @var mixed
63
+     */
64 64
     private $created = null;
65 65
 
66 66
     /**
67
-    * @var mixed
68
-    */
67
+     * @var mixed
68
+     */
69 69
     private $notCreated = null;
70 70
 
71 71
     /**
72
-    * @var string
73
-    */
72
+     * @var string
73
+     */
74 74
     private $mode = null;
75 75
 
76 76
     /**
77
-    * @var string
78
-    */
77
+     * @var string
78
+     */
79 79
     protected $phpcode = null;
80 80
 
81 81
     /**
82
-    * @var string
83
-    */
82
+     * @var string
83
+     */
84 84
     protected $htmlcode;
85 85
 
86 86
     /**
87
-    *  @public function constructor
88
-    *  @param null
89
-    */
87
+     *  @public function constructor
88
+     *  @param null
89
+     */
90 90
 
91 91
     public function __construct()
92 92
     {
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-    *  @public static function getInstance
99
-    *  @param null
98
+     *  @public static function getInstance
99
+     *  @param null
100 100
      * @return TDMCreateFile
101 101
      */
102 102
     public static function getInstance()
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
     }
137 137
 
138 138
     /**
139
-    *  @public function write
140
-    *  @param string $module
141
-    *  @param string $fileName
139
+     *  @public function write
140
+     *  @param string $module
141
+     *  @param string $fileName
142 142
      */
143 143
     /*public function write($module, $fileName)
144 144
     {
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
     }*/
148 148
 
149 149
     /**
150
-    *  @private function setRepositoryPath
151
-    *  @param string $moduleDirname
150
+     *  @private function setRepositoryPath
151
+     *  @param string $moduleDirname
152 152
      */
153 153
     private function setRepositoryPath($moduleDirname)
154 154
     {
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
     }
157 157
 
158 158
     /**
159
-    *  @private function getRepositoryPath
160
-    *  @param null
159
+     *  @private function getRepositoryPath
160
+     *  @param null
161 161
      * @return string
162 162
      */
163 163
     private function getRepositoryPath()
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
     }
196 196
 
197 197
     /**
198
-    *  @public function getFileName
199
-    *  @param null
198
+     *  @public function getFileName
199
+     *  @param null
200 200
      * @return mixed
201 201
      */
202 202
     public function getFileName()
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
     }
226 226
 
227 227
     /**
228
-    *  @private function getFolderName
229
-    *  @param null
228
+     *  @private function getFolderName
229
+     *  @param null
230 230
      * @return string
231 231
      */
232 232
     private function getFolderName()
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
     }
246 246
 
247 247
     /**
248
-    *  @public function getUploadPath
249
-    *  @param null
248
+     *  @public function getUploadPath
249
+     *  @param null
250 250
      * @return string
251 251
      */
252 252
     private function getUploadPath()
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
     }
262 262
 
263 263
     /**
264
-    *  @private function getCreated
265
-    *  @param null
264
+     *  @private function getCreated
265
+     *  @param null
266 266
      * @return bool
267 267
      */
268 268
     private function getCreated()
@@ -271,8 +271,8 @@  discard block
 block discarded – undo
271 271
     }
272 272
 
273 273
     /**
274
-    *  @private function getNotCreated
275
-    *  @param null
274
+     *  @private function getNotCreated
275
+     *  @param null
276 276
      * @return bool
277 277
      */
278 278
     private function getNotCreated()
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
     }
302 302
 
303 303
     /**
304
-    *  @public function getLanguage
305
-    *  @param string $moduleDirname
306
-    *  @param string $prefix
307
-    *  @param string $suffix
304
+     *  @public function getLanguage
305
+     *  @param string $moduleDirname
306
+     *  @param string $prefix
307
+     *  @param string $suffix
308 308
      *
309 309
      * @return string
310 310
      */
@@ -322,8 +322,8 @@  discard block
 block discarded – undo
322 322
     }
323 323
 
324 324
     /**
325
-    *  @public function getLeftString
326
-    *  @param string $string
325
+     *  @public function getLeftString
326
+     *  @param string $string
327 327
      *
328 328
      * @return string
329 329
      */
@@ -419,8 +419,8 @@  discard block
 block discarded – undo
419 419
     }
420 420
 
421 421
     /**
422
-    *  @public function getInclude
423
-    *  @param $filename
422
+     *  @public function getInclude
423
+     *  @param $filename
424 424
      * @return string
425 425
      */
426 426
     public function getInclude($filename = 'header')
@@ -429,8 +429,8 @@  discard block
 block discarded – undo
429 429
     }
430 430
 
431 431
     /**
432
-    *  @public function getIncludeOnce
433
-    *  @param $filename
432
+     *  @public function getIncludeOnce
433
+     *  @param $filename
434 434
      * @return string
435 435
      */
436 436
     public function getIncludeOnce($filename = 'header')
@@ -463,9 +463,9 @@  discard block
 block discarded – undo
463 463
     }
464 464
 
465 465
     /**
466
-    *  @public function getHeaderFilesComments
467
-    *  @param string $module
468
-    *  @param string $fileName
466
+     *  @public function getHeaderFilesComments
467
+     *  @param string $module
468
+     *  @param string $fileName
469 469
      * @param $noPhpFile
470 470
      *
471 471
      * @return string
@@ -510,8 +510,8 @@  discard block
 block discarded – undo
510 510
     }
511 511
 
512 512
     /**
513
-    *  @public function renderFile
514
-    *  @param null
513
+     *  @public function renderFile
514
+     *  @param null
515 515
      * @return string
516 516
      */
517 517
     public function renderFile()
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserPagesList.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param        $tableMid
75 75
      * @param        $tableName
76 76
      * @param        $tableSoleName
77
-     * @param        $language
77
+     * @param        string $language
78 78
      * @return string
79 79
      */
80 80
     private function getTemplatesUserPagesListPanel($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $language)
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     /**
159 159
     *  @public function render
160 160
     *  @param null
161
-     * @return bool|string
161
+     * @return null|string
162 162
      *
163 163
      */
164 164
     public function render()
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TemplatesUserPagesList 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 TemplatesUserPagesList
44 44
      */
45 45
     public static function getInstance()
@@ -53,12 +53,12 @@  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
      * @param $tables
61
-      */
61
+     */
62 62
     public function write($module, $table, $tables, $filename)
63 63
     {
64 64
         $this->setModule($module);
@@ -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
      */
Please login to merge, or discard this patch.
class/files/user/UserSubmit.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * @public function getUserSubmitFooter
170 170
      * @param $moduleDirname
171
-     * @param $language
171
+     * @param string $language
172 172
      * @return string
173 173
      */
174 174
     public function getUserSubmitFooter($moduleDirname, $language)
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
      * @param $tableSoleName
193 193
      * @param $tableSubmit
194 194
      * @param $tableAutoincrement
195
-     * @param $language
196
-     * @param $t
195
+     * @param string $language
196
+     * @param string $t
197 197
      * @return string
198 198
      */
199 199
     private function getUserSubmitSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $tableSubmit, $tableAutoincrement, $language, $t)
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     /**
212 212
     *  @public function render
213 213
     *  @param null
214
-     * @return bool|string
214
+     * @return null|string
215 215
      */
216 216
     public function render()
217 217
     {
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class UserSubmit 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 UserSubmit
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
     {
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
     }
126 126
 
127 127
     /**
128
-    *  @public function getUserSubmitSave
129
-    *  @param string $moduleDirname
128
+     *  @public function getUserSubmitSave
129
+     *  @param string $moduleDirname
130 130
      * @param        $fields
131
-    *  @param string $tableName
131
+     *  @param string $tableName
132 132
      * @param        $tableSoleName
133 133
      * @param        $tableSubmit
134 134
      * @param        $tableAutoincrement
@@ -209,8 +209,8 @@  discard block
 block discarded – undo
209 209
     }
210 210
 
211 211
     /**
212
-    *  @public function render
213
-    *  @param null
212
+     *  @public function render
213
+     *  @param null
214 214
      * @return bool|string
215 215
      */
216 216
     public function render()
Please login to merge, or discard this patch.
class/helper.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     *  @param mixed $debug
53 53
     */
54 54
     /**
55
-     * @param $debug
55
+     * @param boolean $debug
56 56
      */
57 57
     public function __construct($debug)
58 58
     {
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
     *  @param string $name
101 101
     */
102 102
     /**
103
-     * @param null $name
103
+     * @param string $name
104 104
      *
105
-     * @return null|string
105
+     * @return string|false
106 106
      */
107 107
     public function getConfig($name = null)
108 108
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      * @param null $name
134 134
      * @param null $value
135 135
      *
136
-     * @return mixed
136
+     * @return string
137 137
      */
138 138
     public function setConfig($name = null, $value = null)
139 139
     {
@@ -151,9 +151,9 @@  discard block
 block discarded – undo
151 151
     *  @param string $name
152 152
     */
153 153
     /**
154
-     * @param $name
154
+     * @param string $name
155 155
      *
156
-     * @return mixed
156
+     * @return string
157 157
      */
158 158
     public function &getHandler($name)
159 159
     {
Please login to merge, or discard this patch.
include/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     for ($key = 0; $key <= 4; ++$key) {
56 56
         switch ($key) {
57 57
             case 2:
58
-                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')),  strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
58
+                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
59 59
                 break;
60 60
         }
61 61
     }
Please login to merge, or discard this patch.
class/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
     {
260 260
         $retSet = [];
261 261
         foreach ($this->options as $option) {
262
-            if (1 == $this->getVar('set_' . $option)) {
262
+            if (1 == $this->getVar('set_'.$option)) {
263 263
                 array_push($retSet, $option);
264 264
             }
265 265
         }
Please login to merge, or discard this patch.
class/form/TDMCreateFormTabTray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js');
62 62
         $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
63 63
         $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.$this->uiTheme.'/ui.all.css');
64
-        $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_' . $this->getName() . '").tabs(); });');
64
+        $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_'.$this->getName().'").tabs(); });');
65 65
 
66 66
         $ret = '<div id="tabs_'.$this->getName().'">'.NWLINE;
67 67
         $ret .= '<ul>'.NWLINE;
Please login to merge, or discard this patch.