Passed
Push — master ( 1ea252...f33305 )
by Joas
16:36 queued 12s
created
lib/private/Authentication/Login/SetUserTimezoneCommand.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -30,33 +30,33 @@
 block discarded – undo
30 30
 
31 31
 class SetUserTimezoneCommand extends ALoginCommand {
32 32
 
33
-	/** @var IConfig */
34
-	private $config;
35
-
36
-	/** @var ISession */
37
-	private $session;
38
-
39
-	public function __construct(IConfig $config,
40
-								ISession $session) {
41
-		$this->config = $config;
42
-		$this->session = $session;
43
-	}
44
-
45
-	public function process(LoginData $loginData): LoginResult {
46
-		if ($loginData->getTimeZoneOffset() !== '') {
47
-			$this->config->setUserValue(
48
-				$loginData->getUser()->getUID(),
49
-				'core',
50
-				'timezone',
51
-				$loginData->getTimeZone()
52
-			);
53
-			$this->session->set(
54
-				'timezone',
55
-				$loginData->getTimeZoneOffset()
56
-			);
57
-		}
58
-
59
-		return $this->processNextOrFinishSuccessfully($loginData);
60
-	}
33
+    /** @var IConfig */
34
+    private $config;
35
+
36
+    /** @var ISession */
37
+    private $session;
38
+
39
+    public function __construct(IConfig $config,
40
+                                ISession $session) {
41
+        $this->config = $config;
42
+        $this->session = $session;
43
+    }
44
+
45
+    public function process(LoginData $loginData): LoginResult {
46
+        if ($loginData->getTimeZoneOffset() !== '') {
47
+            $this->config->setUserValue(
48
+                $loginData->getUser()->getUID(),
49
+                'core',
50
+                'timezone',
51
+                $loginData->getTimeZone()
52
+            );
53
+            $this->session->set(
54
+                'timezone',
55
+                $loginData->getTimeZoneOffset()
56
+            );
57
+        }
58
+
59
+        return $this->processNextOrFinishSuccessfully($loginData);
60
+    }
61 61
 
62 62
 }
Please login to merge, or discard this patch.
lib/public/Support/CrashReport/IMessageReporter.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
  */
31 31
 interface IMessageReporter extends IReporter {
32 32
 
33
-	/**
34
-	 * Report a (error) message
35
-	 *
36
-	 * @param string $message
37
-	 * @param array $context
38
-	 *
39
-	 * @since 17.0.0
40
-	 */
41
-	public function reportMessage(string $message, array $context = []): void;
33
+    /**
34
+     * Report a (error) message
35
+     *
36
+     * @param string $message
37
+     * @param array $context
38
+     *
39
+     * @since 17.0.0
40
+     */
41
+    public function reportMessage(string $message, array $context = []): void;
42 42
 
43 43
 }
Please login to merge, or discard this patch.
lib/public/Support/Subscription/ISupportedApps.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
  */
29 29
 interface ISupportedApps extends ISubscription {
30 30
 
31
-	/**
32
-	 * Fetches the list of app IDs that are supported by the subscription
33
-	 *
34
-	 * @since 17.0.0
35
-	 */
36
-	public function getSupportedApps(): array;
31
+    /**
32
+     * Fetches the list of app IDs that are supported by the subscription
33
+     *
34
+     * @since 17.0.0
35
+     */
36
+    public function getSupportedApps(): array;
37 37
 }
Please login to merge, or discard this patch.
core/templates/twofactorsetupselection.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@
 block discarded – undo
31 31
 		<li>
32 32
 			<a class="two-factor-provider"
33 33
 			   href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.setupProvider',
34
-								[
35
-									'providerId' => $provider->getId(),
36
-									'redirect_url' => $_['redirect_url'],
37
-								]
38
-							)) ?>">
34
+                                [
35
+                                    'providerId' => $provider->getId(),
36
+                                    'redirect_url' => $_['redirect_url'],
37
+                                ]
38
+                            )) ?>">
39 39
 				<?php
40
-				if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) {
41
-					$icon = $provider->getLightIcon();
42
-				} else {
43
-					$icon = image_path('core', 'actions/password-white.svg');
44
-				}
45
-				?>
40
+                if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) {
41
+                    $icon = $provider->getLightIcon();
42
+                } else {
43
+                    $icon = image_path('core', 'actions/password-white.svg');
44
+                }
45
+                ?>
46 46
 				<img src="<?php p($icon) ?>" alt="" />
47 47
 				<div>
48 48
 					<h3><?php p($provider->getDisplayName()) ?></h3>
Please login to merge, or discard this patch.
lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
31 31
  */
32 32
 interface IActivatableAtLogin extends IProvider {
33 33
 
34
-	/**
35
-	 * @param IUser $user
36
-	 *
37
-	 * @return ILoginSetupProvider
38
-	 *
39
-	 * @since 17.0.0
40
-	 */
41
-	public function getLoginSetup(IUser $user): ILoginSetupProvider;
34
+    /**
35
+     * @param IUser $user
36
+     *
37
+     * @return ILoginSetupProvider
38
+     *
39
+     * @since 17.0.0
40
+     */
41
+    public function getLoginSetup(IUser $user): ILoginSetupProvider;
42 42
 
43 43
 }
Please login to merge, or discard this patch.
lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
  */
32 32
 interface ILoginSetupProvider {
33 33
 
34
-	/**
35
-	 * @return Template
36
-	 *
37
-	 * @since 17.0.0
38
-	 */
39
-	public function getBody(): Template;
34
+    /**
35
+     * @return Template
36
+     *
37
+     * @since 17.0.0
38
+     */
39
+    public function getBody(): Template;
40 40
 
41 41
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Exceptions/WipeTokenException.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@
 block discarded – undo
26 26
 use OC\Authentication\Token\IToken;
27 27
 
28 28
 class WipeTokenException extends InvalidTokenException {
29
-	/** @var IToken */
30
-	private $token;
29
+    /** @var IToken */
30
+    private $token;
31 31
 
32
-	public function __construct(IToken $token) {
33
-		parent::__construct();
32
+    public function __construct(IToken $token) {
33
+        parent::__construct();
34 34
 
35
-		$this->token = $token;
36
-	}
35
+        $this->token = $token;
36
+    }
37 37
 
38
-	public function getToken(): IToken {
39
-		return $this->token;
40
-	}
38
+    public function getToken(): IToken {
39
+        return $this->token;
40
+    }
41 41
 }
Please login to merge, or discard this patch.
core/Controller/WipeController.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -35,64 +35,64 @@
 block discarded – undo
35 35
 
36 36
 class WipeController extends Controller {
37 37
 
38
-	/** @var RemoteWipe */
39
-	private $remoteWipe;
38
+    /** @var RemoteWipe */
39
+    private $remoteWipe;
40 40
 
41
-	public function __construct(string $appName,
42
-								IRequest $request,
43
-								RemoteWipe $remoteWipe) {
44
-		parent::__construct($appName, $request);
41
+    public function __construct(string $appName,
42
+                                IRequest $request,
43
+                                RemoteWipe $remoteWipe) {
44
+        parent::__construct($appName, $request);
45 45
 
46
-		$this->remoteWipe = $remoteWipe;
47
-	}
46
+        $this->remoteWipe = $remoteWipe;
47
+    }
48 48
 
49
-	/**
50
-	 * @NoAdminRequired
51
-	 * @NoCSRFRequired
52
-	 * @PublicPage
53
-	 *
54
-	 * @AnonRateThrottle(limit=10, period=300)
55
-	 *
56
-	 * @param string $token
57
-	 *
58
-	 * @return JSONResponse
59
-	 */
60
-	public function checkWipe(string $token): JSONResponse {
61
-		try {
62
-			if ($this->remoteWipe->start($token)) {
63
-				return new JSONResponse([
64
-					'wipe' => true
65
-				]);
66
-			}
49
+    /**
50
+     * @NoAdminRequired
51
+     * @NoCSRFRequired
52
+     * @PublicPage
53
+     *
54
+     * @AnonRateThrottle(limit=10, period=300)
55
+     *
56
+     * @param string $token
57
+     *
58
+     * @return JSONResponse
59
+     */
60
+    public function checkWipe(string $token): JSONResponse {
61
+        try {
62
+            if ($this->remoteWipe->start($token)) {
63
+                return new JSONResponse([
64
+                    'wipe' => true
65
+                ]);
66
+            }
67 67
 
68
-			return new JSONResponse([], Http::STATUS_NOT_FOUND);
69
-		} catch (InvalidTokenException $e) {
70
-			return new JSONResponse([], Http::STATUS_NOT_FOUND);
71
-		}
72
-	}
68
+            return new JSONResponse([], Http::STATUS_NOT_FOUND);
69
+        } catch (InvalidTokenException $e) {
70
+            return new JSONResponse([], Http::STATUS_NOT_FOUND);
71
+        }
72
+    }
73 73
 
74 74
 
75
-	/**
76
-	 * @NoAdminRequired
77
-	 * @NoCSRFRequired
78
-	 * @PublicPage
79
-	 *
80
-	 * @AnonRateThrottle(limit=10, period=300)
81
-	 *
82
-	 * @param string $token
83
-	 *
84
-	 * @return JSONResponse
85
-	 */
86
-	public function wipeDone(string $token): JSONResponse {
87
-		try {
88
-			if ($this->remoteWipe->finish($token)) {
89
-				return new JSONResponse([]);
90
-			}
75
+    /**
76
+     * @NoAdminRequired
77
+     * @NoCSRFRequired
78
+     * @PublicPage
79
+     *
80
+     * @AnonRateThrottle(limit=10, period=300)
81
+     *
82
+     * @param string $token
83
+     *
84
+     * @return JSONResponse
85
+     */
86
+    public function wipeDone(string $token): JSONResponse {
87
+        try {
88
+            if ($this->remoteWipe->finish($token)) {
89
+                return new JSONResponse([]);
90
+            }
91 91
 
92
-			return new JSONResponse([], Http::STATUS_NOT_FOUND);
93
-		} catch (InvalidTokenException $e) {
94
-			return new JSONResponse([], Http::STATUS_NOT_FOUND);
95
-		}
96
-	}
92
+            return new JSONResponse([], Http::STATUS_NOT_FOUND);
93
+        } catch (InvalidTokenException $e) {
94
+            return new JSONResponse([], Http::STATUS_NOT_FOUND);
95
+        }
96
+    }
97 97
 
98 98
 }
Please login to merge, or discard this patch.
lib/private/L10N/LazyL10N.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -28,43 +28,43 @@
 block discarded – undo
28 28
 
29 29
 class LazyL10N implements IL10N {
30 30
 
31
-	/** @var IL10N */
32
-	private $l;
31
+    /** @var IL10N */
32
+    private $l;
33 33
 
34
-	/** @var \Closure */
35
-	private $factory;
34
+    /** @var \Closure */
35
+    private $factory;
36 36
 
37 37
 
38
-	public function __construct(\Closure $factory) {
39
-		$this->factory = $factory;
40
-	}
38
+    public function __construct(\Closure $factory) {
39
+        $this->factory = $factory;
40
+    }
41 41
 
42
-	private function getL(): IL10N {
43
-		if ($this->l === null) {
44
-			$this->l = ($this->factory)();
45
-		}
42
+    private function getL(): IL10N {
43
+        if ($this->l === null) {
44
+            $this->l = ($this->factory)();
45
+        }
46 46
 
47
-		return $this->l;
48
-	}
47
+        return $this->l;
48
+    }
49 49
 
50
-	public function t(string $text, $parameters = []): string {
51
-		return $this->getL()->t($text, $parameters);
52
-	}
50
+    public function t(string $text, $parameters = []): string {
51
+        return $this->getL()->t($text, $parameters);
52
+    }
53 53
 
54
-	public function n(string $text_singular, string $text_plural, int $count, array $parameters = []): string {
55
-		return $this->getL()->n($text_singular, $text_plural, $count, $parameters);
56
-	}
54
+    public function n(string $text_singular, string $text_plural, int $count, array $parameters = []): string {
55
+        return $this->getL()->n($text_singular, $text_plural, $count, $parameters);
56
+    }
57 57
 
58
-	public function l(string $type, $data, array $options = []) {
59
-		return $this->getL()->l($type, $data, $options);
60
-	}
58
+    public function l(string $type, $data, array $options = []) {
59
+        return $this->getL()->l($type, $data, $options);
60
+    }
61 61
 
62
-	public function getLanguageCode(): string {
63
-		return $this->getL()->getLanguageCode();
64
-	}
62
+    public function getLanguageCode(): string {
63
+        return $this->getL()->getLanguageCode();
64
+    }
65 65
 
66
-	public function getLocaleCode(): string {
67
-		return $this->getL()->getLocaleCode();
68
-	}
66
+    public function getLocaleCode(): string {
67
+        return $this->getL()->getLocaleCode();
68
+    }
69 69
 
70 70
 }
Please login to merge, or discard this patch.