Completed
Pull Request — master (#29107)
by Piotr
10:44
created
apps/files_external/lib/Lib/Storage/SMB.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,6 +284,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
lib/private/Share/MailNotifications.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -180,10 +180,10 @@
 block discarded – undo
180 180
 	 * inform recipient about public link share
181 181
 	 *
182 182
 	 * @param string $recipient recipient email address
183
-	 * @param string $filename the shared file
184
-	 * @param string $link the public link
185 183
 	 * @param array $options allows ['cc'] and ['bcc'] recipients
186
-	 * @param int $expiration expiration date (timestamp)
184
+	 * @param string $subject
185
+	 * @param boolean|string $htmlBody
186
+	 * @param boolean|string $textBody
187 187
 	 * @return string[] $result of failed recipients
188 188
 	 */
189 189
 	public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = array()) {
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/CalDavBackend.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,6 +270,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
lib/private/Group/GroupMapper.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -71,6 +71,10 @@
 block discarded – undo
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(['*'])
Please login to merge, or discard this patch.
lib/private/Group/SyncService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/private/User/User.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * @param Account $account
87 87
 	 * @param AccountMapper $mapper
88 88
 	 * @param MembershipManager $membershipManager
89
-	 * @param null $emitter
89
+	 * @param Manager $emitter
90 90
 	 * @param IConfig|null $config
91 91
 	 * @param null $urlGenerator
92 92
 	 * @param EventDispatcher|null $eventDispatcher
@@ -474,6 +474,10 @@  discard block
 block discarded – undo
474 474
 		return $url;
475 475
 	}
476 476
 
477
+	/**
478
+	 * @param string $feature
479
+	 * @param string $value
480
+	 */
477 481
 	public function triggerChange($feature, $value = null) {
478 482
 		if ($this->emitter && in_array($feature, $this->account->getUpdatedFields())) {
479 483
 			$this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@
 block discarded – undo
43 43
 use OCP\IUserBackend;
44 44
 use OCP\IUserSession;
45 45
 use OCP\User\IChangePasswordBackend;
46
-use OCP\UserInterface;
47 46
 use Symfony\Component\EventDispatcher\EventDispatcher;
48 47
 use Symfony\Component\EventDispatcher\GenericEvent;
49 48
 
Please login to merge, or discard this patch.
lib/private/Group/Manager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
263 263
 	 *
264 264
 	 * @param \OC\User\User|null|false $user
265 265
 	 * @param string|null $scope string
266
-	 * @return array with group ids
266
+	 * @return integer[] with group ids
267 267
 	 */
268 268
 	public function getUserGroupIds($user, $scope = null) {
269 269
 		/** @var \OCP\IGroup[] $groupsForUser */
Please login to merge, or discard this patch.