Completed
Pull Request — master (#29669)
by Tom
10:31 queued 01:30
created
lib/private/User/Manager.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -39,9 +39,6 @@
 block discarded – undo
39 39
 use OCP\IUser;
40 40
 use OCP\IUserManager;
41 41
 use OCP\IConfig;
42
-use OCP\User\IProvidesExtendedSearchBackend;
43
-use OCP\User\IProvidesEMailBackend;
44
-use OCP\User\IProvidesQuotaBackend;
45 42
 use OCP\UserInterface;
46 43
 use Symfony\Component\EventDispatcher\GenericEvent;
47 44
 
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 	 * TODO isnt this the same as a few lines above?? Why do we need two methods for this. Whats the different with the preCreateUser hook data, this one doesnt send the password
343 343
 	 * @param string $uid
344 344
 	 * @param UserInterface $backend
345
-	 * @return IUser | null
345
+	 * @return null|User | null
346 346
 	 */
347 347
 	public function createUserFromBackend($uid, $password, $backend) {
348 348
 		$this->emit('\OC\User', 'preCreateUser', [$uid, '']);
@@ -421,6 +421,9 @@  discard block
 block discarded – undo
421 421
 		}, $accounts);
422 422
 	}
423 423
 
424
+	/**
425
+	 * @param string $backendClass
426
+	 */
424 427
 	public function getBackend($backendClass) {
425 428
 		if (isset($this->backends[$backendClass])) {
426 429
 			return $this->backends[$backendClass];
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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 *
79 79
 	 * @param Account $account
80 80
 	 * @param AccountMapper $mapper
81
-	 * @param null $emitter
81
+	 * @param Manager $emitter
82 82
 	 * @param IConfig|null $config
83 83
 	 * @param null $urlGenerator
84 84
 	 * @param EventDispatcher|null $eventDispatcher
@@ -452,6 +452,10 @@  discard block
 block discarded – undo
452 452
 		return $url;
453 453
 	}
454 454
 
455
+	/**
456
+	 * @param string $feature
457
+	 * @param string $value
458
+	 */
455 459
 	public function triggerChange($feature, $value = null) {
456 460
 		if ($this->emitter && in_array($feature, $this->account->getUpdatedFields())) {
457 461
 			$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
@@ -41,7 +41,6 @@
 block discarded – undo
41 41
 use OCP\IConfig;
42 42
 use OCP\IUserBackend;
43 43
 use OCP\User\IChangePasswordBackend;
44
-use OCP\UserInterface;
45 44
 use Symfony\Component\EventDispatcher\EventDispatcher;
46 45
 use Symfony\Component\EventDispatcher\GenericEvent;
47 46
 
Please login to merge, or discard this patch.