@@ -31,6 +31,7 @@ |
||
31 | 31 | /** |
32 | 32 | * Constructor |
33 | 33 | * |
34 | + * @param elFinder $elFinder |
|
34 | 35 | * @return void |
35 | 36 | * @author Dmitry (dio) Levashov |
36 | 37 | **/ |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * Return ftp transfer mode for file |
356 | 356 | * |
357 | 357 | * @param string $path file path |
358 | - * @return string |
|
358 | + * @return integer |
|
359 | 359 | * @author Dmitry (dio) Levashov |
360 | 360 | **/ |
361 | 361 | protected function ftpMode($path) { |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * If file does not exists - returns empty array or false. |
514 | 514 | * |
515 | 515 | * @param string $path file path |
516 | - * @return array|false |
|
516 | + * @return string |
|
517 | 517 | * @author Dmitry (dio) Levashov |
518 | 518 | **/ |
519 | 519 | protected function _stat($path) { |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | * |
652 | 652 | * @param string $path file path |
653 | 653 | * @param string $mime file mime type |
654 | - * @return string |
|
654 | + * @return boolean |
|
655 | 655 | * @author Dmitry (dio) Levashov |
656 | 656 | **/ |
657 | 657 | protected function _dimensions($path, $mime) { |
@@ -684,7 +684,6 @@ discard block |
||
684 | 684 | * Open file and return file pointer |
685 | 685 | * |
686 | 686 | * @param string $path file path |
687 | - * @param bool $write open file for writing |
|
688 | 687 | * @return resource|false |
689 | 688 | * @author Dmitry (dio) Levashov |
690 | 689 | **/ |
@@ -705,7 +704,7 @@ discard block |
||
705 | 704 | * Close opened file |
706 | 705 | * |
707 | 706 | * @param resource $fp file pointer |
708 | - * @return bool |
|
707 | + * @return boolean|null |
|
709 | 708 | * @author Dmitry (dio) Levashov |
710 | 709 | **/ |
711 | 710 | protected function _fclose($fp, $path='') { |
@@ -722,7 +721,7 @@ discard block |
||
722 | 721 | * |
723 | 722 | * @param string $path parent dir path |
724 | 723 | * @param string $name new directory name |
725 | - * @return string|bool |
|
724 | + * @return false|string |
|
726 | 725 | * @author Dmitry (dio) Levashov |
727 | 726 | **/ |
728 | 727 | protected function _mkdir($path, $name) { |
@@ -740,7 +739,7 @@ discard block |
||
740 | 739 | * |
741 | 740 | * @param string $path parent dir path |
742 | 741 | * @param string $name new file name |
743 | - * @return string|bool |
|
742 | + * @return string|false |
|
744 | 743 | * @author Dmitry (dio) Levashov |
745 | 744 | **/ |
746 | 745 | protected function _mkfile($path, $name) { |
@@ -772,7 +771,7 @@ discard block |
||
772 | 771 | * @param string $source source file path |
773 | 772 | * @param string $targetDir target directory path |
774 | 773 | * @param string $name new file name |
775 | - * @return bool |
|
774 | + * @return string|false |
|
776 | 775 | * @author Dmitry (dio) Levashov |
777 | 776 | **/ |
778 | 777 | protected function _copy($source, $targetDir, $name) { |
@@ -797,9 +796,9 @@ discard block |
||
797 | 796 | * Return new file path or false. |
798 | 797 | * |
799 | 798 | * @param string $source source file path |
800 | - * @param string $target target dir path |
|
799 | + * @param string $targetDir target dir path |
|
801 | 800 | * @param string $name file name |
802 | - * @return string|bool |
|
801 | + * @return string|false |
|
803 | 802 | * @author Dmitry (dio) Levashov |
804 | 803 | **/ |
805 | 804 | protected function _move($source, $targetDir, $name) { |
@@ -837,7 +836,7 @@ discard block |
||
837 | 836 | * @param string $dir target dir path |
838 | 837 | * @param string $name file name |
839 | 838 | * @param array $stat file stat (required by some virtual fs) |
840 | - * @return bool|string |
|
839 | + * @return string|false |
|
841 | 840 | * @author Dmitry (dio) Levashov |
842 | 841 | **/ |
843 | 842 | protected function _save($fp, $dir, $name, $stat) { |
@@ -955,7 +954,7 @@ discard block |
||
955 | 954 | * |
956 | 955 | * @param string $path archive path |
957 | 956 | * @param array $arc archiver command and arguments (same as in $this->archivers) |
958 | - * @return true |
|
957 | + * @return false|string |
|
959 | 958 | * @author Dmitry (dio) Levashov, |
960 | 959 | * @author Alexey Sukhotin |
961 | 960 | **/ |
@@ -1062,7 +1061,7 @@ discard block |
||
1062 | 1061 | * @param array $files files names list |
1063 | 1062 | * @param string $name archive name |
1064 | 1063 | * @param array $arc archiver options |
1065 | - * @return string|bool |
|
1064 | + * @return false|string |
|
1066 | 1065 | * @author Dmitry (dio) Levashov, |
1067 | 1066 | * @author Alexey Sukhotin |
1068 | 1067 | **/ |
@@ -1209,9 +1208,9 @@ discard block |
||
1209 | 1208 | /** |
1210 | 1209 | * Downloads specified files from remote directory |
1211 | 1210 | * if there is a directory among files it is downloaded recursively (omitting symbolic links). |
1212 | - * @param $remote_directory string remote FTP path to a source directory to download from. |
|
1211 | + * @param string $remote_directory string remote FTP path to a source directory to download from. |
|
1213 | 1212 | * @param array $files list of files to download from remote directory. |
1214 | - * @param $dest_local_directory string destination folder to store downloaded files. |
|
1213 | + * @param string $dest_local_directory string destination folder to store downloaded files. |
|
1215 | 1214 | * @return bool true on success and false on failure. |
1216 | 1215 | */ |
1217 | 1216 | private function ftp_download_files($remote_directory, array $files, $dest_local_directory) |
@@ -1252,7 +1251,7 @@ discard block |
||
1252 | 1251 | |
1253 | 1252 | /** |
1254 | 1253 | * Delete local directory recursively. |
1255 | - * @param $dirPath string to directory to be erased. |
|
1254 | + * @param string $dirPath string to directory to be erased. |
|
1256 | 1255 | * @return bool true on success and false on failure. |
1257 | 1256 | */ |
1258 | 1257 | private function deleteDir($dirPath) |
@@ -1289,6 +1288,7 @@ discard block |
||
1289 | 1288 | * Returns array of strings containing all files and folders in the specified local directory. |
1290 | 1289 | * @param $dir |
1291 | 1290 | * @param string $prefix |
1291 | + * @param boolean $omitSymlinks |
|
1292 | 1292 | * @internal param string $path path to directory to scan. |
1293 | 1293 | * @return array array of files and folders names relative to the $path |
1294 | 1294 | * or an empty array if the directory $path is empty, |
@@ -12,6 +12,10 @@ |
||
12 | 12 | public $key; |
13 | 13 | public $secret; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $key |
|
17 | + * @param string $secret |
|
18 | + */ |
|
15 | 19 | function __construct($key, $secret, $callback_url=NULL) { |
16 | 20 | $this->key = $key; |
17 | 21 | $this->secret = $secret; |
@@ -77,6 +77,8 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * pretty much a helper function to set up the request |
80 | + * @param string $http_method |
|
81 | + * @param string $http_url |
|
80 | 82 | */ |
81 | 83 | public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) { |
82 | 84 | @$parameters or $parameters = array(); |
@@ -92,6 +94,9 @@ discard block |
||
92 | 94 | return new OAuthRequest($http_method, $http_url, $parameters); |
93 | 95 | } |
94 | 96 | |
97 | + /** |
|
98 | + * @param string $name |
|
99 | + */ |
|
95 | 100 | public function set_parameter($name, $value, $allow_duplicates = true) { |
96 | 101 | if ($allow_duplicates && isset($this->parameters[$name])) { |
97 | 102 | // We have already added parameter(s) with this name, so add to the list |
@@ -185,6 +190,7 @@ discard block |
||
185 | 190 | |
186 | 191 | /** |
187 | 192 | * builds a url usable for a GET request |
193 | + * @return string |
|
188 | 194 | */ |
189 | 195 | public function to_url() { |
190 | 196 | $post_data = $this->to_postdata(); |
@@ -227,6 +233,9 @@ discard block |
||
227 | 233 | } |
228 | 234 | |
229 | 235 | |
236 | + /** |
|
237 | + * @param OAuthSignatureMethod_HMAC_SHA1 $signature_method |
|
238 | + */ |
|
230 | 239 | public function sign_request($signature_method, $consumer, $token) { |
231 | 240 | $this->set_parameter( |
232 | 241 | "oauth_signature_method", |
@@ -592,6 +592,8 @@ discard block |
||
592 | 592 | * @param int $levelUp. |
593 | 593 | * @param boolean $runValidation. |
594 | 594 | * @param array $attributes. |
595 | + * @param integer $levelUp |
|
596 | + * @param boolean $runValidation |
|
595 | 597 | * @return boolean. |
596 | 598 | */ |
597 | 599 | private function addNode($target,$key,$levelUp,$runValidation,$attributes) |
@@ -660,6 +662,7 @@ discard block |
||
660 | 662 | |
661 | 663 | /** |
662 | 664 | * @param array $attributes. |
665 | + * @param boolean|null $attributes |
|
663 | 666 | * @return boolean. |
664 | 667 | */ |
665 | 668 | private function makeRoot($attributes) |
@@ -724,6 +727,7 @@ discard block |
||
724 | 727 | * @param CActiveRecord $target. |
725 | 728 | * @param int $key. |
726 | 729 | * @param int $levelUp. |
730 | + * @param integer $levelUp |
|
727 | 731 | * @return boolean. |
728 | 732 | */ |
729 | 733 | private function moveNode($target,$key,$levelUp) |
@@ -879,6 +883,7 @@ discard block |
||
879 | 883 | /** |
880 | 884 | * Correct cache for {@link NestedSetBehavior::addNode()}. |
881 | 885 | * @param int $key. |
886 | + * @param integer $key |
|
882 | 887 | */ |
883 | 888 | private function correctCachedOnAddNode($key) |
884 | 889 | { |
@@ -907,6 +912,7 @@ discard block |
||
907 | 912 | * Correct cache for {@link NestedSetBehavior::moveNode()}. |
908 | 913 | * @param int $key. |
909 | 914 | * @param int $levelDelta. |
915 | + * @param double $levelDelta |
|
910 | 916 | */ |
911 | 917 | private function correctCachedOnMoveNode($key,$levelDelta) |
912 | 918 | { |
@@ -11,6 +11,9 @@ |
||
11 | 11 | return $this->_thumbnail->getCurrentDimensions(); |
12 | 12 | } |
13 | 13 | |
14 | + /** |
|
15 | + * @param GdThumb $thumbnail |
|
16 | + */ |
|
14 | 17 | public function __construct($thumbnail) { |
15 | 18 | $this->_thumbnail=$thumbnail; |
16 | 19 | } |
@@ -230,8 +230,6 @@ discard block |
||
230 | 230 | * This function attempts to get the image to as close to the provided dimensions as possible, and then crops the |
231 | 231 | * remaining overflow (from the center) to get the image to be the size specified |
232 | 232 | * |
233 | - * @param int $maxWidth |
|
234 | - * @param int $maxHeight |
|
235 | 233 | * @return GdThumb |
236 | 234 | */ |
237 | 235 | public function adaptiveResize ($width, $height) |
@@ -356,8 +354,6 @@ discard block |
||
356 | 354 | * |
357 | 355 | * This works the same as for Landscape images except that a percentage of 1 means top and 100 means bottom |
358 | 356 | * |
359 | - * @param int $maxWidth |
|
360 | - * @param int $maxHeight |
|
361 | 357 | * @param int $percent |
362 | 358 | * @return GdThumb |
363 | 359 | */ |
@@ -485,8 +481,6 @@ discard block |
||
485 | 481 | * to crop. This would have exactly the same result as using adaptiveResize(). |
486 | 482 | * The same goes if your image is portrait and you choose either the Left or Right quadrants. |
487 | 483 | * |
488 | - * @param int $maxWidth |
|
489 | - * @param int $maxHeight |
|
490 | 484 | * @param string $quadrant T, B, C, L, R |
491 | 485 | * @return GdThumb |
492 | 486 | */ |
@@ -95,6 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Class constructor |
97 | 97 | * |
98 | + * @param string $fileName |
|
98 | 99 | * @return ThumbBase |
99 | 100 | */ |
100 | 101 | public function __construct ($fileName, $isDataStream = false) |
@@ -32,6 +32,7 @@ discard block |
||
32 | 32 | * Define the autoloader work mode. |
33 | 33 | * |
34 | 34 | * @param integer $mode Autoloader work mode. |
35 | + * @return void |
|
35 | 36 | */ |
36 | 37 | public function setMode($mode); |
37 | 38 | |
@@ -40,6 +41,7 @@ discard block |
||
40 | 41 | * |
41 | 42 | * @param string $resourceName Resource name, namespace or prefix. |
42 | 43 | * @param mixed $resourcePath Resource single path or multiple paths (array). |
44 | + * @return void |
|
43 | 45 | */ |
44 | 46 | public function add($resourceName, $resourcePath = null); |
45 | 47 | |
@@ -47,6 +49,7 @@ discard block |
||
47 | 49 | * Load a resource through provided resource name. |
48 | 50 | * |
49 | 51 | * @param string $resourceName Resource name. |
52 | + * @return void |
|
50 | 53 | */ |
51 | 54 | public function load($resourceName); |
52 | 55 | |
@@ -54,12 +57,14 @@ discard block |
||
54 | 57 | * Register this as an autoloader instance. |
55 | 58 | * |
56 | 59 | * @param boolean Whether to prepend the autoloader or not in autoloader's list. |
60 | + * @return void |
|
57 | 61 | */ |
58 | 62 | public function register($prepend = false); |
59 | 63 | |
60 | 64 | /** |
61 | 65 | * Unregister this autoloader instance. |
62 | 66 | * |
67 | + * @return void |
|
63 | 68 | */ |
64 | 69 | public function unregister(); |
65 | 70 | } |
@@ -235,6 +240,7 @@ discard block |
||
235 | 240 | * Transform resource name into its absolute resource path representation. |
236 | 241 | * |
237 | 242 | * @params string $resourceName |
243 | + * @param string $resourceName |
|
238 | 244 | * |
239 | 245 | * @return string Resource absolute path. |
240 | 246 | */ |
@@ -290,6 +296,7 @@ discard block |
||
290 | 296 | * Check if resource is declared in user space. |
291 | 297 | * |
292 | 298 | * @params string $resourceName |
299 | + * @param string $resourceName |
|
293 | 300 | * |
294 | 301 | * @return boolean |
295 | 302 | */ |