Completed
Pull Request — master (#27906)
by Tom
10:16
created
lib/private/User/AccountMapper.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
 		return $this->findEntities($qb->getSQL(), $qb->getParameters(), $limit, $offset);
137 137
 	}
138 138
 
139
+	/**
140
+	 * @param boolean $hasLoggedIn
141
+	 */
139 142
 	public function getUserCountPerBackend($hasLoggedIn) {
140 143
 		$qb = $this->db->getQueryBuilder();
141 144
 		$qb->select(['backend', $qb->createFunction('count(*) as `count`')])
@@ -158,6 +161,9 @@  discard block
 block discarded – undo
158 161
 		return $return;
159 162
 	}
160 163
 
164
+	/**
165
+	 * @param boolean $hasLoggedIn
166
+	 */
161 167
 	public function getUserCount($hasLoggedIn) {
162 168
 		$qb = $this->db->getQueryBuilder();
163 169
 		$qb->select([$qb->createFunction('count(*) as `count`')])
@@ -174,6 +180,11 @@  discard block
 block discarded – undo
174 180
 		return (int) $data['count'];
175 181
 	}
176 182
 
183
+	/**
184
+	 * @param \Closure $callback
185
+	 * @param string $search
186
+	 * @param boolean $onlySeen
187
+	 */
177 188
 	public function callForAllUsers($callback, $search, $onlySeen) {
178 189
 		$qb = $this->db->getQueryBuilder();
179 190
 		$qb->select(['*'])
Please login to merge, or discard this patch.
lib/private/User/User.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 * @param Account $account
76 76
 	 * @param AccountMapper $mapper
77 77
 	 * @param AccountTermMapper $termMapper
78
-	 * @param null $emitter
78
+	 * @param Manager $emitter
79 79
 	 * @param IConfig|null $config
80 80
 	 * @param null $urlGenerator
81 81
 	 * @param EventDispatcher|null $eventDispatcher
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	/**
102 102
 	 * get the user id
103 103
 	 *
104
-	 * @return string
104
+	 * @return integer
105 105
 	 */
106 106
 	public function getUID() {
107 107
 		return $this->account->getUserId();
@@ -437,6 +437,10 @@  discard block
 block discarded – undo
437 437
 		return $url;
438 438
 	}
439 439
 
440
+	/**
441
+	 * @param string $feature
442
+	 * @param string $value
443
+	 */
440 444
 	public function triggerChange($feature, $value = null) {
441 445
 		if ($this->emitter) {
442 446
 			$this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]);
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.