@@ -278,7 +278,7 @@ |
||
278 | 278 | } |
279 | 279 | |
280 | 280 | /** |
281 | - * @param string[] $subTree |
|
281 | + * @param string[] $subTrees |
|
282 | 282 | * @return bool |
283 | 283 | */ |
284 | 284 | private function isRequestForSubtree(array $subTrees) { |
@@ -284,6 +284,9 @@ discard block |
||
284 | 284 | return $this->leave(__FUNCTION__, $result); |
285 | 285 | } |
286 | 286 | |
287 | + /** |
|
288 | + * @param string $path |
|
289 | + */ |
|
287 | 290 | private function removeFromCache($path) { |
288 | 291 | $path = trim($path, '/'); |
289 | 292 | // TODO The CappedCache does not really clear by prefix. It just clears all. |
@@ -673,7 +676,7 @@ discard block |
||
673 | 676 | * if smb.logging.enable is set to true in the config will log a leave line |
674 | 677 | * with the given function, the return value or the exception |
675 | 678 | * |
676 | - * @param $function |
|
679 | + * @param string $function |
|
677 | 680 | * @param mixed $result an exception will be logged and then returned |
678 | 681 | * @return mixed |
679 | 682 | */ |
@@ -700,6 +703,9 @@ discard block |
||
700 | 703 | return $result; |
701 | 704 | } |
702 | 705 | |
706 | + /** |
|
707 | + * @param string $function |
|
708 | + */ |
|
703 | 709 | private function swallow($function, \Exception $exception) { |
704 | 710 | if (\OC::$server->getConfig()->getSystemValue('smb.logging.enable', false) === true) { |
705 | 711 | Util::writeLog('smb', "$function swallowing ".get_class($exception) |
@@ -270,6 +270,9 @@ discard block |
||
270 | 270 | return array_values($calendars); |
271 | 271 | } |
272 | 272 | |
273 | + /** |
|
274 | + * @param string $principalUri |
|
275 | + */ |
|
273 | 276 | public function getUsersOwnCalendars($principalUri) { |
274 | 277 | $principalUri = $this->convertPrincipal($principalUri, true); |
275 | 278 | $fields = array_values($this->propertyMap); |
@@ -1279,7 +1282,7 @@ discard block |
||
1279 | 1282 | * @param string $principalUri |
1280 | 1283 | * @param string $uri |
1281 | 1284 | * @param array $properties |
1282 | - * @return mixed |
|
1285 | + * @return integer |
|
1283 | 1286 | * @throws Forbidden |
1284 | 1287 | */ |
1285 | 1288 | function createSubscription($principalUri, $uri, array $properties) { |
@@ -1685,6 +1688,9 @@ discard block |
||
1685 | 1688 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
1686 | 1689 | } |
1687 | 1690 | |
1691 | + /** |
|
1692 | + * @param boolean $toV2 |
|
1693 | + */ |
|
1688 | 1694 | private function convertPrincipal($principalUri, $toV2 = null) { |
1689 | 1695 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
1690 | 1696 | list(, $name) = URLUtil::splitPath($principalUri); |
@@ -39,9 +39,6 @@ |
||
39 | 39 | namespace OC; |
40 | 40 | |
41 | 41 | use Doctrine\DBAL\Exception\TableExistsException; |
42 | -use OC\App\CodeChecker\CodeChecker; |
|
43 | -use OC\App\CodeChecker\EmptyCheck; |
|
44 | -use OC\App\CodeChecker\PrivateCheck; |
|
45 | 42 | use OC\DB\MigrationService; |
46 | 43 | use OC_App; |
47 | 44 | use OC_DB; |
@@ -71,6 +71,10 @@ |
||
71 | 71 | return $this->findEntities($qb->getSQL(), $qb->getParameters(), $limit, $offset); |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param \Closure $callback |
|
76 | + * @param string $search |
|
77 | + */ |
|
74 | 78 | public function callForAllGroups($callback, $search) { |
75 | 79 | $qb = $this->db->getQueryBuilder(); |
76 | 80 | $qb->select(['*']) |
@@ -26,7 +26,6 @@ |
||
26 | 26 | use OC\User\Account; |
27 | 27 | use OC\User\AccountMapper; |
28 | 28 | use OCP\AppFramework\Db\DoesNotExistException; |
29 | -use OCP\AppFramework\Db\Entity; |
|
30 | 29 | use OCP\AppFramework\Db\MultipleObjectsReturnedException; |
31 | 30 | use OCP\GroupInterface; |
32 | 31 | use OCP\IConfig; |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use OCP\IGroup; |
31 | 31 | use OCP\IGroupManager; |
32 | 32 | use OCP\ILogger; |
33 | -use OCP\IUser; |
|
34 | 33 | use OCP\IUserManager; |
35 | 34 | use Symfony\Component\Console\Command\Command; |
36 | 35 | use Symfony\Component\Console\Helper\ProgressBar; |