@@ -168,7 +168,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -179,7 +179,6 @@ |
||
| 179 | 179 | |
| 180 | 180 | /** Resize and crop the image to fit in given resolution. Returns TRUE on |
| 181 | 181 | * success or FALSE on failure |
| 182 | - * @param mixed $src |
|
| 183 | 182 | * @param integer $offset |
| 184 | 183 | * @return bool */ |
| 185 | 184 | abstract public function resizeCrop($width, $height, $offset=false); |
@@ -327,6 +327,11 @@ |
||
| 327 | 327 | return imagecolorallocate($this->image, $r, $g, $b); |
| 328 | 328 | } |
| 329 | 329 | |
| 330 | + /** |
|
| 331 | + * @param integer $x1 |
|
| 332 | + * @param integer $y1 |
|
| 333 | + * @param boolean $color |
|
| 334 | + */ |
|
| 330 | 335 | protected function imageFilledRectangle($x1, $y1, $x2, $y2, $color) { |
| 331 | 336 | $color = $this->gdColor($color); |
| 332 | 337 | if ($color === false) return false; |
@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | protected $root; |
| 19 | 19 | protected $ignored; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $folder |
|
| 23 | + */ |
|
| 21 | 24 | function __construct($file, $folder, $ignored=null) { |
| 22 | 25 | $this->zip = new ZipArchive(); |
| 23 | 26 | |
@@ -39,6 +42,9 @@ discard block |
||
| 39 | 42 | $this->zip->close(); |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $folder |
|
| 47 | + */ |
|
| 42 | 48 | function zip($folder, $parent=null) { |
| 43 | 49 | $full_path = "{$this->root}$parent$folder"; |
| 44 | 50 | $zip_path = "$parent$folder"; |
@@ -102,7 +102,6 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | /** Checks if the given file is really writable. The standard PHP function |
| 104 | 104 | * is_writable() does not work properly on Windows servers. |
| 105 | - * @param string $dir |
|
| 106 | 105 | * @return bool */ |
| 107 | 106 | |
| 108 | 107 | static function isWritable($filename) { |
@@ -114,7 +113,6 @@ discard block |
||
| 114 | 113 | } |
| 115 | 114 | |
| 116 | 115 | /** Get the extension from filename |
| 117 | - * @param string $file |
|
| 118 | 116 | * @param bool $toLower |
| 119 | 117 | * @return string */ |
| 120 | 118 | |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | 314 | * @param $filename |
| 315 | - * @return mixed|string |
|
| 315 | + * @return string |
|
| 316 | 316 | */ |
| 317 | 317 | protected function normalizeFilename($filename) { |
| 318 | 318 | if ($this->getTransaliasSettings()) { |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | /** |
| 327 | - * @param $dirname |
|
| 327 | + * @param string $dirname |
|
| 328 | 328 | * @return string |
| 329 | 329 | */ |
| 330 | 330 | protected function normalizeDirname($dirname) { |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | * @param $dir |
| 409 | 409 | * @param bool $inclType |
| 410 | 410 | * @param bool $existing |
| 411 | - * @return bool|string |
|
| 411 | + * @return false|string |
|
| 412 | 412 | */ |
| 413 | 413 | protected function checkInputDir($dir, $inclType=true, $existing=true) { |
| 414 | 414 | $dir = path::normalize($dir); |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | } |
| 438 | 438 | |
| 439 | 439 | /** |
| 440 | - * @param $ext |
|
| 440 | + * @param string $ext |
|
| 441 | 441 | * @param $type |
| 442 | 442 | * @return bool |
| 443 | 443 | */ |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | |
| 469 | 469 | /** |
| 470 | 470 | * @param $path |
| 471 | - * @return mixed |
|
| 471 | + * @return string |
|
| 472 | 472 | */ |
| 473 | 473 | protected function getTypeFromPath($path) { |
| 474 | 474 | return preg_match('/^([^\/]*)\/.*$/', $path, $patt) |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | /** |
| 479 | - * @param $path |
|
| 479 | + * @param string $path |
|
| 480 | 480 | * @return string |
| 481 | 481 | */ |
| 482 | 482 | protected function removeTypeFromPath($path) { |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | } |
| 695 | 695 | |
| 696 | 696 | /** |
| 697 | - * @param $url |
|
| 697 | + * @param string $url |
|
| 698 | 698 | * @param string $message |
| 699 | 699 | */ |
| 700 | 700 | protected function callBack($url, $message="") { |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | if(!function_exists('removeLastPath')) { |
| 189 | 189 | /** |
| 190 | 190 | * @param string $string |
| 191 | - * @return bool|string |
|
| 191 | + * @return string|false |
|
| 192 | 192 | */ |
| 193 | 193 | function removeLastPath($string) |
| 194 | 194 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | if(!function_exists('getExtension')) { |
| 207 | 207 | /** |
| 208 | 208 | * @param string $string |
| 209 | - * @return bool|string |
|
| 209 | + * @return string|false |
|
| 210 | 210 | * |
| 211 | 211 | * @TODO: not work if $string contains folder name with dot |
| 212 | 212 | */ |
@@ -357,7 +357,7 @@ |
||
| 357 | 357 | if(!function_exists('getFileContent')) { |
| 358 | 358 | /** |
| 359 | 359 | * @param string $filepath |
| 360 | - * @return bool|string |
|
| 360 | + * @return null|string |
|
| 361 | 361 | */ |
| 362 | 362 | function getFileContent($filepath) |
| 363 | 363 | { |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | |
| 110 | 110 | if (!function_exists('modx_sanitize_gpc')) { |
| 111 | 111 | /** |
| 112 | - * @param array|string $values |
|
| 112 | + * @param string $values |
|
| 113 | 113 | * @param int $depth |
| 114 | 114 | * @return array|string |
| 115 | 115 | */ |