Completed
Push — develop ( 75b835...a38a21 )
by Maxim
09:33 queued 04:23
created
manager/includes/extenders/manager.api.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -192,6 +192,9 @@
 block discarded – undo
192 192
 		return $_;
193 193
 	}
194 194
 
195
+	/**
196
+	 * @param string $checksum
197
+	 */
195 198
 	function setSystemChecksum($checksum) {
196 199
 		global $modx;
197 200
 		$tbl_system_settings = $modx->getFullTableName('system_settings');
Please login to merge, or discard this patch.
manager/includes/extenders/phpass.class.inc.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
         $this->random_state = microtime() . uniqid(mt_rand(), TRUE);
44 44
     }
45 45
 
46
+    /**
47
+     * @param integer $count
48
+     */
46 49
     function get_random_bytes($count)
47 50
     {
48 51
         $output = '';
@@ -66,6 +69,9 @@  discard block
 block discarded – undo
66 69
         return $output;
67 70
     }
68 71
 
72
+    /**
73
+     * @param integer $count
74
+     */
69 75
     function encode64($input, $count)
70 76
     {
71 77
         $output = '';
@@ -89,6 +95,9 @@  discard block
 block discarded – undo
89 95
         return $output;
90 96
     }
91 97
 
98
+    /**
99
+     * @param string $input
100
+     */
92 101
     function gensalt_private($input)
93 102
     {
94 103
         $output = '$P$';
@@ -137,6 +146,9 @@  discard block
 block discarded – undo
137 146
         return $output;
138 147
     }
139 148
 
149
+    /**
150
+     * @param string $input
151
+     */
140 152
     function gensalt_extended($input)
141 153
     {
142 154
         $count_log2 = min($this->iteration_count_log2 + 8, 24);
@@ -155,6 +167,9 @@  discard block
 block discarded – undo
155 167
         return $output;
156 168
     }
157 169
 
170
+    /**
171
+     * @param string $input
172
+     */
158 173
     function gensalt_blowfish($input)
159 174
     {
160 175
         // This one needs to use a different order of characters and a
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
@@ -40,6 +40,10 @@
 block discarded – undo
40 40
         $this->menu = $new;
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $parentid
45
+     * @param integer $level
46
+     */
43 47
     function DrawSub($parentid, $level)
44 48
     {
45 49
         global $modx;
Please login to merge, or discard this patch.
manager/includes/protect.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -14,6 +14,10 @@
 block discarded – undo
14 14
 
15 15
 // sanitize array
16 16
 if (!function_exists('modx_sanitize_gpc')) {
17
+
18
+    /**
19
+     * @param string $values
20
+     */
17 21
     function modx_sanitize_gpc(& $values, $depth=0) {
18 22
         if(200 < $depth) exit('GPC Array nested too deep!');
19 23
         if(is_array($values)) {
Please login to merge, or discard this patch.
manager/includes/tmplvars.commands.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
 }
126 126
 
127 127
 // ParseCommand - separate @ cmd from params
128
+/**
129
+ * @param string $binding_string
130
+ */
128 131
 function ParseCommand($binding_string)
129 132
 {
130 133
     global $BINDINGS;
@@ -142,6 +145,9 @@  discard block
 block discarded – undo
142 145
 }
143 146
 
144 147
 // Parse MODX Template-Variables
148
+/**
149
+ * @return string
150
+ */
145 151
 function parseTvValues($param, $tvsArray)
146 152
 {
147 153
 	global $modx;
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/core/browser.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -666,6 +666,9 @@  discard block
 block discarded – undo
666 666
             return json_encode(array('version' => false));
667 667
     }
668 668
 
669
+    /**
670
+     * @param string $dir
671
+     */
669 672
     protected function moveUploadFile($file, $dir) {
670 673
         $message = $this->checkUploadedFile($file);
671 674
 
@@ -697,6 +700,9 @@  discard block
 block discarded – undo
697 700
         return "/" . basename($target);
698 701
     }
699 702
 
703
+    /**
704
+     * @param string $file
705
+     */
700 706
     protected function sendDefaultThumb($file=null) {
701 707
         if ($file !== null) {
702 708
             $ext = file::getExtension($file);
@@ -873,6 +879,9 @@  discard block
 block discarded – undo
873 879
         return "";
874 880
     }
875 881
 
882
+    /**
883
+     * @param string $message
884
+     */
876 885
     protected function errorMsg($message, array $data=null) {
877 886
         if (in_array($this->action, array("thumb", "upload", "download", "downloadDir")))
878 887
             die($this->label($message, $data));
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/core/uploader.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -385,6 +385,9 @@  discard block
 block discarded – undo
385 385
 	}
386 386
 
387 387
 
388
+	/**
389
+	 * @return string
390
+	 */
388 391
 	protected function normalizeFilename($filename) {
389 392
 		if ($this->getTransaliasSettings()) {
390 393
         		$format = strrchr($filename, ".");
@@ -394,6 +397,9 @@  discard block
 block discarded – undo
394 397
         	return $filename;
395 398
 	}
396 399
 
400
+	/**
401
+	 * @param string $dirname
402
+	 */
397 403
 	protected function normalizeDirname($dirname) {
398 404
         return $this->modx->stripAlias($dirname);
399 405
     }
@@ -506,6 +512,9 @@  discard block
 block discarded – undo
506 512
         return (is_dir($path) && is_readable($path)) ? $return : false;
507 513
     }
508 514
 
515
+    /**
516
+     * @param string $ext
517
+     */
509 518
     protected function validateExtension($ext, $type) {
510 519
         $ext = trim(strtolower($ext));
511 520
         if (!isset($this->types[$type]))
@@ -531,11 +540,17 @@  discard block
 block discarded – undo
531 540
         return in_array($ext, $exts);
532 541
     }
533 542
 
543
+    /**
544
+     * @return string
545
+     */
534 546
     protected function getTypeFromPath($path) {
535 547
         return preg_match('/^([^\/]*)\/.*$/', $path, $patt)
536 548
             ? $patt[1] : $path;
537 549
     }
538 550
 
551
+    /**
552
+     * @param string $path
553
+     */
539 554
     protected function removeTypeFromPath($path) {
540 555
         return preg_match('/^[^\/]*\/(.*)$/', $path, $patt)
541 556
             ? $patt[1] : "";
@@ -728,6 +743,9 @@  discard block
 block discarded – undo
728 743
         die;
729 744
     }
730 745
 
746
+    /**
747
+     * @param string $url
748
+     */
731 749
     protected function callBack($url, $message="") {
732 750
         $message = text::jsValue($message);
733 751
         $CKfuncNum = isset($this->opener['CKEditor']['funcNum'])
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/class_fastImage.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -183,6 +183,9 @@  discard block
 block discarded – undo
183 183
 	}
184 184
 
185 185
 
186
+	/**
187
+	 * @param integer $n
188
+	 */
186 189
 	private function getChars($n)
187 190
 	{
188 191
 		$response = null;
@@ -225,6 +228,9 @@  discard block
 block discarded – undo
225 228
 	}
226 229
 
227 230
 
231
+	/**
232
+	 * @param false|string $str
233
+	 */
228 234
 	private function readInt($str)
229 235
 	{
230 236
 		$size = unpack("C*", $str);
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/class_gd.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     * The parameter $bigger_size is the bigger dimension (width or height) of calculated sizes.
169 169
     * The other dimension (height or width) will be calculated autamaticaly
170 170
     * @param integer $bigger_size
171
-    * @return array */
171
+    * @return integer[] */
172 172
 
173 173
     public function get_prop_size($bigger_size) {
174 174
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     * no samo po edno (x ili y) izmerenie
256 256
     * @param integer $width
257 257
     * @param integer $height
258
-    * @return bool */
258
+    * @return gd */
259 259
 
260 260
     public function resize_overflow($width, $height) {
261 261
 
@@ -397,6 +397,12 @@  discard block
 block discarded – undo
397 397
             return false;
398 398
     }
399 399
 
400
+    /**
401
+     * @param integer $x1
402
+     * @param integer $y1
403
+     * @param integer $x2
404
+     * @param integer $y2
405
+     */
400 406
     public function imagefilledrectangle($x1, $y1, $x2, $y2, $color) {
401 407
         $color = $this->gd_color($color);
402 408
         if ($color === false) return false;
Please login to merge, or discard this patch.