@@ -223,7 +223,7 @@ |
||
223 | 223 | |
224 | 224 | /** |
225 | 225 | * @param string $path |
226 | - * @return INode|null |
|
226 | + * @return null|Node |
|
227 | 227 | */ |
228 | 228 | protected function getNodeForPath($path) { |
229 | 229 | $node = parent::getNodeForPath($path); |
@@ -143,7 +143,7 @@ |
||
143 | 143 | * Returns the list of members for a group-principal |
144 | 144 | * |
145 | 145 | * @param string $principal |
146 | - * @return array |
|
146 | + * @return string[] |
|
147 | 147 | */ |
148 | 148 | public function getGroupMemberSet($principal) { |
149 | 149 | // TODO: for now the group principal has only one member, the user itself |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | /** |
184 | 184 | * @param IFile[] $nodes |
185 | 185 | * @param IFile $backingFile |
186 | - * @param $fileLength |
|
186 | + * @param string $fileLength |
|
187 | 187 | * @return resource |
188 | 188 | * |
189 | 189 | * @throws \BadMethodCallException |
@@ -207,6 +207,9 @@ discard block |
||
207 | 207 | return $wrapped; |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @param integer $current |
|
212 | + */ |
|
210 | 213 | protected function getNextNodeStart($current) { |
211 | 214 | foreach ($this->sortedNodes as $node) { |
212 | 215 | if ($current >= $node['start'] && $current < $node['end']) { |
@@ -220,7 +223,7 @@ discard block |
||
220 | 223 | } |
221 | 224 | |
222 | 225 | /** |
223 | - * @param $pos |
|
226 | + * @param integer $pos |
|
224 | 227 | */ |
225 | 228 | protected function getNodeForPosition($pos) { |
226 | 229 | foreach ($this->sortedNodes as $node) { |
@@ -107,6 +107,7 @@ |
||
107 | 107 | * |
108 | 108 | * @param string &$zsyncMetadata actual metadata |
109 | 109 | * @param string $destination destination path |
110 | + * @param string|null $zsyncMetadata |
|
110 | 111 | */ |
111 | 112 | private function postMoveZsync(&$zsyncMetadata, $destination) { |
112 | 113 | if (!$zsyncMetadata) { |
@@ -308,6 +308,9 @@ |
||
308 | 308 | return $result; |
309 | 309 | } |
310 | 310 | |
311 | + /** |
|
312 | + * @param string $mountPoint |
|
313 | + */ |
|
311 | 314 | public function removeShare($mountPoint) { |
312 | 315 | $mountPointObj = $this->mountManager->find($mountPoint); |
313 | 316 | $id = $mountPointObj->getStorage()->getCache()->getId(''); |
@@ -134,7 +134,7 @@ |
||
134 | 134 | * check if it is a file located in data/user/files only files in the |
135 | 135 | * 'files' directory should be moved to the trash |
136 | 136 | * |
137 | - * @param $path |
|
137 | + * @param string $path |
|
138 | 138 | * @return bool |
139 | 139 | */ |
140 | 140 | protected function shouldMoveToTrash($path) { |
@@ -131,8 +131,8 @@ |
||
131 | 131 | |
132 | 132 | /** |
133 | 133 | * Check if command is allowed and has a valid security token |
134 | - * @param $command |
|
135 | - * @param $token |
|
134 | + * @param string $command |
|
135 | + * @param string $token |
|
136 | 136 | */ |
137 | 137 | protected function validateRequest($command, $token) { |
138 | 138 | $allowedHosts = ['::1', '127.0.0.1', 'localhost']; |
@@ -359,6 +359,10 @@ discard block |
||
359 | 359 | } |
360 | 360 | } |
361 | 361 | |
362 | + /** |
|
363 | + * @param string|boolean $user |
|
364 | + * @param string $root |
|
365 | + */ |
|
362 | 366 | public static function init($user, $root) { |
363 | 367 | if (self::$defaultInstance) { |
364 | 368 | return false; |
@@ -517,7 +521,7 @@ discard block |
||
517 | 521 | /** |
518 | 522 | * mount an \OC\Files\Storage\Storage in our virtual filesystem |
519 | 523 | * |
520 | - * @param \OC\Files\Storage\Storage|string $class |
|
524 | + * @param string $class |
|
521 | 525 | * @param array $arguments |
522 | 526 | * @param string $mountpoint |
523 | 527 | */ |
@@ -690,6 +694,9 @@ discard block |
||
690 | 694 | return self::$defaultInstance->is_dir($path); |
691 | 695 | } |
692 | 696 | |
697 | + /** |
|
698 | + * @param string $path |
|
699 | + */ |
|
693 | 700 | public static function is_file($path) { |
694 | 701 | return self::$defaultInstance->is_file($path); |
695 | 702 | } |
@@ -702,6 +709,9 @@ discard block |
||
702 | 709 | return self::$defaultInstance->filetype($path); |
703 | 710 | } |
704 | 711 | |
712 | + /** |
|
713 | + * @param string $path |
|
714 | + */ |
|
705 | 715 | public static function filesize($path) { |
706 | 716 | return self::$defaultInstance->filesize($path); |
707 | 717 | } |
@@ -714,6 +724,9 @@ discard block |
||
714 | 724 | return self::$defaultInstance->isCreatable($path); |
715 | 725 | } |
716 | 726 | |
727 | + /** |
|
728 | + * @param string $path |
|
729 | + */ |
|
717 | 730 | public static function isReadable($path) { |
718 | 731 | return self::$defaultInstance->isReadable($path); |
719 | 732 | } |
@@ -726,6 +739,9 @@ discard block |
||
726 | 739 | return self::$defaultInstance->isDeletable($path); |
727 | 740 | } |
728 | 741 | |
742 | + /** |
|
743 | + * @param string $path |
|
744 | + */ |
|
729 | 745 | public static function isSharable($path) { |
730 | 746 | return self::$defaultInstance->isSharable($path); |
731 | 747 | } |
@@ -743,6 +759,7 @@ discard block |
||
743 | 759 | } |
744 | 760 | |
745 | 761 | /** |
762 | + * @param string $path |
|
746 | 763 | * @return string |
747 | 764 | */ |
748 | 765 | public static function file_get_contents($path) { |
@@ -765,6 +782,10 @@ discard block |
||
765 | 782 | return self::$defaultInstance->copy($path1, $path2); |
766 | 783 | } |
767 | 784 | |
785 | + /** |
|
786 | + * @param string $path |
|
787 | + * @param string $mode |
|
788 | + */ |
|
768 | 789 | public static function fopen($path, $mode) { |
769 | 790 | return self::$defaultInstance->fopen($path, $mode); |
770 | 791 | } |
@@ -780,6 +801,9 @@ discard block |
||
780 | 801 | return self::$defaultInstance->fromTmpFile($tmpFile, $path); |
781 | 802 | } |
782 | 803 | |
804 | + /** |
|
805 | + * @param string $path |
|
806 | + */ |
|
783 | 807 | public static function getMimeType($path) { |
784 | 808 | return self::$defaultInstance->getMimeType($path); |
785 | 809 | } |
@@ -792,6 +816,9 @@ discard block |
||
792 | 816 | return self::$defaultInstance->free_space($path); |
793 | 817 | } |
794 | 818 | |
819 | + /** |
|
820 | + * @param string $query |
|
821 | + */ |
|
795 | 822 | public static function search($query) { |
796 | 823 | return self::$defaultInstance->search($query); |
797 | 824 | } |
@@ -900,7 +927,7 @@ discard block |
||
900 | 927 | * @param string $path |
901 | 928 | * @param boolean $includeMountPoints whether to add mountpoint sizes, |
902 | 929 | * defaults to true |
903 | - * @return \OC\Files\FileInfo|bool False if file does not exist |
|
930 | + * @return \OCP\Files\FileInfo|null False if file does not exist |
|
904 | 931 | */ |
905 | 932 | public static function getFileInfo($path, $includeMountPoints = true) { |
906 | 933 | return self::$defaultInstance->getFileInfo($path, $includeMountPoints); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * @param string $path |
176 | 176 | * @throws \OCP\Files\NotFoundException |
177 | 177 | * @throws \OCP\Files\NotPermittedException |
178 | - * @return File|Folder |
|
178 | + * @return string |
|
179 | 179 | */ |
180 | 180 | public function get($path) { |
181 | 181 | $path = $this->normalizePath($path); |
@@ -373,6 +373,9 @@ discard block |
||
373 | 373 | return $folder; |
374 | 374 | } |
375 | 375 | |
376 | + /** |
|
377 | + * @param string $fullPath |
|
378 | + */ |
|
376 | 379 | private function resolveVirtualNode($fullPath) { |
377 | 380 | $pieces = \explode('/', $fullPath); |
378 | 381 | if ($pieces[1] !== 'meta') { |