@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCP\IUserManager; |
| 29 | 29 | use OCP\Util; |
| 30 | 30 | use Symfony\Component\EventDispatcher\EventDispatcher; |
| 31 | -use Symfony\Component\EventDispatcher\GenericEvent; |
|
| 32 | 31 | |
| 33 | 32 | class HookManager { |
| 34 | 33 | |
@@ -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); |
@@ -36,7 +36,6 @@ |
||
| 36 | 36 | use OCA\Files_Sharing\ISharedStorage; |
| 37 | 37 | use OCP\Constants; |
| 38 | 38 | use OCP\Files\Cache\ICacheEntry; |
| 39 | -use OCP\Files\Storage\IStorage; |
|
| 40 | 39 | use OCP\Lock\ILockingProvider; |
| 41 | 40 | |
| 42 | 41 | /** |
@@ -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); |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | namespace OCA\Files_Sharing; |
| 33 | 33 | |
| 34 | 34 | use OC\Files\Filesystem; |
| 35 | -use OC\Files\Cache\FailedCache; |
|
| 36 | 35 | use OC\Files\Storage\FailedStorage; |
| 37 | 36 | use OCP\Constants; |
| 38 | 37 | use OCP\Files\Cache\ICacheEntry; |
@@ -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); |
@@ -984,7 +984,7 @@ discard block |
||
| 984 | 984 | /** |
| 985 | 985 | * check if path points to a files version |
| 986 | 986 | * |
| 987 | - * @param $path |
|
| 987 | + * @param string $path |
|
| 988 | 988 | * @return bool |
| 989 | 989 | */ |
| 990 | 990 | protected function isVersion($path) { |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | /** |
| 996 | 996 | * check if the given storage should be encrypted or not |
| 997 | 997 | * |
| 998 | - * @param $path |
|
| 998 | + * @param string $path |
|
| 999 | 999 | * @return bool |
| 1000 | 1000 | */ |
| 1001 | 1001 | protected function shouldEncrypt($path) { |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | namespace OCA\DAV\AppInfo; |
| 26 | 26 | |
| 27 | 27 | use OCA\DAV\CalDAV\Activity\Backend; |
| 28 | -use OCA\DAV\CalDAV\Activity\Extension; |
|
| 29 | 28 | use OCA\DAV\CalDAV\Activity\Provider\Event; |
| 30 | 29 | use OCA\DAV\CalDAV\BirthdayService; |
| 31 | 30 | use OCA\DAV\Capabilities; |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use OCP\AppFramework\Http\Response; |
| 31 | 31 | use OCP\AppFramework\OCS\OCSException; |
| 32 | 32 | use OCP\AppFramework\OCS\OCSForbiddenException; |
| 33 | -use OCP\AppFramework\OCS\OCSNotFoundException; |
|
| 34 | 33 | use OCP\AppFramework\OCSController; |
| 35 | 34 | use OCP\IRequest; |
| 36 | 35 | use OCP\AppFramework\Middleware; |