Completed
Push — develop ( 5613ed...d17f77 )
by Maxim
11:03 queued 05:33
created
manager/includes/extenders/dbapi.mysql.class.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -554,6 +554,7 @@  discard block
 block discarded – undo
554 554
      * @name:  getColumn
555 555
      * @desc:  returns an array of the values found on colun $name
556 556
      * @param: $dsq - dataset or query string
557
+     * @param string $name
557 558
      */
558 559
     public function getColumn($name, $dsq)
559 560
     {
@@ -720,6 +721,9 @@  discard block
 block discarded – undo
720 721
         return $result;
721 722
     }
722 723
 
724
+    /**
725
+     * @param string $table_name
726
+     */
723 727
     public function optimize($table_name)
724 728
     {
725 729
         $rs = $this->query("OPTIMIZE TABLE {$table_name}");
Please login to merge, or discard this patch.
manager/includes/extenders/dbapi.mysqli.class.inc.php 1 patch
Doc Comments   +8 added lines, -8 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
     {
@@ -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/modifiers.class.inc.php 1 patch
Doc Comments   +25 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @param string $mode
97 97
      * @param string $modifiers
98
-     * @return bool|string
98
+     * @return false|string
99 99
      */
100 100
     public function _getDelim($mode,$modifiers) {
101 101
         $c = substr($modifiers,0,1);
@@ -132,6 +132,14 @@  discard block
 block discarded – undo
132 132
             return $opt;
133 133
         }
134 134
     }
135
+
136
+    /**
137
+     * @param string $mode
138
+     * @param false|string $delim
139
+     * @param string $modifiers
140
+     *
141
+     * @return string
142
+     */
135 143
     public function _getRemainModifiers($mode,$delim,$modifiers) {
136 144
         if($delim) {
137 145
             if($mode=='(')
@@ -159,6 +167,9 @@  discard block
 block discarded – undo
159 167
         return substr($string,strpos($string, $delim)+$len);
160 168
     }
161 169
 
170
+    /**
171
+     * @param string $modifiers
172
+     */
162 173
     public function splitEachModifiers($modifiers) {
163 174
         global $modx;
164 175
 
@@ -228,6 +239,9 @@  discard block
 block discarded – undo
228 239
         return $result;
229 240
     }
230 241
 
242
+    /**
243
+     * @param string $key
244
+     */
231 245
     public function parsePhx($key,$value,$modifiers)
232 246
     {
233 247
         global $modx;
@@ -294,6 +308,9 @@  discard block
 block discarded – undo
294 308
         else                  return true;
295 309
     }
296 310
 
311
+    /**
312
+     * @param string $cmd
313
+     */
297 314
     public function getValueFromPreset($key, $value, $cmd, $opt)
298 315
     {
299 316
         global $modx;
@@ -979,6 +996,9 @@  discard block
 block discarded – undo
979 996
         return $value;
980 997
     }
981 998
 
999
+    /**
1000
+     * @param string $cmd
1001
+     */
982 1002
     public function includeMdfFile($cmd) {
983 1003
         global $modx;
984 1004
         $key = $this->key;
@@ -1134,6 +1154,10 @@  discard block
 block discarded – undo
1134 1154
     }
1135 1155
 
1136 1156
     // Sets a placeholder variable which can only be access by Modifiers
1157
+
1158
+    /**
1159
+     * @param string $value
1160
+     */
1137 1161
     public function setModifiersVariable($key, $value) {
1138 1162
         if ($key != 'phx' && $key != 'dummy') $this->placeholders[$key] = $value;
1139 1163
     }
Please login to merge, or discard this patch.
manager/includes/document.parser.class.inc.php 1 patch
Doc Comments   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * MODX_MANAGER_PATH."includes/extenders/ex_{$extname}.inc.php"
257 257
      * $extname - extension name in lowercase
258 258
      *
259
-     * @param $extname
259
+     * @param string $extname
260 260
      * @param bool $reload
261 261
      * @return bool
262 262
      */
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      * @param int $count_attempts
300 300
      * @param string $type $type
301 301
      * @param string $responseCode
302
-     * @return bool|null
302
+     * @return false|null
303 303
      * @global string $base_url
304 304
      * @global string $site_url
305 305
      */
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
     }
1002 1002
 
1003 1003
     /**
1004
-     * @param $contents
1004
+     * @param string $contents
1005 1005
      * @return mixed
1006 1006
      */
1007 1007
     public function RecoveryEscapedTags($contents)
@@ -1025,7 +1025,7 @@  discard block
 block discarded – undo
1025 1025
     }
1026 1026
 
1027 1027
     /**
1028
-     * @param $tstart
1028
+     * @param double $tstart
1029 1029
      * @return array
1030 1030
      */
1031 1031
     public function getTimerStats($tstart)
@@ -1777,7 +1777,7 @@  discard block
 block discarded – undo
1777 1777
 
1778 1778
     /**
1779 1779
      * Remove Comment-Tags from output like <!--@- Comment -@-->
1780
-     * @param $content
1780
+     * @param string $content
1781 1781
      * @param string $left
1782 1782
      * @param string $right
1783 1783
      * @return mixed
@@ -1950,7 +1950,7 @@  discard block
 block discarded – undo
1950 1950
     /**
1951 1951
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
1952 1952
      *
1953
-     * @param $content
1953
+     * @param string $content
1954 1954
      * @return string
1955 1955
      * @internal param string $documentSource
1956 1956
      */
@@ -2984,7 +2984,7 @@  discard block
 block discarded – undo
2984 2984
 
2985 2985
     /**
2986 2986
      * @param $templateID
2987
-     * @return mixed
2987
+     * @return string
2988 2988
      */
2989 2989
     public function _getTemplateCodeFromDB($templateID)
2990 2990
     {
@@ -3027,7 +3027,7 @@  discard block
 block discarded – undo
3027 3027
     /**
3028 3028
      * @param $id
3029 3029
      * @param int $top
3030
-     * @return mixed
3030
+     * @return string
3031 3031
      */
3032 3032
     public function getUltimateParentId($id, $top = 0)
3033 3033
     {
@@ -3358,7 +3358,7 @@  discard block
 block discarded – undo
3358 3358
      *
3359 3359
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3360 3360
      * @param int $id Element- / Resource-id
3361
-     * @return bool
3361
+     * @return false|null
3362 3362
      */
3363 3363
     public function lockElement($type, $id)
3364 3364
     {
@@ -3380,7 +3380,7 @@  discard block
 block discarded – undo
3380 3380
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3381 3381
      * @param int $id Element- / Resource-id
3382 3382
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3383
-     * @return bool
3383
+     * @return false|null
3384 3384
      */
3385 3385
     public function unlockElement($type, $id, $includeAllUsers = false)
3386 3386
     {
@@ -3488,7 +3488,7 @@  discard block
 block discarded – undo
3488 3488
      * @param array $params
3489 3489
      * @param string $msg
3490 3490
      * @param array $files
3491
-     * @return mixed
3491
+     * @return boolean
3492 3492
      */
3493 3493
     public function sendmail($params = array(), $msg = '', $files = array())
3494 3494
     {
@@ -3984,7 +3984,7 @@  discard block
 block discarded – undo
3984 3984
      *
3985 3985
      * @param string $type
3986 3986
      * @param bool $report
3987
-     * @return bool
3987
+     * @return boolean|null
3988 3988
      */
3989 3989
     public function clearCache($type = '', $report = false)
3990 3990
     {
@@ -4351,7 +4351,7 @@  discard block
 block discarded – undo
4351 4351
      * - Placeholders prefix. Default: '{'.
4352 4352
      * @param string $suffix {string}
4353 4353
      * - Placeholders suffix. Default: '}'.
4354
-     * @return bool|mixed|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4354
+     * @return false|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4355 4355
      * - Parsed chunk or false if $chunkArr is not array.
4356 4356
      */
4357 4357
     public function parseChunk($chunkName, $chunkArr, $prefix = '{', $suffix = '}')
@@ -5327,7 +5327,7 @@  discard block
 block discarded – undo
5327 5327
      * Remove event listener - only for use within the current execution cycle
5328 5328
      *
5329 5329
      * @param string $evtName
5330
-     * @return boolean
5330
+     * @return false|null
5331 5331
      */
5332 5332
     public function removeEventListener($evtName)
5333 5333
     {
@@ -5351,7 +5351,7 @@  discard block
 block discarded – undo
5351 5351
      *
5352 5352
      * @param string $evtName
5353 5353
      * @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.
5354
-     * @return boolean|array
5354
+     * @return false|null
5355 5355
      */
5356 5356
     public function invokeEvent($evtName, $extParams = array())
5357 5357
     {
@@ -5950,7 +5950,7 @@  discard block
 block discarded – undo
5950 5950
 
5951 5951
     /**
5952 5952
      * @param string $str
5953
-     * @return bool|mixed|string
5953
+     * @return string
5954 5954
      */
5955 5955
     public function atBindFileContent($str = '')
5956 5956
     {
@@ -6001,8 +6001,8 @@  discard block
 block discarded – undo
6001 6001
     }
6002 6002
 
6003 6003
     /**
6004
-     * @param $str
6005
-     * @return bool|string
6004
+     * @param string $str
6005
+     * @return false|string
6006 6006
      */
6007 6007
     public function getExtFromFilename($str)
6008 6008
     {
@@ -6030,7 +6030,7 @@  discard block
 block discarded – undo
6030 6030
      * @param string $text Error message
6031 6031
      * @param string $file File where the error was detected
6032 6032
      * @param string $line Line number within $file
6033
-     * @return boolean
6033
+     * @return boolean|null
6034 6034
      */
6035 6035
     public function phpError($nr, $text, $file, $line)
6036 6036
     {
@@ -6082,7 +6082,7 @@  discard block
 block discarded – undo
6082 6082
      * @param string $text
6083 6083
      * @param string $line
6084 6084
      * @param string $output
6085
-     * @return bool
6085
+     * @return null|boolean
6086 6086
      */
6087 6087
     public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '')
6088 6088
     {
@@ -6504,7 +6504,7 @@  discard block
 block discarded – undo
6504 6504
 
6505 6505
     /**
6506 6506
      * @param string $str
6507
-     * @return bool|mixed|string
6507
+     * @return string
6508 6508
      */
6509 6509
     public function atBindInclude($str = '')
6510 6510
     {
@@ -6555,7 +6555,7 @@  discard block
 block discarded – undo
6555 6555
      * @param $str
6556 6556
      * @param int $flags
6557 6557
      * @param string $encode
6558
-     * @return mixed
6558
+     * @return string
6559 6559
      */
6560 6560
     public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '')
6561 6561
     {
@@ -6564,7 +6564,7 @@  discard block
 block discarded – undo
6564 6564
     }
6565 6565
 
6566 6566
     /**
6567
-     * @param $string
6567
+     * @param string $string
6568 6568
      * @param bool $returnData
6569 6569
      * @return bool|mixed
6570 6570
      */
Please login to merge, or discard this patch.