Completed
Pull Request — master (#28171)
by Tom
11:57
created
apps/dav/lib/CardDAV/CardDavBackend.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -214,7 +214,8 @@  discard block
 block discarded – undo
214 214
 	}
215 215
 
216 216
 	/**
217
-	 * @param $addressBookUri
217
+	 * @param string $addressBookUri
218
+	 * @param string $principal
218 219
 	 * @return array|null
219 220
 	 */
220 221
 	public function getAddressBooksByUri($principal, $addressBookUri) {
@@ -896,6 +897,7 @@  discard block
 block discarded – undo
896 897
 	 *   * readOnly - boolean
897 898
 	 *   * summary - Optional, a description for the share
898 899
 	 *
900
+	 * @param integer $addressBookId
899 901
 	 * @return array
900 902
 	 */
901 903
 	public function getShares($addressBookId) {
@@ -949,7 +951,7 @@  discard block
 block discarded – undo
949 951
 	 * read vCard data into a vCard object
950 952
 	 *
951 953
 	 * @param string $cardData
952
-	 * @return VCard
954
+	 * @return \Sabre\VObject\Parser\Sabre\VObject\Document|null
953 955
 	 */
954 956
 	protected function readCard($cardData) {
955 957
 		return  Reader::read($cardData);
@@ -995,7 +997,7 @@  discard block
 block discarded – undo
995 997
 
996 998
 	/**
997 999
 	 * For shared address books the sharee is set in the ACL of the address book
998
-	 * @param $addressBookId
1000
+	 * @param integer $addressBookId
999 1001
 	 * @param $acl
1000 1002
 	 * @return array
1001 1003
 	 */
@@ -1003,6 +1005,9 @@  discard block
 block discarded – undo
1003 1005
 		return $this->sharingBackend->applyShareAcl($addressBookId, $acl);
1004 1006
 	}
1005 1007
 
1008
+	/**
1009
+	 * @param boolean $toV2
1010
+	 */
1006 1011
 	private function convertPrincipal($principalUri, $toV2 = null) {
1007 1012
 		if ($this->principalBackend->getPrincipalPrefix() === 'principals') {
1008 1013
 			list(, $name) = URLUtil::splitPath($principalUri);
Please login to merge, or discard this patch.
core/Migrations/Version20170221114437.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,12 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace OC\Migrations;
3 3
 
4
-use OC\User\Account;
5 4
 use OC\User\AccountMapper;
6 5
 use OC\User\AccountTermMapper;
7 6
 use OC\User\Database;
8 7
 use OC\User\SyncService;
9
-use OCP\IConfig;
10 8
 use OCP\Migration\ISimpleMigration;
11 9
 use OCP\Migration\IOutput;
12 10
 
Please login to merge, or discard this patch.
lib/private/User/AccountMapper.php 1 patch
Doc Comments   +14 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 
42 42
 	/**
43 43
 	 * Delegate to term mapper to avoid needing to inject term mapper
44
-	 * @param $account_id
45
-	 * @param array $terms
44
+	 * @param integer $account_id
45
+	 * @param string[] $terms
46 46
 	 */
47 47
 	public function setTermsForAccount($account_id, array $terms) {
48 48
 		$this->termMapper->setTermsForAccount($account_id, $terms);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 	/**
52 52
 	 * Delegate to term mapper to avoid needing to inject term mapper
53
-	 * @param $account_id
53
+	 * @param integer $account_id
54 54
 	 * @return AccountTerm[] $terms
55 55
 	 */
56 56
 	public function findByAccountId($account_id) {
@@ -162,6 +162,9 @@  discard block
 block discarded – undo
162 162
 		return $this->findEntities($qb->getSQL(), $qb->getParameters(), $limit, $offset);
163 163
 	}
164 164
 
165
+	/**
166
+	 * @param boolean $hasLoggedIn
167
+	 */
165 168
 	public function getUserCountPerBackend($hasLoggedIn) {
166 169
 		$qb = $this->db->getQueryBuilder();
167 170
 		$qb->select(['backend', $qb->createFunction('count(*) as `count`')])
@@ -184,6 +187,9 @@  discard block
 block discarded – undo
184 187
 		return $return;
185 188
 	}
186 189
 
190
+	/**
191
+	 * @param boolean $hasLoggedIn
192
+	 */
187 193
 	public function getUserCount($hasLoggedIn) {
188 194
 		$qb = $this->db->getQueryBuilder();
189 195
 		$qb->select([$qb->createFunction('count(*) as `count`')])
@@ -200,6 +206,11 @@  discard block
 block discarded – undo
200 206
 		return (int) $data['count'];
201 207
 	}
202 208
 
209
+	/**
210
+	 * @param \Closure $callback
211
+	 * @param string $search
212
+	 * @param boolean $onlySeen
213
+	 */
203 214
 	public function callForAllUsers($callback, $search, $onlySeen) {
204 215
 		$qb = $this->db->getQueryBuilder();
205 216
 		$qb->select(['*'])
Please login to merge, or discard this patch.
lib/private/App/AppManager.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	/**
123 123
 	 * List all installed apps
124 124
 	 *
125
-	 * @return string[]
125
+	 * @return integer[]
126 126
 	 */
127 127
 	public function getInstalledApps() {
128 128
 		return array_keys($this->getInstalledAppsValues());
@@ -355,6 +355,9 @@  discard block
 block discarded – undo
355 355
 		return in_array($appId, $this->shippedApps);
356 356
 	}
357 357
 
358
+	/**
359
+	 * @param string $appId
360
+	 */
358 361
 	private function isAlwaysEnabled($appId) {
359 362
 		$alwaysEnabled = $this->getAlwaysEnabledApps();
360 363
 		return in_array($appId, $alwaysEnabled);
@@ -383,7 +386,7 @@  discard block
 block discarded – undo
383 386
 	/**
384 387
 	 * @param string $package package path
385 388
 	 * @param bool $skipMigrations whether to skip migrations, which would only install the code
386
-	 * @return string|false app id or false in case of error
389
+	 * @return integer app id or false in case of error
387 390
 	 * @since 10.0
388 391
 	 */
389 392
 	public function installApp($package, $skipMigrations = false) {
@@ -400,7 +403,7 @@  discard block
 block discarded – undo
400 403
 
401 404
 	/**
402 405
 	 * @param string $package
403
-	 * @return mixed
406
+	 * @return boolean
404 407
 	 * @since 10.0
405 408
 	 */
406 409
 	public function updateApp($package) {
Please login to merge, or discard this patch.