@@ -134,7 +134,7 @@ |
||
134 | 134 | * @param RequestInterface $request |
135 | 135 | * @param ResponseInterface $response |
136 | 136 | * |
137 | - * @return void|bool |
|
137 | + * @return null|false |
|
138 | 138 | */ |
139 | 139 | public function httpPost(RequestInterface $request, ResponseInterface $response) { |
140 | 140 | $path = $request->getPath(); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param \Sabre\DAVACL\PrincipalBackend\BackendInterface $principalBackend |
33 | - * @param \Sabre\CardDAV\Backend\BackendInterface $carddavBackend |
|
33 | + * @param CardDavBackend $carddavBackend |
|
34 | 34 | * @param string $principalPrefix |
35 | 35 | */ |
36 | 36 | public function __construct(\Sabre\DAVACL\PrincipalBackend\BackendInterface $principalBackend, \Sabre\CardDAV\Backend\BackendInterface $carddavBackend, $principalPrefix = 'principals') { |
@@ -770,7 +770,7 @@ |
||
770 | 770 | |
771 | 771 | /** |
772 | 772 | * @param Share[] $shares |
773 | - * @param $userId |
|
773 | + * @param string $userId |
|
774 | 774 | * @return Share[] The updates shares if no update is found for a share return the original |
775 | 775 | */ |
776 | 776 | private function resolveGroupShares($shares, $userId) { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @param \Doctrine\DBAL\Connection $connection |
|
93 | + * @param IDBConnection $connection |
|
94 | 94 | * @return string[] |
95 | 95 | */ |
96 | 96 | protected function getAllNonUTF8BinTables($connection) { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * The deserialize method is called during xml parsing. |
62 | 62 | * |
63 | 63 | * @param Reader $reader |
64 | - * @return mixed |
|
64 | + * @return null|ShareTypeList |
|
65 | 65 | */ |
66 | 66 | static function xmlDeserialize(Reader $reader) { |
67 | 67 | $shareTypes = []; |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * the next element. |
81 | 81 | * |
82 | 82 | * @param Reader $reader |
83 | - * @return mixed |
|
83 | + * @return null|TagList |
|
84 | 84 | */ |
85 | 85 | static function xmlDeserialize(Reader $reader) { |
86 | 86 | $tags = []; |
@@ -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 |
@@ -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); |
@@ -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); |