Completed
Push — develop ( 4a389e...d0bb9b )
by Maxim
15s
created
manager/includes/extenders/dbapi.mysql.class.inc.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -414,6 +414,9 @@  discard block
 block discarded – undo
414 414
         }
415 415
     }
416 416
 
417
+    /**
418
+     * @param string $table
419
+     */
417 420
     public function save($fields, $table, $where = '')
418 421
     {
419 422
 
@@ -444,6 +447,7 @@  discard block
 block discarded – undo
444 447
     /**
445 448
      * @name:  freeResult
446 449
      *
450
+     * @param mysqli_result $rs
447 451
      */
448 452
     public function freeResult($rs)
449 453
     {
@@ -554,6 +558,7 @@  discard block
 block discarded – undo
554 558
      * @name:  getColumn
555 559
      * @desc:  returns an array of the values found on colun $name
556 560
      * @param: $dsq - dataset or query string
561
+     * @param string $name
557 562
      */
558 563
     public function getColumn($name, $dsq)
559 564
     {
@@ -720,6 +725,9 @@  discard block
 block discarded – undo
720 725
         return $result;
721 726
     }
722 727
 
728
+    /**
729
+     * @param string $table_name
730
+     */
723 731
     public function optimize($table_name)
724 732
     {
725 733
         $rs = $this->query("OPTIMIZE TABLE {$table_name}");
@@ -730,6 +738,9 @@  discard block
 block discarded – undo
730 738
         return $rs;
731 739
     }
732 740
 
741
+    /**
742
+     * @param string $table_name
743
+     */
733 744
     public function truncate($table_name)
734 745
     {
735 746
         $rs = $this->query("TRUNCATE {$table_name}");
Please login to merge, or discard this patch.
manager/includes/extenders/dbapi.mysqli.class.inc.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -240,9 +240,9 @@  discard block
 block discarded – undo
240 240
     }
241 241
 
242 242
     /**
243
-     * @param string|array $fields
244
-     * @param string|array $from
245
-     * @param string|array $where
243
+     * @param string $fields
244
+     * @param string $from
245
+     * @param string $where
246 246
      * @param string $orderBy
247 247
      * @param string $limit
248 248
      * @return bool|mysqli_result
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      * @param string $fromtable
327 327
      * @param string $where
328 328
      * @param string $limit
329
-     * @return mixed
329
+     * @return null|integer
330 330
      */
331 331
     public function insert($fields, $intotable, $fromfields = "*", $fromtable = "", $where = "", $limit = "")
332 332
     {
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 
369 369
     /**
370 370
      * @param $fields
371
-     * @param $table
371
+     * @param string $table
372 372
      * @param string $where
373 373
      * @return bool|mixed|mysqli_result
374 374
      */
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 
436 436
     /**
437 437
      * @param null|mysqli $conn
438
-     * @return mixed
438
+     * @return integer
439 439
      */
440 440
     public function getInsertId($conn = null)
441 441
     {
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
     }
514 514
 
515 515
     /**
516
-     * @param $name
516
+     * @param string $name
517 517
      * @param mysqli_result|string $dsq
518 518
      * @return array
519 519
      */
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
 
573 573
     /**
574 574
      * @param string $table
575
-     * @return array
575
+     * @return boolean
576 576
      */
577 577
     public function getTableMetaData($table)
578 578
     {
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
     }
620 620
 
621 621
     /**
622
-     * @param string|mysqli_result $rs
622
+     * @param string $rs
623 623
      * @param bool $index
624 624
      * @return array
625 625
      */
Please login to merge, or discard this patch.
manager/includes/extenders/deprecated.functions.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      * @deprecated
73 73
      *
74 74
      * @param $rs
75
-     * @return int|mixed
75
+     * @return integer
76 76
      */
77 77
     public function insertId($rs)
78 78
     {
Please login to merge, or discard this patch.
manager/includes/document.parser.class.inc.php 1 patch
Doc Comments   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      * MODX_MANAGER_PATH."includes/extenders/ex_{$extname}.inc.php"
281 281
      * $extname - extension name in lowercase
282 282
      *
283
-     * @param $extname
283
+     * @param string $extname
284 284
      * @param bool $reload
285 285
      * @return bool
286 286
      */
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
      * @param int $count_attempts
326 326
      * @param string $type $type
327 327
      * @param string $responseCode
328
-     * @return bool|null
328
+     * @return false|null
329 329
      * @global string $base_url
330 330
      * @global string $site_url
331 331
      */
@@ -1041,7 +1041,7 @@  discard block
 block discarded – undo
1041 1041
     }
1042 1042
 
1043 1043
     /**
1044
-     * @param $contents
1044
+     * @param string $contents
1045 1045
      * @return mixed
1046 1046
      */
1047 1047
     public function RecoveryEscapedTags($contents)
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
     }
1068 1068
 
1069 1069
     /**
1070
-     * @param $tstart
1070
+     * @param double $tstart
1071 1071
      * @return array
1072 1072
      */
1073 1073
     public function getTimerStats($tstart)
@@ -1850,7 +1850,7 @@  discard block
 block discarded – undo
1850 1850
 
1851 1851
     /**
1852 1852
      * Remove Comment-Tags from output like <!--@- Comment -@-->
1853
-     * @param $content
1853
+     * @param string $content
1854 1854
      * @param string $left
1855 1855
      * @param string $right
1856 1856
      * @return mixed
@@ -2028,7 +2028,7 @@  discard block
 block discarded – undo
2028 2028
     /**
2029 2029
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
2030 2030
      *
2031
-     * @param $content
2031
+     * @param string $content
2032 2032
      * @return string
2033 2033
      * @internal param string $documentSource
2034 2034
      */
@@ -3095,7 +3095,7 @@  discard block
 block discarded – undo
3095 3095
 
3096 3096
     /**
3097 3097
      * @param $templateID
3098
-     * @return mixed
3098
+     * @return string
3099 3099
      */
3100 3100
     public function _getTemplateCodeFromDB($templateID)
3101 3101
     {
@@ -3137,9 +3137,9 @@  discard block
 block discarded – undo
3137 3137
     }
3138 3138
 
3139 3139
     /**
3140
-     * @param $id
3140
+     * @param integer $id
3141 3141
      * @param int $top
3142
-     * @return mixed
3142
+     * @return string
3143 3143
      */
3144 3144
     public function getUltimateParentId($id, $top = 0)
3145 3145
     {
@@ -3479,7 +3479,7 @@  discard block
 block discarded – undo
3479 3479
      *
3480 3480
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3481 3481
      * @param int $id Element- / Resource-id
3482
-     * @return bool
3482
+     * @return false|null
3483 3483
      */
3484 3484
     public function lockElement($type, $id)
3485 3485
     {
@@ -3502,7 +3502,7 @@  discard block
 block discarded – undo
3502 3502
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3503 3503
      * @param int $id Element- / Resource-id
3504 3504
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3505
-     * @return bool
3505
+     * @return false|null
3506 3506
      */
3507 3507
     public function unlockElement($type, $id, $includeAllUsers = false)
3508 3508
     {
@@ -3613,7 +3613,7 @@  discard block
 block discarded – undo
3613 3613
      * @param array $params
3614 3614
      * @param string $msg
3615 3615
      * @param array $files
3616
-     * @return mixed
3616
+     * @return boolean
3617 3617
      */
3618 3618
     public function sendmail($params = array(), $msg = '', $files = array())
3619 3619
     {
@@ -4050,7 +4050,7 @@  discard block
 block discarded – undo
4050 4050
      *                     Default: 1
4051 4051
      * @param string $fields List of fields
4052 4052
      *                       Default: id, pagetitle, description, alias
4053
-     * @return boolean|array
4053
+     * @return string
4054 4054
      */
4055 4055
     public function getPageInfo($pageid = -1, $active = 1, $fields = 'id, pagetitle, description, alias')
4056 4056
     {
@@ -4148,7 +4148,7 @@  discard block
 block discarded – undo
4148 4148
      *
4149 4149
      * @param string $type
4150 4150
      * @param bool $report
4151
-     * @return bool
4151
+     * @return boolean|null
4152 4152
      */
4153 4153
     public function clearCache($type = '', $report = false)
4154 4154
     {
@@ -4521,7 +4521,7 @@  discard block
 block discarded – undo
4521 4521
      * - Placeholders prefix. Default: '{'.
4522 4522
      * @param string $suffix {string}
4523 4523
      * - Placeholders suffix. Default: '}'.
4524
-     * @return bool|mixed|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4524
+     * @return false|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4525 4525
      * - Parsed chunk or false if $chunkArr is not array.
4526 4526
      */
4527 4527
     public function parseChunk($chunkName, $chunkArr, $prefix = '{', $suffix = '}')
@@ -5555,7 +5555,7 @@  discard block
 block discarded – undo
5555 5555
      * Remove event listener - only for use within the current execution cycle
5556 5556
      *
5557 5557
      * @param string $evtName
5558
-     * @return boolean
5558
+     * @return false|null
5559 5559
      */
5560 5560
     public function removeEventListener($evtName)
5561 5561
     {
@@ -5579,7 +5579,7 @@  discard block
 block discarded – undo
5579 5579
      *
5580 5580
      * @param string $evtName
5581 5581
      * @param array $extParams Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value.
5582
-     * @return boolean|array
5582
+     * @return false|null
5583 5583
      */
5584 5584
     public function invokeEvent($evtName, $extParams = array())
5585 5585
     {
@@ -6201,7 +6201,7 @@  discard block
 block discarded – undo
6201 6201
 
6202 6202
     /**
6203 6203
      * @param string $str
6204
-     * @return bool|mixed|string
6204
+     * @return string
6205 6205
      */
6206 6206
     public function atBindFileContent($str = '')
6207 6207
     {
@@ -6258,8 +6258,8 @@  discard block
 block discarded – undo
6258 6258
     }
6259 6259
 
6260 6260
     /**
6261
-     * @param $str
6262
-     * @return bool|string
6261
+     * @param string $str
6262
+     * @return false|string
6263 6263
      */
6264 6264
     public function getExtFromFilename($str)
6265 6265
     {
@@ -6287,7 +6287,7 @@  discard block
 block discarded – undo
6287 6287
      * @param string $text Error message
6288 6288
      * @param string $file File where the error was detected
6289 6289
      * @param string $line Line number within $file
6290
-     * @return boolean
6290
+     * @return boolean|null
6291 6291
      */
6292 6292
     public function phpError($nr, $text, $file, $line)
6293 6293
     {
@@ -6339,7 +6339,7 @@  discard block
 block discarded – undo
6339 6339
      * @param string $text
6340 6340
      * @param string $line
6341 6341
      * @param string $output
6342
-     * @return bool
6342
+     * @return null|boolean
6343 6343
      */
6344 6344
     public function messageQuit(
6345 6345
         $msg = 'unspecified error',
@@ -6782,7 +6782,7 @@  discard block
 block discarded – undo
6782 6782
 
6783 6783
     /**
6784 6784
      * @param string $str
6785
-     * @return bool|mixed|string
6785
+     * @return string
6786 6786
      */
6787 6787
     public function atBindInclude($str = '')
6788 6788
     {
@@ -6834,7 +6834,7 @@  discard block
 block discarded – undo
6834 6834
      * @param $str
6835 6835
      * @param int $flags
6836 6836
      * @param string $encode
6837
-     * @return mixed
6837
+     * @return string
6838 6838
      */
6839 6839
     public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '')
6840 6840
     {
@@ -6844,7 +6844,7 @@  discard block
 block discarded – undo
6844 6844
     }
6845 6845
 
6846 6846
     /**
6847
-     * @param $string
6847
+     * @param string $string
6848 6848
      * @param bool $returnData
6849 6849
      * @return bool|mixed
6850 6850
      */
Please login to merge, or discard this patch.
manager/includes/extenders/modifiers.class.inc.php 1 patch
Doc Comments   +27 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /**
95 95
      * @param string $mode
96 96
      * @param string $modifiers
97
-     * @return bool|string
97
+     * @return false|string
98 98
      */
99 99
     public function _getDelim($mode,$modifiers) {
100 100
         $c = substr($modifiers,0,1);
@@ -131,6 +131,14 @@  discard block
 block discarded – undo
131 131
             return $opt;
132 132
         }
133 133
     }
134
+
135
+    /**
136
+     * @param string $mode
137
+     * @param false|string $delim
138
+     * @param string $modifiers
139
+     *
140
+     * @return string
141
+     */
134 142
     public function _getRemainModifiers($mode,$delim,$modifiers) {
135 143
         if($delim) {
136 144
             if($mode=='(')
@@ -158,6 +166,9 @@  discard block
 block discarded – undo
158 166
         return substr($string,strpos($string, $delim)+$len);
159 167
     }
160 168
 
169
+    /**
170
+     * @param string $modifiers
171
+     */
161 172
     public function splitEachModifiers($modifiers) {
162 173
         $modx = evolutionCMS();
163 174
 
@@ -227,6 +238,10 @@  discard block
 block discarded – undo
227 238
         return $result;
228 239
     }
229 240
 
241
+    /**
242
+     * @param string $key
243
+     * @param string $value
244
+     */
230 245
     public function parsePhx($key,$value,$modifiers)
231 246
     {
232 247
         $modx = evolutionCMS();
@@ -293,6 +308,10 @@  discard block
 block discarded – undo
293 308
         else                  return true;
294 309
     }
295 310
 
311
+    /**
312
+     * @param string $cmd
313
+     * @param string $opt
314
+     */
296 315
     public function getValueFromPreset($key, $value, $cmd, $opt)
297 316
     {
298 317
         $modx = evolutionCMS();
@@ -978,6 +997,9 @@  discard block
 block discarded – undo
978 997
         return $value;
979 998
     }
980 999
 
1000
+    /**
1001
+     * @param string $cmd
1002
+     */
981 1003
     public function includeMdfFile($cmd) {
982 1004
         $modx = evolutionCMS();
983 1005
         $key = $this->key;
@@ -1133,6 +1155,10 @@  discard block
 block discarded – undo
1133 1155
     }
1134 1156
 
1135 1157
     // Sets a placeholder variable which can only be access by Modifiers
1158
+
1159
+    /**
1160
+     * @param string $value
1161
+     */
1136 1162
     public function setModifiersVariable($key, $value) {
1137 1163
         if ($key != 'phx' && $key != 'dummy') $this->placeholders[$key] = $value;
1138 1164
     }
Please login to merge, or discard this patch.