Completed
Push — develop ( dd48c1...053968 )
by Maxim
06:38 queued 01:16
created
manager/includes/controls/datagrid.class.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public $cdelim;
74 74
 
75
+    /**
76
+     * @param null|string $id
77
+     */
75 78
     public function __construct($id, $ds, $pageSize = 20, $pageNumber = -1) {
76 79
 		global $__DataGridCnt;
77 80
 
@@ -207,6 +210,9 @@  discard block
 block discarded – undo
207 210
 
208 211
 	// format column values
209 212
 
213
+    /**
214
+     * @param integer $n
215
+     */
210 216
     public function RenderRowFnc($n, $row) {
211 217
 		if($this->_alt == 0) {
212 218
 			$Style = $this->_itemStyle;
Please login to merge, or discard this patch.
manager/includes/controls/datasetpager.class.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@  discard block
 block discarded – undo
31 31
     public $renderPagerFnc;
32 32
     public $renderPagerFncArgs;
33 33
 
34
+    /**
35
+     * @param boolean|string $id
36
+     */
34 37
     public function __construct($id, $ds, $pageSize = 10, $pageNumber = -1) {
35 38
 		global $_PAGE; // use view state object
36 39
 
@@ -77,6 +80,9 @@  discard block
 block discarded – undo
77 80
 		$this->pageSize = $ps;
78 81
 	}
79 82
 
83
+    /**
84
+     * @param DataGrid $fncName
85
+     */
80 86
     public function setRenderRowFnc($fncName, $args = "") {
81 87
 		$this->renderRowFnc = &$fncName;
82 88
 		$this->renderRowFncArgs = $args;    // extra agruments
Please login to merge, or discard this patch.
manager/includes/document.parser.class.inc.php 1 patch
Doc Comments   +26 added lines, -26 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
302
+     * @return false|null
303 303
      * @global string $base_url
304 304
      * @global string $site_url
305 305
      */
@@ -999,7 +999,7 @@  discard block
 block discarded – undo
999 999
     }
1000 1000
 
1001 1001
     /**
1002
-     * @param $contents
1002
+     * @param string $contents
1003 1003
      * @return mixed
1004 1004
      */
1005 1005
     public function RecoveryEscapedTags($contents)
@@ -1023,7 +1023,7 @@  discard block
 block discarded – undo
1023 1023
     }
1024 1024
 
1025 1025
     /**
1026
-     * @param $tstart
1026
+     * @param double $tstart
1027 1027
      * @return array
1028 1028
      */
1029 1029
     public function getTimerStats($tstart)
@@ -1775,7 +1775,7 @@  discard block
 block discarded – undo
1775 1775
 
1776 1776
     /**
1777 1777
      * Remove Comment-Tags from output like <!--@- Comment -@-->
1778
-     * @param $content
1778
+     * @param string $content
1779 1779
      * @param string $left
1780 1780
      * @param string $right
1781 1781
      * @return mixed
@@ -1948,7 +1948,7 @@  discard block
 block discarded – undo
1948 1948
     /**
1949 1949
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
1950 1950
      *
1951
-     * @param $content
1951
+     * @param string $content
1952 1952
      * @return string
1953 1953
      * @internal param string $documentSource
1954 1954
      */
@@ -2980,7 +2980,7 @@  discard block
 block discarded – undo
2980 2980
 
2981 2981
     /**
2982 2982
      * @param $templateID
2983
-     * @return mixed
2983
+     * @return string
2984 2984
      */
2985 2985
     public function _getTemplateCodeFromDB($templateID)
2986 2986
     {
@@ -3021,9 +3021,9 @@  discard block
 block discarded – undo
3021 3021
     }
3022 3022
 
3023 3023
     /**
3024
-     * @param $id
3024
+     * @param integer $id
3025 3025
      * @param int $top
3026
-     * @return mixed
3026
+     * @return string
3027 3027
      */
3028 3028
     public function getUltimateParentId($id, $top = 0)
3029 3029
     {
@@ -3354,7 +3354,7 @@  discard block
 block discarded – undo
3354 3354
      *
3355 3355
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3356 3356
      * @param int $id Element- / Resource-id
3357
-     * @return bool
3357
+     * @return false|null
3358 3358
      */
3359 3359
     public function lockElement($type, $id)
3360 3360
     {
@@ -3376,7 +3376,7 @@  discard block
 block discarded – undo
3376 3376
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3377 3377
      * @param int $id Element- / Resource-id
3378 3378
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3379
-     * @return bool
3379
+     * @return false|null
3380 3380
      */
3381 3381
     public function unlockElement($type, $id, $includeAllUsers = false)
3382 3382
     {
@@ -3484,7 +3484,7 @@  discard block
 block discarded – undo
3484 3484
      * @param array $params
3485 3485
      * @param string $msg
3486 3486
      * @param array $files
3487
-     * @return mixed
3487
+     * @return boolean
3488 3488
      */
3489 3489
     public function sendmail($params = array(), $msg = '', $files = array())
3490 3490
     {
@@ -3980,7 +3980,7 @@  discard block
 block discarded – undo
3980 3980
      *
3981 3981
      * @param string $type
3982 3982
      * @param bool $report
3983
-     * @return bool
3983
+     * @return boolean|null
3984 3984
      */
3985 3985
     public function clearCache($type = '', $report = false)
3986 3986
     {
@@ -5024,7 +5024,7 @@  discard block
 block discarded – undo
5024 5024
      * Returns a record for the web user
5025 5025
      *
5026 5026
      * @param int $uid
5027
-     * @return boolean|string
5027
+     * @return boolean|null
5028 5028
      */
5029 5029
     public function getWebUserInfo($uid)
5030 5030
     {
@@ -5322,7 +5322,7 @@  discard block
 block discarded – undo
5322 5322
      * Remove event listener - only for use within the current execution cycle
5323 5323
      *
5324 5324
      * @param string $evtName
5325
-     * @return boolean
5325
+     * @return false|null
5326 5326
      */
5327 5327
     public function removeEventListener($evtName)
5328 5328
     {
@@ -5346,7 +5346,7 @@  discard block
 block discarded – undo
5346 5346
      *
5347 5347
      * @param string $evtName
5348 5348
      * @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.
5349
-     * @return boolean|array
5349
+     * @return false|null
5350 5350
      */
5351 5351
     public function invokeEvent($evtName, $extParams = array())
5352 5352
     {
@@ -5767,7 +5767,7 @@  discard block
 block discarded – undo
5767 5767
 
5768 5768
     /**
5769 5769
      * @param string $string
5770
-     * @return mixed|string
5770
+     * @return string
5771 5771
      */
5772 5772
     public function removeSanitizeSeed($string = '')
5773 5773
     {
@@ -5782,7 +5782,7 @@  discard block
 block discarded – undo
5782 5782
 
5783 5783
     /**
5784 5784
      * @param string $content
5785
-     * @return mixed|string
5785
+     * @return string
5786 5786
      */
5787 5787
     public function cleanUpMODXTags($content = '')
5788 5788
     {
@@ -5945,7 +5945,7 @@  discard block
 block discarded – undo
5945 5945
 
5946 5946
     /**
5947 5947
      * @param string $str
5948
-     * @return bool|mixed|string
5948
+     * @return string
5949 5949
      */
5950 5950
     public function atBindFileContent($str = '')
5951 5951
     {
@@ -5996,8 +5996,8 @@  discard block
 block discarded – undo
5996 5996
     }
5997 5997
 
5998 5998
     /**
5999
-     * @param $str
6000
-     * @return bool|string
5999
+     * @param string $str
6000
+     * @return false|string
6001 6001
      */
6002 6002
     public function getExtFromFilename($str)
6003 6003
     {
@@ -6025,7 +6025,7 @@  discard block
 block discarded – undo
6025 6025
      * @param string $text Error message
6026 6026
      * @param string $file File where the error was detected
6027 6027
      * @param string $line Line number within $file
6028
-     * @return boolean
6028
+     * @return boolean|null
6029 6029
      */
6030 6030
     public function phpError($nr, $text, $file, $line)
6031 6031
     {
@@ -6077,7 +6077,7 @@  discard block
 block discarded – undo
6077 6077
      * @param string $text
6078 6078
      * @param string $line
6079 6079
      * @param string $output
6080
-     * @return bool
6080
+     * @return null|boolean
6081 6081
      */
6082 6082
     public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '')
6083 6083
     {
@@ -6499,7 +6499,7 @@  discard block
 block discarded – undo
6499 6499
 
6500 6500
     /**
6501 6501
      * @param string $str
6502
-     * @return bool|mixed|string
6502
+     * @return string
6503 6503
      */
6504 6504
     public function atBindInclude($str = '')
6505 6505
     {
@@ -6550,7 +6550,7 @@  discard block
 block discarded – undo
6550 6550
      * @param $str
6551 6551
      * @param int $flags
6552 6552
      * @param string $encode
6553
-     * @return mixed
6553
+     * @return string
6554 6554
      */
6555 6555
     public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '')
6556 6556
     {
@@ -6559,7 +6559,7 @@  discard block
 block discarded – undo
6559 6559
     }
6560 6560
 
6561 6561
     /**
6562
-     * @param $string
6562
+     * @param string $string
6563 6563
      * @param bool $returnData
6564 6564
      * @return bool|mixed
6565 6565
      */
Please login to merge, or discard this patch.
manager/includes/extenders/export.class.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
 		return $rs;
103 103
 	}
104 104
 
105
+    /**
106
+     * @param string $filepath
107
+     */
105 108
     public function makeFile($docid, $filepath)
106 109
 	{
107 110
 		global  $modx,$_lang;
@@ -250,6 +253,9 @@  discard block
 block discarded – undo
250 253
 		return implode("\n", $this->output);
251 254
 	}
252 255
 
256
+    /**
257
+     * @param string $url
258
+     */
253 259
     public function curl_get_contents($url, $timeout = 30 )
254 260
     {
255 261
     	if(!function_exists('curl_init')) return @file_get_contents($url);
Please login to merge, or discard this patch.
manager/includes/extenders/maketable.class.php 1 patch
Doc Comments   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	/**
86 86
 	 * Sets the class attribute of the main HTML TABLE.
87 87
 	 *
88
-	 * @param $value A class for the main HTML TABLE.
88
+	 * @param string $value A class for the main HTML TABLE.
89 89
 	 */
90 90
     public function setTableClass($value) {
91 91
 		$this->tableClass= $value;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	/**
131 131
 	 * Sets the class attribute of regular table rows.
132 132
 	 *
133
-	 * @param $value A class for regular table rows.
133
+	 * @param string $value A class for regular table rows.
134 134
 	 */
135 135
     public function setRowRegularClass($value) {
136 136
 		$this->rowRegularClass= $value;
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 	/**
140 140
 	 * Sets the class attribute of alternate table rows.
141 141
 	 *
142
-	 * @param $value A class for alternate table rows.
142
+	 * @param string $value A class for alternate table rows.
143 143
 	 */
144 144
     public function setRowAlternateClass($value) {
145 145
 		$this->rowAlternateClass= $value;
@@ -215,6 +215,7 @@  discard block
 block discarded – undo
215 215
 	 *
216 216
 	 * @param $value An Array of column widths in the order of the keys in the
217 217
 	 * 			source table array.
218
+	 * @param string[] $widthArray
218 219
 	 */
219 220
     public function setColumnWidths($widthArray) {
220 221
 		$this->columnWidths= $widthArray;
@@ -242,7 +243,7 @@  discard block
 block discarded – undo
242 243
 	/**
243 244
 	 * Retrieves the width of a specific table column by index position.
244 245
 	 *
245
-	 * @param $columnPosition The index of the column to get the width for.
246
+	 * @param integer $columnPosition The index of the column to get the width for.
246 247
 	 */
247 248
     public function getColumnWidth($columnPosition) {
248 249
 		$currentWidth= '';
@@ -256,6 +257,7 @@  discard block
 block discarded – undo
256 257
 	 * Determines what class the current row should have applied.
257 258
 	 *
258 259
 	 * @param $value The position of the current row being rendered.
260
+	 * @param integer $position
259 261
 	 */
260 262
     public function determineRowClass($position) {
261 263
 		switch ($this->rowAlternatingScheme) {
Please login to merge, or discard this patch.
manager/includes/extenders/modifiers.class.inc.php 1 patch
Doc Comments   +35 added lines patch added patch discarded remove patch
@@ -30,6 +30,11 @@  discard block
 block discarded – undo
30 30
         $this->condModifiers = '=,is,eq,equals,ne,neq,notequals,isnot,isnt,not,%,isempty,isnotempty,isntempty,>=,gte,eg,gte,greaterthan,>,gt,isgreaterthan,isgt,lowerthan,<,lt,<=,lte,islte,islowerthan,islt,el,find,in,inarray,in_array,fnmatch,wcard,wcard_match,wildcard,wildcard_match,is_file,is_dir,file_exists,is_readable,is_writable,is_image,regex,preg,preg_match,memberof,mo,isinrole,ir';
31 31
     }
32 32
 
33
+    /**
34
+     * @param string $key
35
+     * @param string $value
36
+     * @param string|false $modifiers
37
+     */
33 38
     public function phxFilter($key,$value,$modifiers)
34 39
     {
35 40
         global $modx;
@@ -51,6 +56,10 @@  discard block
 block discarded – undo
51 56
         return $value;
52 57
     }
53 58
 
59
+    /**
60
+     * @param string $mode
61
+     * @param string $modifiers
62
+     */
54 63
     public function _getDelim($mode,$modifiers) {
55 64
         $c = substr($modifiers,0,1);
56 65
         if(!in_array($c, array('"', "'", '`')) ) return false;
@@ -62,6 +71,11 @@  discard block
 block discarded – undo
62 71
         return  $c;
63 72
     }
64 73
 
74
+    /**
75
+     * @param string $mode
76
+     * @param false|string $delim
77
+     * @param string $modifiers
78
+     */
65 79
     public function _getOpt($mode,$delim,$modifiers) {
66 80
         if($delim) {
67 81
             if($mode=='(') return substr($modifiers,1,strpos($modifiers, $delim . ')' )-1);
@@ -80,6 +94,14 @@  discard block
 block discarded – undo
80 94
             return $opt;
81 95
         }
82 96
     }
97
+
98
+    /**
99
+     * @param string $mode
100
+     * @param false|string $delim
101
+     * @param string $modifiers
102
+     *
103
+     * @return string
104
+     */
83 105
     public function _getRemainModifiers($mode,$delim,$modifiers) {
84 106
         if($delim) {
85 107
             if($mode=='(')
@@ -107,6 +129,9 @@  discard block
 block discarded – undo
107 129
         return substr($string,strpos($string, $delim)+$len);
108 130
     }
109 131
 
132
+    /**
133
+     * @param string $modifiers
134
+     */
110 135
     public function splitEachModifiers($modifiers) {
111 136
         global $modx;
112 137
 
@@ -242,6 +267,9 @@  discard block
 block discarded – undo
242 267
         else                  return true;
243 268
     }
244 269
 
270
+    /**
271
+     * @param string $cmd
272
+     */
245 273
     public function getValueFromPreset($key, $value, $cmd, $opt)
246 274
     {
247 275
         global $modx;
@@ -927,6 +955,9 @@  discard block
 block discarded – undo
927 955
         return $value;
928 956
     }
929 957
 
958
+    /**
959
+     * @param string $cmd
960
+     */
930 961
     public function includeMdfFile($cmd) {
931 962
         global $modx;
932 963
         $key = $this->key;
@@ -1082,6 +1113,10 @@  discard block
 block discarded – undo
1082 1113
     }
1083 1114
 
1084 1115
     // Sets a placeholder variable which can only be access by Modifiers
1116
+
1117
+    /**
1118
+     * @param string $value
1119
+     */
1085 1120
     public function setModifiersVariable($key, $value) {
1086 1121
         if ($key != 'phx' && $key != 'dummy') $this->placeholders[$key] = $value;
1087 1122
     }
Please login to merge, or discard this patch.
manager/includes/menu.class.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -41,6 +41,10 @@
 block discarded – undo
41 41
         $this->menu = $new;
42 42
     }
43 43
 
44
+    /**
45
+     * @param string $parentid
46
+     * @param integer $level
47
+     */
44 48
     public function DrawSub($parentid, $level)
45 49
     {
46 50
         global $modx;
Please login to merge, or discard this patch.
manager/processors/cache_sync.class.processor.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,11 +19,17 @@  discard block
 block discarded – undo
19 19
         $this->request_time = $_SERVER['REQUEST_TIME'] + $modx->config['server_offset_time'];
20 20
     }
21 21
 
22
+    /**
23
+     * @param string $path
24
+     */
22 25
     public function setCachepath($path)
23 26
     {
24 27
         $this->cachePath = $path;
25 28
     }
26 29
 
30
+    /**
31
+     * @param boolean $bool
32
+     */
27 33
     public function setReport($bool)
28 34
     {
29 35
         $this->showReport = $bool;
@@ -46,6 +52,9 @@  discard block
 block discarded – undo
46 52
         return str_replace($q1, $q2, $s);
47 53
     }
48 54
 
55
+    /**
56
+     * @return string
57
+     */
49 58
     public function getParents($id, $path = '')
50 59
     { // modx:returns child's parent
51 60
         global $modx;
@@ -149,6 +158,9 @@  discard block
 block discarded – undo
149 158
         }
150 159
     }
151 160
 
161
+    /**
162
+     * @return string
163
+     */
152 164
     public function getCacheRefreshTime()
153 165
     {
154 166
         global $modx;
@@ -191,7 +203,7 @@  discard block
 block discarded – undo
191 203
     /**
192 204
      * build siteCache file
193 205
      * @param  DocumentParser $modx
194
-     * @return boolean success
206
+     * @return null|boolean success
195 207
      */
196 208
     public function buildCache($modx)
197 209
     {
Please login to merge, or discard this patch.
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.