@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Return the number of address books for a principal |
106 | 106 | * |
107 | - * @param $principalUri |
|
107 | + * @param string $principalUri |
|
108 | 108 | * @return int |
109 | 109 | */ |
110 | 110 | public function getAddressBooksForUserCount($principalUri) { |
@@ -195,6 +195,9 @@ discard block |
||
195 | 195 | return array_values($addressBooks); |
196 | 196 | } |
197 | 197 | |
198 | + /** |
|
199 | + * @param string $principalUri |
|
200 | + */ |
|
198 | 201 | public function getUsersOwnAddressBooks($principalUri) { |
199 | 202 | $principalUriOriginal = $principalUri; |
200 | 203 | $principalUri = $this->convertPrincipal($principalUri, true); |
@@ -264,7 +267,8 @@ discard block |
||
264 | 267 | } |
265 | 268 | |
266 | 269 | /** |
267 | - * @param $addressBookUri |
|
270 | + * @param string $addressBookUri |
|
271 | + * @param string $principal |
|
268 | 272 | * @return array|null |
269 | 273 | */ |
270 | 274 | public function getAddressBooksByUri($principal, $addressBookUri) { |
@@ -953,6 +957,7 @@ discard block |
||
953 | 957 | * * readOnly - boolean |
954 | 958 | * * summary - Optional, a description for the share |
955 | 959 | * |
960 | + * @param integer $addressBookId |
|
956 | 961 | * @return array |
957 | 962 | */ |
958 | 963 | public function getShares($addressBookId) { |
@@ -1052,7 +1057,7 @@ discard block |
||
1052 | 1057 | |
1053 | 1058 | /** |
1054 | 1059 | * For shared address books the sharee is set in the ACL of the address book |
1055 | - * @param $addressBookId |
|
1060 | + * @param integer $addressBookId |
|
1056 | 1061 | * @param $acl |
1057 | 1062 | * @return array |
1058 | 1063 | */ |
@@ -1060,6 +1065,9 @@ discard block |
||
1060 | 1065 | return $this->sharingBackend->applyShareAcl($addressBookId, $acl); |
1061 | 1066 | } |
1062 | 1067 | |
1068 | + /** |
|
1069 | + * @param boolean $toV2 |
|
1070 | + */ |
|
1063 | 1071 | private function convertPrincipal($principalUri, $toV2) { |
1064 | 1072 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
1065 | 1073 | list(, $name) = URLUtil::splitPath($principalUri); |
@@ -103,6 +103,11 @@ |
||
103 | 103 | return false; |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param false|string $root |
|
108 | + * @param string $file |
|
109 | + * @param string|false $webRoot |
|
110 | + */ |
|
106 | 111 | public function append($root, $file, $webRoot = null, $throw = true, $scss = false) { |
107 | 112 | if (!$scss) { |
108 | 113 | parent::append($root, $file, $webRoot, $throw); |
@@ -410,6 +410,9 @@ discard block |
||
410 | 410 | } |
411 | 411 | } |
412 | 412 | |
413 | + /** |
|
414 | + * @param string $path |
|
415 | + */ |
|
413 | 416 | private function getParentPath($path) { |
414 | 417 | $parent = dirname($path); |
415 | 418 | if ($parent === '.') { |
@@ -629,7 +632,7 @@ discard block |
||
629 | 632 | * |
630 | 633 | * @param string $mimetype either a full mimetype to search ('text/plain') or only the first part of a mimetype ('image') |
631 | 634 | * where it will search for all mimetypes in the group ('image/*') |
632 | - * @return ICacheEntry[] an array of cache entries where the mimetype matches the search |
|
635 | + * @return CacheEntry[] an array of cache entries where the mimetype matches the search |
|
633 | 636 | */ |
634 | 637 | public function searchByMime($mimetype) { |
635 | 638 | if (strpos($mimetype, '/')) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | /** |
122 | 122 | * List all installed apps |
123 | 123 | * |
124 | - * @return string[] |
|
124 | + * @return integer[] |
|
125 | 125 | */ |
126 | 126 | public function getInstalledApps() { |
127 | 127 | return array_keys($this->getInstalledAppsValues()); |
@@ -382,6 +382,9 @@ discard block |
||
382 | 382 | return in_array($appId, $this->shippedApps, true); |
383 | 383 | } |
384 | 384 | |
385 | + /** |
|
386 | + * @param string $appId |
|
387 | + */ |
|
385 | 388 | private function isAlwaysEnabled($appId) { |
386 | 389 | $alwaysEnabled = $this->getAlwaysEnabledApps(); |
387 | 390 | return in_array($appId, $alwaysEnabled, true); |