Completed
Push — develop ( dd48c1...053968 )
by Maxim
06:38 queued 01:16
created
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.
manager/includes/extenders/dbapi.mysqli.class.inc.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -408,6 +408,9 @@  discard block
 block discarded – undo
408 408
         return $out;
409 409
     }
410 410
 
411
+    /**
412
+     * @param string $name
413
+     */
411 414
     public function getColumn($name, $dsq)
412 415
     {
413 416
         if (!is_object($dsq)) {
@@ -506,6 +509,9 @@  discard block
 block discarded – undo
506 509
         return $rsArray;
507 510
     }
508 511
 
512
+    /**
513
+     * @return string
514
+     */
509 515
     public function getVersion()
510 516
     {
511 517
         return $this->conn->server_info;
@@ -527,6 +533,9 @@  discard block
 block discarded – undo
527 533
         return $result;
528 534
     }
529 535
 
536
+    /**
537
+     * @param string $table_name
538
+     */
530 539
     public function optimize($table_name)
531 540
     {
532 541
         $rs = $this->query("OPTIMIZE TABLE {$table_name}");
Please login to merge, or discard this patch.
manager/media/rss/rss_parse.inc 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -332,6 +332,10 @@  discard block
 block discarded – undo
332 332
     }
333 333
 
334 334
     // smart append - field and namespace aware
335
+
336
+    /**
337
+     * @param string $el
338
+     */
335 339
     function append($el, $text) {
336 340
         if (!$el) {
337 341
             return;
@@ -447,6 +451,10 @@  discard block
 block discarded – undo
447 451
     /**
448 452
     * return XML parser, and possibly re-encoded source
449 453
     *
454
+    * @param string $source
455
+    * @param string $out_enc
456
+    * @param string|null $in_enc
457
+    * @param boolean $detect
450 458
     */
451 459
     function create_parser($source, $out_enc, $in_enc, $detect) {
452 460
         if ( substr(phpversion(),0,1) == 5) {
@@ -556,6 +564,9 @@  discard block
 block discarded – undo
556 564
         }
557 565
     }
558 566
 
567
+    /**
568
+     * @param integer $lvl
569
+     */
559 570
     function error ($errormsg, $lvl=E_USER_WARNING) {
560 571
         // append PHP's error message if track_errors enabled
561 572
         if ( isset($php_errormsg) ) {
@@ -591,6 +602,9 @@  discard block
 block discarded – undo
591 602
 	define('CASE_LOWER', 0);
592 603
 
593 604
 
605
+	/**
606
+	 * @param integer $case
607
+	 */
594 608
 	function array_change_key_case($array, $case=CASE_LOWER) {
595 609
         $output = array();
596 610
         switch($case){
Please login to merge, or discard this patch.