Completed
Push — master ( 247b25...4111bd )
by Thomas
26:36 queued 10s
created
lib/private/Authentication/Listeners/UserDeletedStoreCleanupListener.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,18 +34,18 @@
 block discarded – undo
34 34
  * @template-implements IEventListener<\OCP\User\Events\UserDeletedEvent>
35 35
  */
36 36
 class UserDeletedStoreCleanupListener implements IEventListener {
37
-	/** @var Registry */
38
-	private $registry;
37
+    /** @var Registry */
38
+    private $registry;
39 39
 
40
-	public function __construct(Registry $registry) {
41
-		$this->registry = $registry;
42
-	}
40
+    public function __construct(Registry $registry) {
41
+        $this->registry = $registry;
42
+    }
43 43
 
44
-	public function handle(Event $event): void {
45
-		if (!($event instanceof UserDeletedEvent)) {
46
-			return;
47
-		}
44
+    public function handle(Event $event): void {
45
+        if (!($event instanceof UserDeletedEvent)) {
46
+            return;
47
+        }
48 48
 
49
-		$this->registry->deleteUserData($event->getUser());
50
-	}
49
+        $this->registry->deleteUserData($event->getUser());
50
+    }
51 51
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Login/WebAuthnLoginCommand.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -28,20 +28,20 @@
 block discarded – undo
28 28
 use OCP\IUserManager;
29 29
 
30 30
 class WebAuthnLoginCommand extends ALoginCommand {
31
-	/** @var IUserManager */
32
-	private $userManager;
31
+    /** @var IUserManager */
32
+    private $userManager;
33 33
 
34
-	public function __construct(IUserManager $userManager) {
35
-		$this->userManager = $userManager;
36
-	}
34
+    public function __construct(IUserManager $userManager) {
35
+        $this->userManager = $userManager;
36
+    }
37 37
 
38
-	public function process(LoginData $loginData): LoginResult {
39
-		$user = $this->userManager->get($loginData->getUsername());
40
-		$loginData->setUser($user);
41
-		if ($user === null) {
42
-			$loginData->setUser(false);
43
-		}
38
+    public function process(LoginData $loginData): LoginResult {
39
+        $user = $this->userManager->get($loginData->getUsername());
40
+        $loginData->setUser($user);
41
+        if ($user === null) {
42
+            $loginData->setUser(false);
43
+        }
44 44
 
45
-		return $this->processNextOrFinishSuccessfully($loginData);
46
-	}
45
+        return $this->processNextOrFinishSuccessfully($loginData);
46
+    }
47 47
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Login/ClearLostPasswordTokensCommand.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,23 +28,23 @@
 block discarded – undo
28 28
 use OCP\IConfig;
29 29
 
30 30
 class ClearLostPasswordTokensCommand extends ALoginCommand {
31
-	/** @var IConfig */
32
-	private $config;
31
+    /** @var IConfig */
32
+    private $config;
33 33
 
34
-	public function __construct(IConfig $config) {
35
-		$this->config = $config;
36
-	}
34
+    public function __construct(IConfig $config) {
35
+        $this->config = $config;
36
+    }
37 37
 
38
-	/**
39
-	 * User has successfully logged in, now remove the password reset link, when it is available
40
-	 */
41
-	public function process(LoginData $loginData): LoginResult {
42
-		$this->config->deleteUserValue(
43
-			$loginData->getUser()->getUID(),
44
-			'core',
45
-			'lostpassword'
46
-		);
38
+    /**
39
+     * User has successfully logged in, now remove the password reset link, when it is available
40
+     */
41
+    public function process(LoginData $loginData): LoginResult {
42
+        $this->config->deleteUserValue(
43
+            $loginData->getUser()->getUID(),
44
+            'core',
45
+            'lostpassword'
46
+        );
47 47
 
48
-		return $this->processNextOrFinishSuccessfully($loginData);
49
-	}
48
+        return $this->processNextOrFinishSuccessfully($loginData);
49
+    }
50 50
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Login/CompleteLoginCommand.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -28,22 +28,22 @@
 block discarded – undo
28 28
 use OC\User\Session;
29 29
 
30 30
 class CompleteLoginCommand extends ALoginCommand {
31
-	/** @var Session */
32
-	private $userSession;
31
+    /** @var Session */
32
+    private $userSession;
33 33
 
34
-	public function __construct(Session $userSession) {
35
-		$this->userSession = $userSession;
36
-	}
34
+    public function __construct(Session $userSession) {
35
+        $this->userSession = $userSession;
36
+    }
37 37
 
38
-	public function process(LoginData $loginData): LoginResult {
39
-		$this->userSession->completeLogin(
40
-			$loginData->getUser(),
41
-			[
42
-				'loginName' => $loginData->getUsername(),
43
-				'password' => $loginData->getPassword(),
44
-			]
45
-		);
38
+    public function process(LoginData $loginData): LoginResult {
39
+        $this->userSession->completeLogin(
40
+            $loginData->getUser(),
41
+            [
42
+                'loginName' => $loginData->getUsername(),
43
+                'password' => $loginData->getPassword(),
44
+            ]
45
+        );
46 46
 
47
-		return $this->processNextOrFinishSuccessfully($loginData);
48
-	}
47
+        return $this->processNextOrFinishSuccessfully($loginData);
48
+    }
49 49
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Login/UidLoginCommand.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -29,27 +29,27 @@
 block discarded – undo
29 29
 use OCP\IUser;
30 30
 
31 31
 class UidLoginCommand extends ALoginCommand {
32
-	/** @var Manager */
33
-	private $userManager;
34
-
35
-	public function __construct(Manager $userManager) {
36
-		$this->userManager = $userManager;
37
-	}
38
-
39
-	/**
40
-	 * @param LoginData $loginData
41
-	 *
42
-	 * @return LoginResult
43
-	 */
44
-	public function process(LoginData $loginData): LoginResult {
45
-		/* @var $loginResult IUser */
46
-		$user = $this->userManager->checkPasswordNoLogging(
47
-			$loginData->getUsername(),
48
-			$loginData->getPassword()
49
-		);
50
-
51
-		$loginData->setUser($user);
52
-
53
-		return $this->processNextOrFinishSuccessfully($loginData);
54
-	}
32
+    /** @var Manager */
33
+    private $userManager;
34
+
35
+    public function __construct(Manager $userManager) {
36
+        $this->userManager = $userManager;
37
+    }
38
+
39
+    /**
40
+     * @param LoginData $loginData
41
+     *
42
+     * @return LoginResult
43
+     */
44
+    public function process(LoginData $loginData): LoginResult {
45
+        /* @var $loginResult IUser */
46
+        $user = $this->userManager->checkPasswordNoLogging(
47
+            $loginData->getUsername(),
48
+            $loginData->getPassword()
49
+        );
50
+
51
+        $loginData->setUser($user);
52
+
53
+        return $this->processNextOrFinishSuccessfully($loginData);
54
+    }
55 55
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Login/PreLoginHookCommand.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -30,25 +30,25 @@
 block discarded – undo
30 30
 use OCP\IUserManager;
31 31
 
32 32
 class PreLoginHookCommand extends ALoginCommand {
33
-	/** @var IUserManager */
34
-	private $userManager;
33
+    /** @var IUserManager */
34
+    private $userManager;
35 35
 
36
-	public function __construct(IUserManager $userManager) {
37
-		$this->userManager = $userManager;
38
-	}
36
+    public function __construct(IUserManager $userManager) {
37
+        $this->userManager = $userManager;
38
+    }
39 39
 
40
-	public function process(LoginData $loginData): LoginResult {
41
-		if ($this->userManager instanceof PublicEmitter) {
42
-			$this->userManager->emit(
43
-				'\OC\User',
44
-				'preLogin',
45
-				[
46
-					$loginData->getUsername(),
47
-					$loginData->getPassword(),
48
-				]
49
-			);
50
-		}
40
+    public function process(LoginData $loginData): LoginResult {
41
+        if ($this->userManager instanceof PublicEmitter) {
42
+            $this->userManager->emit(
43
+                '\OC\User',
44
+                'preLogin',
45
+                [
46
+                    $loginData->getUsername(),
47
+                    $loginData->getPassword(),
48
+                ]
49
+            );
50
+        }
51 51
 
52
-		return $this->processNextOrFinishSuccessfully($loginData);
53
-	}
52
+        return $this->processNextOrFinishSuccessfully($loginData);
53
+    }
54 54
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Login/ALoginCommand.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,21 +26,21 @@
 block discarded – undo
26 26
 namespace OC\Authentication\Login;
27 27
 
28 28
 abstract class ALoginCommand {
29
-	/** @var ALoginCommand */
30
-	protected $next;
29
+    /** @var ALoginCommand */
30
+    protected $next;
31 31
 
32
-	public function setNext(ALoginCommand $next): ALoginCommand {
33
-		$this->next = $next;
34
-		return $next;
35
-	}
32
+    public function setNext(ALoginCommand $next): ALoginCommand {
33
+        $this->next = $next;
34
+        return $next;
35
+    }
36 36
 
37
-	protected function processNextOrFinishSuccessfully(LoginData $loginData): LoginResult {
38
-		if ($this->next !== null) {
39
-			return $this->next->process($loginData);
40
-		} else {
41
-			return LoginResult::success($loginData);
42
-		}
43
-	}
37
+    protected function processNextOrFinishSuccessfully(LoginData $loginData): LoginResult {
38
+        if ($this->next !== null) {
39
+            return $this->next->process($loginData);
40
+        } else {
41
+            return LoginResult::success($loginData);
42
+        }
43
+    }
44 44
 
45
-	abstract public function process(LoginData $loginData): LoginResult;
45
+    abstract public function process(LoginData $loginData): LoginResult;
46 46
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Login/UpdateLastPasswordConfirmCommand.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,19 +28,19 @@
 block discarded – undo
28 28
 use OCP\ISession;
29 29
 
30 30
 class UpdateLastPasswordConfirmCommand extends ALoginCommand {
31
-	/** @var ISession */
32
-	private $session;
31
+    /** @var ISession */
32
+    private $session;
33 33
 
34
-	public function __construct(ISession $session) {
35
-		$this->session = $session;
36
-	}
34
+    public function __construct(ISession $session) {
35
+        $this->session = $session;
36
+    }
37 37
 
38
-	public function process(LoginData $loginData): LoginResult {
39
-		$this->session->set(
40
-			'last-password-confirm',
41
-			$loginData->getUser()->getLastLogin()
42
-		);
38
+    public function process(LoginData $loginData): LoginResult {
39
+        $this->session->set(
40
+            'last-password-confirm',
41
+            $loginData->getUser()->getLastLogin()
42
+        );
43 43
 
44
-		return $this->processNextOrFinishSuccessfully($loginData);
45
-	}
44
+        return $this->processNextOrFinishSuccessfully($loginData);
45
+    }
46 46
 }
Please login to merge, or discard this patch.
lib/private/App/AppStore/Bundles/GroupwareBundle.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -25,22 +25,22 @@
 block discarded – undo
25 25
 namespace OC\App\AppStore\Bundles;
26 26
 
27 27
 class GroupwareBundle extends Bundle {
28
-	/**
29
-	 * {@inheritDoc}
30
-	 */
31
-	public function getName() {
32
-		return $this->l10n->t('Groupware bundle');
33
-	}
28
+    /**
29
+     * {@inheritDoc}
30
+     */
31
+    public function getName() {
32
+        return $this->l10n->t('Groupware bundle');
33
+    }
34 34
 
35
-	/**
36
-	 * {@inheritDoc}
37
-	 */
38
-	public function getAppIdentifiers() {
39
-		return [
40
-			'calendar',
41
-			'contacts',
42
-			'deck',
43
-			'mail'
44
-		];
45
-	}
35
+    /**
36
+     * {@inheritDoc}
37
+     */
38
+    public function getAppIdentifiers() {
39
+        return [
40
+            'calendar',
41
+            'contacts',
42
+            'deck',
43
+            'mail'
44
+        ];
45
+    }
46 46
 }
Please login to merge, or discard this patch.