@@ -318,6 +318,11 @@ |
||
318 | 318 | */ |
319 | 319 | // FIXME This method is only public, until OC_L10N does not need it anymore, |
320 | 320 | // FIXME This is also the reason, why it is not in the public interface |
321 | + |
|
322 | + /** |
|
323 | + * @param string $app |
|
324 | + * @param string $lang |
|
325 | + */ |
|
321 | 326 | public function getL10nFilesForApp($app, $lang) { |
322 | 327 | $languageFiles = []; |
323 | 328 |
@@ -131,7 +131,7 @@ |
||
131 | 131 | /** |
132 | 132 | * Create the federated share provider |
133 | 133 | * |
134 | - * @return FederatedShareProvider |
|
134 | + * @return null|ShareByMailProvider |
|
135 | 135 | */ |
136 | 136 | protected function getShareByMailProvider() { |
137 | 137 | if ($this->shareByMailProvider === null) { |
@@ -184,10 +184,10 @@ discard block |
||
184 | 184 | * publish activity if a file/folder was shared by mail |
185 | 185 | * |
186 | 186 | * @param $subject |
187 | - * @param $parameters |
|
188 | - * @param $affectedUser |
|
187 | + * @param string[] $parameters |
|
188 | + * @param string $affectedUser |
|
189 | 189 | * @param $fileId |
190 | - * @param $filePath |
|
190 | + * @param string $filePath |
|
191 | 191 | */ |
192 | 192 | protected function publishActivity($subject, $parameters, $affectedUser, $fileId, $filePath) { |
193 | 193 | $event = $this->activityManager->generateEvent(); |
@@ -239,6 +239,12 @@ discard block |
||
239 | 239 | |
240 | 240 | } |
241 | 241 | |
242 | + /** |
|
243 | + * @param string $link |
|
244 | + * @param string $owner |
|
245 | + * @param string $initiator |
|
246 | + * @param string $shareWith |
|
247 | + */ |
|
242 | 248 | protected function sendMailNotification($filename, $link, $owner, $initiator, $shareWith) { |
243 | 249 | if ($owner === $initiator) { |
244 | 250 | $subject = (string)$this->l->t('%s shared »%s« with you', array($owner, $filename)); |
@@ -264,6 +270,7 @@ discard block |
||
264 | 270 | * @param $link |
265 | 271 | * @param $owner |
266 | 272 | * @param $initiator |
273 | + * @param string $template |
|
267 | 274 | * @return string plain text mail |
268 | 275 | * @throws HintException |
269 | 276 | */ |
@@ -703,7 +710,7 @@ discard block |
||
703 | 710 | /** |
704 | 711 | * get database row of a give share |
705 | 712 | * |
706 | - * @param $id |
|
713 | + * @param integer $id |
|
707 | 714 | * @return array |
708 | 715 | * @throws ShareNotFound |
709 | 716 | */ |
@@ -94,7 +94,7 @@ |
||
94 | 94 | /** |
95 | 95 | * Performs a DELETE or UPDATE query to the database. |
96 | 96 | * @param \Doctrine\DBAL\Driver\Statement $query |
97 | - * @param array $parameters |
|
97 | + * @param string[] $parameters |
|
98 | 98 | * @return bool true if at least one row was modified, false otherwise |
99 | 99 | */ |
100 | 100 | protected function modify($query, $parameters) { |
@@ -110,6 +110,9 @@ |
||
110 | 110 | return parent::moveFromCache($sourceCache, $sourcePath, $targetPath); |
111 | 111 | } |
112 | 112 | |
113 | + /** |
|
114 | + * @param ICacheEntry $entry |
|
115 | + */ |
|
113 | 116 | protected function formatCacheEntry($entry) { |
114 | 117 | $path = isset($entry['path']) ? $entry['path'] : ''; |
115 | 118 | $entry = parent::formatCacheEntry($entry); |
@@ -194,6 +194,9 @@ |
||
194 | 194 | return $this->cache->getStatus($this->getSourcePath($file)); |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param ICacheEntry[] $results |
|
199 | + */ |
|
197 | 200 | private function formatSearchResults($results) { |
198 | 201 | $results = array_filter($results, array($this, 'filterCacheEntry')); |
199 | 202 | $results = array_values($results); |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | * split user and remote from federated cloud id |
351 | 351 | * |
352 | 352 | * @param string $address federated share address |
353 | - * @return array [user, remoteURL] |
|
353 | + * @return string[] [user, remoteURL] |
|
354 | 354 | * @throws \Exception |
355 | 355 | */ |
356 | 356 | public function splitUserRemote($address) { |
@@ -625,6 +625,9 @@ discard block |
||
625 | 625 | return $result; |
626 | 626 | } |
627 | 627 | |
628 | + /** |
|
629 | + * @param string $search |
|
630 | + */ |
|
628 | 631 | protected function getLookup($search) { |
629 | 632 | $client = $this->clientService->newClient(); |
630 | 633 |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * By default this excludes the automatically generated birthday calendar |
160 | 160 | * |
161 | - * @param $principalUri |
|
161 | + * @param string $principalUri |
|
162 | 162 | * @param bool $excludeBirthday |
163 | 163 | * @return int |
164 | 164 | */ |
@@ -304,6 +304,9 @@ discard block |
||
304 | 304 | return array_values($calendars); |
305 | 305 | } |
306 | 306 | |
307 | + /** |
|
308 | + * @param string $principalUri |
|
309 | + */ |
|
307 | 310 | public function getUsersOwnCalendars($principalUri) { |
308 | 311 | $principalUri = $this->convertPrincipal($principalUri, true); |
309 | 312 | $fields = array_values($this->propertyMap); |
@@ -878,7 +881,7 @@ discard block |
||
878 | 881 | * calendar-data. If the result of a subsequent GET to this object is not |
879 | 882 | * the exact same as this request body, you should omit the ETag. |
880 | 883 | * |
881 | - * @param mixed $calendarId |
|
884 | + * @param integer $calendarId |
|
882 | 885 | * @param string $objectUri |
883 | 886 | * @param string $calendarData |
884 | 887 | * @return string |
@@ -1370,7 +1373,7 @@ discard block |
||
1370 | 1373 | * @param string $principalUri |
1371 | 1374 | * @param string $uri |
1372 | 1375 | * @param array $properties |
1373 | - * @return mixed |
|
1376 | + * @return integer |
|
1374 | 1377 | */ |
1375 | 1378 | function createSubscription($principalUri, $uri, array $properties) { |
1376 | 1379 | |
@@ -1783,6 +1786,9 @@ discard block |
||
1783 | 1786 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
1784 | 1787 | } |
1785 | 1788 | |
1789 | + /** |
|
1790 | + * @param boolean $toV2 |
|
1791 | + */ |
|
1786 | 1792 | private function convertPrincipal($principalUri, $toV2) { |
1787 | 1793 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
1788 | 1794 | list(, $name) = URLUtil::splitPath($principalUri); |
@@ -360,6 +360,9 @@ discard block |
||
360 | 360 | } |
361 | 361 | } |
362 | 362 | |
363 | + /** |
|
364 | + * @param string $root |
|
365 | + */ |
|
363 | 366 | static public function init($user, $root) { |
364 | 367 | if (self::$defaultInstance) { |
365 | 368 | return false; |
@@ -528,7 +531,7 @@ discard block |
||
528 | 531 | /** |
529 | 532 | * mount an \OC\Files\Storage\Storage in our virtual filesystem |
530 | 533 | * |
531 | - * @param \OC\Files\Storage\Storage|string $class |
|
534 | + * @param string $class |
|
532 | 535 | * @param array $arguments |
533 | 536 | * @param string $mountpoint |
534 | 537 | */ |
@@ -660,6 +663,9 @@ discard block |
||
660 | 663 | return self::$defaultInstance->is_dir($path); |
661 | 664 | } |
662 | 665 | |
666 | + /** |
|
667 | + * @param string $path |
|
668 | + */ |
|
663 | 669 | static public function is_file($path) { |
664 | 670 | return self::$defaultInstance->is_file($path); |
665 | 671 | } |
@@ -672,6 +678,9 @@ discard block |
||
672 | 678 | return self::$defaultInstance->filetype($path); |
673 | 679 | } |
674 | 680 | |
681 | + /** |
|
682 | + * @param string $path |
|
683 | + */ |
|
675 | 684 | static public function filesize($path) { |
676 | 685 | return self::$defaultInstance->filesize($path); |
677 | 686 | } |
@@ -684,6 +693,9 @@ discard block |
||
684 | 693 | return self::$defaultInstance->isCreatable($path); |
685 | 694 | } |
686 | 695 | |
696 | + /** |
|
697 | + * @param string $path |
|
698 | + */ |
|
687 | 699 | static public function isReadable($path) { |
688 | 700 | return self::$defaultInstance->isReadable($path); |
689 | 701 | } |
@@ -696,6 +708,9 @@ discard block |
||
696 | 708 | return self::$defaultInstance->isDeletable($path); |
697 | 709 | } |
698 | 710 | |
711 | + /** |
|
712 | + * @param string $path |
|
713 | + */ |
|
699 | 714 | static public function isSharable($path) { |
700 | 715 | return self::$defaultInstance->isSharable($path); |
701 | 716 | } |
@@ -704,6 +719,9 @@ discard block |
||
704 | 719 | return self::$defaultInstance->file_exists($path); |
705 | 720 | } |
706 | 721 | |
722 | + /** |
|
723 | + * @param string $path |
|
724 | + */ |
|
707 | 725 | static public function filemtime($path) { |
708 | 726 | return self::$defaultInstance->filemtime($path); |
709 | 727 | } |
@@ -713,6 +731,7 @@ discard block |
||
713 | 731 | } |
714 | 732 | |
715 | 733 | /** |
734 | + * @param string $path |
|
716 | 735 | * @return string |
717 | 736 | */ |
718 | 737 | static public function file_get_contents($path) { |
@@ -735,6 +754,10 @@ discard block |
||
735 | 754 | return self::$defaultInstance->copy($path1, $path2); |
736 | 755 | } |
737 | 756 | |
757 | + /** |
|
758 | + * @param string $path |
|
759 | + * @param string $mode |
|
760 | + */ |
|
738 | 761 | static public function fopen($path, $mode) { |
739 | 762 | return self::$defaultInstance->fopen($path, $mode); |
740 | 763 | } |
@@ -750,6 +773,9 @@ discard block |
||
750 | 773 | return self::$defaultInstance->fromTmpFile($tmpFile, $path); |
751 | 774 | } |
752 | 775 | |
776 | + /** |
|
777 | + * @param string $path |
|
778 | + */ |
|
753 | 779 | static public function getMimeType($path) { |
754 | 780 | return self::$defaultInstance->getMimeType($path); |
755 | 781 | } |
@@ -762,6 +788,9 @@ discard block |
||
762 | 788 | return self::$defaultInstance->free_space($path); |
763 | 789 | } |
764 | 790 | |
791 | + /** |
|
792 | + * @param string $query |
|
793 | + */ |
|
765 | 794 | static public function search($query) { |
766 | 795 | return self::$defaultInstance->search($query); |
767 | 796 | } |
@@ -870,7 +899,7 @@ discard block |
||
870 | 899 | * @param string $path |
871 | 900 | * @param boolean $includeMountPoints whether to add mountpoint sizes, |
872 | 901 | * defaults to true |
873 | - * @return \OC\Files\FileInfo|bool False if file does not exist |
|
902 | + * @return \OCP\Files\FileInfo|null False if file does not exist |
|
874 | 903 | */ |
875 | 904 | public static function getFileInfo($path, $includeMountPoints = true) { |
876 | 905 | return self::$defaultInstance->getFileInfo($path, $includeMountPoints); |