Completed
Push — develop ( d568f8...c061fc )
by Agel_Nash
06:25
created
manager/includes/paginate.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
     /**
150 150
      * This function returns the current page number.
151 151
      *
152
-     * @return int
152
+     * @return string
153 153
      */
154 154
     public function getCurrentPage()
155 155
     {
Please login to merge, or discard this patch.
manager/includes/protect.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 // sanitize array
17 17
 if (!function_exists('modx_sanitize_gpc')) {
18 18
     /**
19
-     * @param array|string $values
19
+     * @param string $values
20 20
      * @param int $depth
21 21
      * @return array|string
22 22
      */
Please login to merge, or discard this patch.
manager/includes/tmplvars.commands.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
  *
164 164
  * @param string $param
165 165
  * @param array $tvsArray
166
- * @return mixed
166
+ * @return string
167 167
  */
168 168
 function parseTvValues($param, $tvsArray)
169 169
 {
Please login to merge, or discard this patch.
manager/includes/tmplvars.format.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@
 block discarded – undo
349 349
 /**
350 350
  * returns an array if a delimiter is present. returns array is a recordset is present
351 351
  *
352
- * @param $src
352
+ * @param string $src
353 353
  * @param string $delim
354 354
  * @param string $type
355 355
  * @param bool $columns
Please login to merge, or discard this patch.
manager/processors/cache_sync.class.processor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     /**
238 238
      * build siteCache file
239 239
      * @param DocumentParser $modx
240
-     * @return boolean success
240
+     * @return null|boolean success
241 241
      */
242 242
     public function buildCache($modx)
243 243
     {
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.
install/cli-install.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      * duplicate of method in documentParser class
131 131
      *
132 132
      * @param string $propertyString
133
-     * @return array
133
+     * @return string
134 134
      */
135 135
     function parseProperties($propertyString) {
136 136
         $parameter= array ();
Please login to merge, or discard this patch.
manager/includes/document.parser.class.inc.php 1 patch
Doc Comments   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      * MODX_MANAGER_PATH."includes/extenders/ex_{$extname}.inc.php"
277 277
      * $extname - extension name in lowercase
278 278
      *
279
-     * @param $extname
279
+     * @param string $extname
280 280
      * @param bool $reload
281 281
      * @return bool
282 282
      */
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      * @param int $count_attempts
320 320
      * @param string $type $type
321 321
      * @param string $responseCode
322
-     * @return bool|null
322
+     * @return false|null
323 323
      * @global string $base_url
324 324
      * @global string $site_url
325 325
      */
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
     }
1022 1022
 
1023 1023
     /**
1024
-     * @param $contents
1024
+     * @param string $contents
1025 1025
      * @return mixed
1026 1026
      */
1027 1027
     public function RecoveryEscapedTags($contents)
@@ -1045,7 +1045,7 @@  discard block
 block discarded – undo
1045 1045
     }
1046 1046
 
1047 1047
     /**
1048
-     * @param $tstart
1048
+     * @param double $tstart
1049 1049
      * @return array
1050 1050
      */
1051 1051
     public function getTimerStats($tstart)
@@ -1813,7 +1813,7 @@  discard block
 block discarded – undo
1813 1813
 
1814 1814
     /**
1815 1815
      * Remove Comment-Tags from output like <!--@- Comment -@-->
1816
-     * @param $content
1816
+     * @param string $content
1817 1817
      * @param string $left
1818 1818
      * @param string $right
1819 1819
      * @return mixed
@@ -1986,7 +1986,7 @@  discard block
 block discarded – undo
1986 1986
     /**
1987 1987
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
1988 1988
      *
1989
-     * @param $content
1989
+     * @param string $content
1990 1990
      * @return string
1991 1991
      * @internal param string $documentSource
1992 1992
      */
@@ -3022,7 +3022,7 @@  discard block
 block discarded – undo
3022 3022
 
3023 3023
     /**
3024 3024
      * @param $templateID
3025
-     * @return mixed
3025
+     * @return string
3026 3026
      */
3027 3027
     public function _getTemplateCodeFromDB($templateID)
3028 3028
     {
@@ -3065,7 +3065,7 @@  discard block
 block discarded – undo
3065 3065
     /**
3066 3066
      * @param $id
3067 3067
      * @param int $top
3068
-     * @return mixed
3068
+     * @return string
3069 3069
      */
3070 3070
     public function getUltimateParentId($id, $top = 0)
3071 3071
     {
@@ -3396,7 +3396,7 @@  discard block
 block discarded – undo
3396 3396
      *
3397 3397
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3398 3398
      * @param int $id Element- / Resource-id
3399
-     * @return bool
3399
+     * @return false|null
3400 3400
      */
3401 3401
     public function lockElement($type, $id)
3402 3402
     {
@@ -3418,7 +3418,7 @@  discard block
 block discarded – undo
3418 3418
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3419 3419
      * @param int $id Element- / Resource-id
3420 3420
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3421
-     * @return bool
3421
+     * @return false|null
3422 3422
      */
3423 3423
     public function unlockElement($type, $id, $includeAllUsers = false)
3424 3424
     {
@@ -3526,7 +3526,7 @@  discard block
 block discarded – undo
3526 3526
      * @param array $params
3527 3527
      * @param string $msg
3528 3528
      * @param array $files
3529
-     * @return mixed
3529
+     * @return boolean
3530 3530
      */
3531 3531
     public function sendmail($params = array(), $msg = '', $files = array())
3532 3532
     {
@@ -3930,7 +3930,7 @@  discard block
 block discarded – undo
3930 3930
      *                     Default: 1
3931 3931
      * @param string $fields List of fields
3932 3932
      *                       Default: id, pagetitle, description, alias
3933
-     * @return boolean|array
3933
+     * @return string
3934 3934
      */
3935 3935
     public function getPageInfo($pageid = -1, $active = 1, $fields = 'id, pagetitle, description, alias')
3936 3936
     {
@@ -4022,7 +4022,7 @@  discard block
 block discarded – undo
4022 4022
      *
4023 4023
      * @param string $type
4024 4024
      * @param bool $report
4025
-     * @return bool
4025
+     * @return boolean|null
4026 4026
      */
4027 4027
     public function clearCache($type = '', $report = false)
4028 4028
     {
@@ -4389,7 +4389,7 @@  discard block
 block discarded – undo
4389 4389
      * - Placeholders prefix. Default: '{'.
4390 4390
      * @param string $suffix {string}
4391 4391
      * - Placeholders suffix. Default: '}'.
4392
-     * @return bool|mixed|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4392
+     * @return false|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4393 4393
      * - Parsed chunk or false if $chunkArr is not array.
4394 4394
      */
4395 4395
     public function parseChunk($chunkName, $chunkArr, $prefix = '{', $suffix = '}')
@@ -5365,7 +5365,7 @@  discard block
 block discarded – undo
5365 5365
      * Remove event listener - only for use within the current execution cycle
5366 5366
      *
5367 5367
      * @param string $evtName
5368
-     * @return boolean
5368
+     * @return false|null
5369 5369
      */
5370 5370
     public function removeEventListener($evtName)
5371 5371
     {
@@ -5389,7 +5389,7 @@  discard block
 block discarded – undo
5389 5389
      *
5390 5390
      * @param string $evtName
5391 5391
      * @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.
5392
-     * @return boolean|array
5392
+     * @return false|null
5393 5393
      */
5394 5394
     public function invokeEvent($evtName, $extParams = array())
5395 5395
     {
@@ -5988,7 +5988,7 @@  discard block
 block discarded – undo
5988 5988
 
5989 5989
     /**
5990 5990
      * @param string $str
5991
-     * @return bool|mixed|string
5991
+     * @return string
5992 5992
      */
5993 5993
     public function atBindFileContent($str = '')
5994 5994
     {
@@ -6039,8 +6039,8 @@  discard block
 block discarded – undo
6039 6039
     }
6040 6040
 
6041 6041
     /**
6042
-     * @param $str
6043
-     * @return bool|string
6042
+     * @param string $str
6043
+     * @return false|string
6044 6044
      */
6045 6045
     public function getExtFromFilename($str)
6046 6046
     {
@@ -6068,7 +6068,7 @@  discard block
 block discarded – undo
6068 6068
      * @param string $text Error message
6069 6069
      * @param string $file File where the error was detected
6070 6070
      * @param string $line Line number within $file
6071
-     * @return boolean
6071
+     * @return boolean|null
6072 6072
      */
6073 6073
     public function phpError($nr, $text, $file, $line)
6074 6074
     {
@@ -6120,7 +6120,7 @@  discard block
 block discarded – undo
6120 6120
      * @param string $text
6121 6121
      * @param string $line
6122 6122
      * @param string $output
6123
-     * @return bool
6123
+     * @return null|boolean
6124 6124
      */
6125 6125
     public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '')
6126 6126
     {
@@ -6542,7 +6542,7 @@  discard block
 block discarded – undo
6542 6542
 
6543 6543
     /**
6544 6544
      * @param string $str
6545
-     * @return bool|mixed|string
6545
+     * @return string
6546 6546
      */
6547 6547
     public function atBindInclude($str = '')
6548 6548
     {
@@ -6593,7 +6593,7 @@  discard block
 block discarded – undo
6593 6593
      * @param $str
6594 6594
      * @param int $flags
6595 6595
      * @param string $encode
6596
-     * @return mixed
6596
+     * @return string
6597 6597
      */
6598 6598
     public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '')
6599 6599
     {
@@ -6602,7 +6602,7 @@  discard block
 block discarded – undo
6602 6602
     }
6603 6603
 
6604 6604
     /**
6605
-     * @param $string
6605
+     * @param string $string
6606 6606
      * @param bool $returnData
6607 6607
      * @return bool|mixed
6608 6608
      */
Please login to merge, or discard this patch.