@@ -154,7 +154,7 @@ |
||
154 | 154 | * see http://php.net/manual/en/function.filetype.php |
155 | 155 | * |
156 | 156 | * @param string $path |
157 | - * @return bool |
|
157 | + * @return string|false |
|
158 | 158 | */ |
159 | 159 | public function filetype($path) { |
160 | 160 | return $this->storage->filetype($this->findPathToUse($path)); |
@@ -355,6 +355,9 @@ discard block |
||
355 | 355 | } |
356 | 356 | } |
357 | 357 | |
358 | + /** |
|
359 | + * @param string $root |
|
360 | + */ |
|
358 | 361 | static public function init($user, $root) { |
359 | 362 | if (self::$defaultInstance) { |
360 | 363 | return false; |
@@ -494,7 +497,7 @@ discard block |
||
494 | 497 | /** |
495 | 498 | * mount an \OC\Files\Storage\Storage in our virtual filesystem |
496 | 499 | * |
497 | - * @param IStorage|string $class |
|
500 | + * @param string $class |
|
498 | 501 | * @param array $arguments |
499 | 502 | * @param string $mountpoint |
500 | 503 | */ |
@@ -671,6 +674,9 @@ discard block |
||
671 | 674 | return self::$defaultInstance->is_dir($path); |
672 | 675 | } |
673 | 676 | |
677 | + /** |
|
678 | + * @param string $path |
|
679 | + */ |
|
674 | 680 | static public function is_file($path) { |
675 | 681 | return self::$defaultInstance->is_file($path); |
676 | 682 | } |
@@ -683,6 +689,9 @@ discard block |
||
683 | 689 | return self::$defaultInstance->filetype($path); |
684 | 690 | } |
685 | 691 | |
692 | + /** |
|
693 | + * @param string $path |
|
694 | + */ |
|
686 | 695 | static public function filesize($path) { |
687 | 696 | return self::$defaultInstance->filesize($path); |
688 | 697 | } |
@@ -695,6 +704,9 @@ discard block |
||
695 | 704 | return self::$defaultInstance->isCreatable($path); |
696 | 705 | } |
697 | 706 | |
707 | + /** |
|
708 | + * @param string $path |
|
709 | + */ |
|
698 | 710 | static public function isReadable($path) { |
699 | 711 | return self::$defaultInstance->isReadable($path); |
700 | 712 | } |
@@ -707,6 +719,9 @@ discard block |
||
707 | 719 | return self::$defaultInstance->isDeletable($path); |
708 | 720 | } |
709 | 721 | |
722 | + /** |
|
723 | + * @param string $path |
|
724 | + */ |
|
710 | 725 | static public function isSharable($path) { |
711 | 726 | return self::$defaultInstance->isSharable($path); |
712 | 727 | } |
@@ -724,6 +739,7 @@ discard block |
||
724 | 739 | } |
725 | 740 | |
726 | 741 | /** |
742 | + * @param string $path |
|
727 | 743 | * @return string |
728 | 744 | */ |
729 | 745 | static public function file_get_contents($path) { |
@@ -746,6 +762,10 @@ discard block |
||
746 | 762 | return self::$defaultInstance->copy($path1, $path2); |
747 | 763 | } |
748 | 764 | |
765 | + /** |
|
766 | + * @param string $path |
|
767 | + * @param string $mode |
|
768 | + */ |
|
749 | 769 | static public function fopen($path, $mode) { |
750 | 770 | return self::$defaultInstance->fopen($path, $mode); |
751 | 771 | } |
@@ -761,6 +781,9 @@ discard block |
||
761 | 781 | return self::$defaultInstance->fromTmpFile($tmpFile, $path); |
762 | 782 | } |
763 | 783 | |
784 | + /** |
|
785 | + * @param string $path |
|
786 | + */ |
|
764 | 787 | static public function getMimeType($path) { |
765 | 788 | return self::$defaultInstance->getMimeType($path); |
766 | 789 | } |
@@ -773,6 +796,9 @@ discard block |
||
773 | 796 | return self::$defaultInstance->free_space($path); |
774 | 797 | } |
775 | 798 | |
799 | + /** |
|
800 | + * @param string $query |
|
801 | + */ |
|
776 | 802 | static public function search($query) { |
777 | 803 | return self::$defaultInstance->search($query); |
778 | 804 | } |
@@ -881,7 +907,7 @@ discard block |
||
881 | 907 | * @param string $path |
882 | 908 | * @param boolean $includeMountPoints whether to add mountpoint sizes, |
883 | 909 | * defaults to true |
884 | - * @return \OC\Files\FileInfo|bool False if file does not exist |
|
910 | + * @return \OCP\Files\FileInfo|null False if file does not exist |
|
885 | 911 | */ |
886 | 912 | public static function getFileInfo($path, $includeMountPoints = true) { |
887 | 913 | return self::$defaultInstance->getFileInfo($path, $includeMountPoints); |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | /** |
168 | 168 | * @param string $path |
169 | - * @return array |
|
169 | + * @return string |
|
170 | 170 | */ |
171 | 171 | public function getMetaData($path) { |
172 | 172 | $data = $this->storage->getMetaData($path); |
@@ -982,7 +982,7 @@ discard block |
||
982 | 982 | /** |
983 | 983 | * check if path points to a files version |
984 | 984 | * |
985 | - * @param $path |
|
985 | + * @param string $path |
|
986 | 986 | * @return bool |
987 | 987 | */ |
988 | 988 | protected function isVersion($path) { |
@@ -51,6 +51,9 @@ discard block |
||
51 | 51 | $this->rootPath = $arguments['root']; |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param string $path |
|
56 | + */ |
|
54 | 57 | public function getSourcePath($path) { |
55 | 58 | if ($this->rootPath === null) { |
56 | 59 | throw new \InvalidArgumentException('Jail rootPath is null'); |
@@ -131,7 +134,7 @@ discard block |
||
131 | 134 | * see http://php.net/manual/en/function.filetype.php |
132 | 135 | * |
133 | 136 | * @param string $path |
134 | - * @return bool |
|
137 | + * @return string|false |
|
135 | 138 | */ |
136 | 139 | public function filetype($path) { |
137 | 140 | return $this->getWrapperStorage()->filetype($this->getSourcePath($path)); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * see http://php.net/manual/en/function.filetype.php |
133 | 133 | * |
134 | 134 | * @param string $path |
135 | - * @return bool |
|
135 | + * @return string|false |
|
136 | 136 | */ |
137 | 137 | public function filetype($path) { |
138 | 138 | return $this->getWrapperStorage()->filetype($path); |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | /** |
462 | 462 | * Returns true |
463 | 463 | * |
464 | - * @return true |
|
464 | + * @return boolean |
|
465 | 465 | */ |
466 | 466 | public function test() { |
467 | 467 | return $this->getWrapperStorage()->test(); |