@@ -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); |
@@ -30,6 +30,9 @@ discard block |
||
30 | 30 | /** @var JSCombiner */ |
31 | 31 | protected $jsCombiner; |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $theme |
|
35 | + */ |
|
33 | 36 | public function __construct(\OCP\ILogger $logger, $theme, array $core_map, array $party_map, JSCombiner $JSCombiner) { |
34 | 37 | parent::__construct($logger, $theme, $core_map, $party_map); |
35 | 38 | |
@@ -91,6 +94,9 @@ discard block |
||
91 | 94 | public function doFindTheme($script) { |
92 | 95 | } |
93 | 96 | |
97 | + /** |
|
98 | + * @param string $file |
|
99 | + */ |
|
94 | 100 | protected function cacheAndAppendCombineJsonIfExist($root, $file, $app = 'core') { |
95 | 101 | if (is_file($root.'/'.$file)) { |
96 | 102 | if ($this->jsCombiner->process($root, $file, $app)) { |
@@ -98,6 +98,9 @@ |
||
98 | 98 | throw new Forbidden('Permission denied to delete this folder'); |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @return string |
|
103 | + */ |
|
101 | 104 | public function getName() { |
102 | 105 | list(,$name) = Uri\split($this->principalInfo['uri']); |
103 | 106 | return $name; |
@@ -97,6 +97,9 @@ |
||
97 | 97 | } |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param string $pattern |
|
102 | + */ |
|
100 | 103 | protected function getInvalidObjects($pattern) { |
101 | 104 | $query = $this->db->getQueryBuilder(); |
102 | 105 | $query->select(['calendarid', 'uri']) |
@@ -193,10 +193,10 @@ discard block |
||
193 | 193 | * publish activity if a file/folder was shared by mail |
194 | 194 | * |
195 | 195 | * @param $subject |
196 | - * @param $parameters |
|
197 | - * @param $affectedUser |
|
196 | + * @param string[] $parameters |
|
197 | + * @param string $affectedUser |
|
198 | 198 | * @param $fileId |
199 | - * @param $filePath |
|
199 | + * @param string $filePath |
|
200 | 200 | */ |
201 | 201 | protected function publishActivity($subject, $parameters, $affectedUser, $fileId, $filePath) { |
202 | 202 | $event = $this->activityManager->generateEvent(); |
@@ -248,6 +248,12 @@ discard block |
||
248 | 248 | |
249 | 249 | } |
250 | 250 | |
251 | + /** |
|
252 | + * @param string $link |
|
253 | + * @param string $owner |
|
254 | + * @param string $initiator |
|
255 | + * @param string $shareWith |
|
256 | + */ |
|
251 | 257 | protected function sendMailNotification($filename, $link, $owner, $initiator, $shareWith) { |
252 | 258 | $ownerUser = $this->userManager->get($owner); |
253 | 259 | $initiatorUser = $this->userManager->get($initiator); |
@@ -277,6 +283,7 @@ discard block |
||
277 | 283 | * @param $link |
278 | 284 | * @param $owner |
279 | 285 | * @param $initiator |
286 | + * @param string $template |
|
280 | 287 | * @return string plain text mail |
281 | 288 | * @throws HintException |
282 | 289 | */ |
@@ -304,6 +311,7 @@ discard block |
||
304 | 311 | * @param string $filename |
305 | 312 | * @param string $initiator |
306 | 313 | * @param string $shareWith |
314 | + * @param string $password |
|
307 | 315 | */ |
308 | 316 | protected function sendPassword($filename, $initiator, $shareWith, $password) { |
309 | 317 | |
@@ -332,6 +340,7 @@ discard block |
||
332 | 340 | * @param string $filename |
333 | 341 | * @param string $initiator |
334 | 342 | * @param string $password |
343 | + * @param string $template |
|
335 | 344 | * @return string plain text mail |
336 | 345 | * @throws HintException |
337 | 346 | */ |
@@ -790,7 +799,7 @@ discard block |
||
790 | 799 | /** |
791 | 800 | * get database row of a give share |
792 | 801 | * |
793 | - * @param $id |
|
802 | + * @param integer $id |
|
794 | 803 | * @return array |
795 | 804 | * @throws ShareNotFound |
796 | 805 | */ |
@@ -1100,6 +1100,9 @@ |
||
1100 | 1100 | return $share; |
1101 | 1101 | } |
1102 | 1102 | |
1103 | + /** |
|
1104 | + * @param \OCP\Share\IShare $share |
|
1105 | + */ |
|
1103 | 1106 | protected function checkExpireDate($share) { |
1104 | 1107 | if ($share->getExpirationDate() !== null && |
1105 | 1108 | $share->getExpirationDate() <= new \DateTime()) { |