Passed
Push — master ( b6c034...979f40 )
by John
40:53 queued 23:59
created
apps/settings/lib/Settings/Personal/Security/Authtokens.php 1 patch
Indentation   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -40,79 +40,79 @@
 block discarded – undo
40 40
 
41 41
 class Authtokens implements ISettings {
42 42
 
43
-	/** @var IAuthTokenProvider */
44
-	private $tokenProvider;
45
-
46
-	/** @var ISession */
47
-	private $session;
48
-
49
-	/** @var IInitialState */
50
-	private $initialState;
51
-
52
-	/** @var string|null */
53
-	private $uid;
54
-
55
-	/** @var IUserSession */
56
-	private $userSession;
57
-
58
-	public function __construct(IAuthTokenProvider $tokenProvider,
59
-								ISession $session,
60
-								IUserSession $userSession,
61
-								IInitialState $initialState,
62
-								?string $UserId) {
63
-		$this->tokenProvider = $tokenProvider;
64
-		$this->session = $session;
65
-		$this->initialState = $initialState;
66
-		$this->uid = $UserId;
67
-		$this->userSession = $userSession;
68
-	}
69
-
70
-	public function getForm(): TemplateResponse {
71
-		$this->initialState->provideInitialState(
72
-			'app_tokens',
73
-			$this->getAppTokens()
74
-		);
75
-
76
-		$this->initialState->provideInitialState(
77
-			'can_create_app_token',
78
-			$this->userSession->getImpersonatingUserID() === null
79
-		);
80
-
81
-		return new TemplateResponse('settings', 'settings/personal/security/authtokens');
82
-	}
83
-
84
-	public function getSection(): string {
85
-		return 'security';
86
-	}
87
-
88
-	public function getPriority(): int {
89
-		return 100;
90
-	}
91
-
92
-	private function getAppTokens(): array {
93
-		$tokens = $this->tokenProvider->getTokenByUser($this->uid);
94
-
95
-		try {
96
-			$sessionId = $this->session->getId();
97
-		} catch (SessionNotAvailableException $ex) {
98
-			return [];
99
-		}
100
-		try {
101
-			$sessionToken = $this->tokenProvider->getToken($sessionId);
102
-		} catch (InvalidTokenException $ex) {
103
-			return [];
104
-		}
105
-
106
-		return array_map(function (IToken $token) use ($sessionToken) {
107
-			$data = $token->jsonSerialize();
108
-			$data['canDelete'] = true;
109
-			$data['canRename'] = $token instanceof INamedToken;
110
-			if ($sessionToken->getId() === $token->getId()) {
111
-				$data['canDelete'] = false;
112
-				$data['canRename'] = false;
113
-				$data['current'] = true;
114
-			}
115
-			return $data;
116
-		}, $tokens);
117
-	}
43
+    /** @var IAuthTokenProvider */
44
+    private $tokenProvider;
45
+
46
+    /** @var ISession */
47
+    private $session;
48
+
49
+    /** @var IInitialState */
50
+    private $initialState;
51
+
52
+    /** @var string|null */
53
+    private $uid;
54
+
55
+    /** @var IUserSession */
56
+    private $userSession;
57
+
58
+    public function __construct(IAuthTokenProvider $tokenProvider,
59
+                                ISession $session,
60
+                                IUserSession $userSession,
61
+                                IInitialState $initialState,
62
+                                ?string $UserId) {
63
+        $this->tokenProvider = $tokenProvider;
64
+        $this->session = $session;
65
+        $this->initialState = $initialState;
66
+        $this->uid = $UserId;
67
+        $this->userSession = $userSession;
68
+    }
69
+
70
+    public function getForm(): TemplateResponse {
71
+        $this->initialState->provideInitialState(
72
+            'app_tokens',
73
+            $this->getAppTokens()
74
+        );
75
+
76
+        $this->initialState->provideInitialState(
77
+            'can_create_app_token',
78
+            $this->userSession->getImpersonatingUserID() === null
79
+        );
80
+
81
+        return new TemplateResponse('settings', 'settings/personal/security/authtokens');
82
+    }
83
+
84
+    public function getSection(): string {
85
+        return 'security';
86
+    }
87
+
88
+    public function getPriority(): int {
89
+        return 100;
90
+    }
91
+
92
+    private function getAppTokens(): array {
93
+        $tokens = $this->tokenProvider->getTokenByUser($this->uid);
94
+
95
+        try {
96
+            $sessionId = $this->session->getId();
97
+        } catch (SessionNotAvailableException $ex) {
98
+            return [];
99
+        }
100
+        try {
101
+            $sessionToken = $this->tokenProvider->getToken($sessionId);
102
+        } catch (InvalidTokenException $ex) {
103
+            return [];
104
+        }
105
+
106
+        return array_map(function (IToken $token) use ($sessionToken) {
107
+            $data = $token->jsonSerialize();
108
+            $data['canDelete'] = true;
109
+            $data['canRename'] = $token instanceof INamedToken;
110
+            if ($sessionToken->getId() === $token->getId()) {
111
+                $data['canDelete'] = false;
112
+                $data['canRename'] = false;
113
+                $data['current'] = true;
114
+            }
115
+            return $data;
116
+        }, $tokens);
117
+    }
118 118
 }
Please login to merge, or discard this patch.
apps/provisioning_api/lib/FederatedShareProviderFactory.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
 
31 31
 class FederatedShareProviderFactory {
32 32
 
33
-	/** @var IServerContainer */
34
-	private $serverContainer;
33
+    /** @var IServerContainer */
34
+    private $serverContainer;
35 35
 
36
-	public function __construct(IServerContainer $serverContainer) {
37
-		$this->serverContainer = $serverContainer;
38
-	}
36
+    public function __construct(IServerContainer $serverContainer) {
37
+        $this->serverContainer = $serverContainer;
38
+    }
39 39
 
40
-	public function get(): FederatedShareProvider {
41
-		return $this->serverContainer->query(FederatedShareProvider::class);
42
-	}
40
+    public function get(): FederatedShareProvider {
41
+        return $this->serverContainer->query(FederatedShareProvider::class);
42
+    }
43 43
 }
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Listeners/LoadAdditionalScriptsListener.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -31,20 +31,20 @@
 block discarded – undo
31 31
 use OCP\EventDispatcher\IEventListener;
32 32
 
33 33
 class LoadAdditionalScriptsListener implements IEventListener {
34
-	/** @var FederatedShareProvider */
35
-	protected $federatedShareProvider;
34
+    /** @var FederatedShareProvider */
35
+    protected $federatedShareProvider;
36 36
 
37
-	public function __construct(FederatedShareProvider $federatedShareProvider) {
38
-		$this->federatedShareProvider = $federatedShareProvider;
39
-	}
37
+    public function __construct(FederatedShareProvider $federatedShareProvider) {
38
+        $this->federatedShareProvider = $federatedShareProvider;
39
+    }
40 40
 
41
-	public function handle(Event $event): void {
42
-		if (!$event instanceof LoadAdditionalScriptsEvent) {
43
-			return;
44
-		}
41
+    public function handle(Event $event): void {
42
+        if (!$event instanceof LoadAdditionalScriptsEvent) {
43
+            return;
44
+        }
45 45
 
46
-		if ($this->federatedShareProvider->isIncomingServer2serverShareEnabled()) {
47
-			\OCP\Util::addScript('federatedfilesharing', 'external');
48
-		}
49
-	}
46
+        if ($this->federatedShareProvider->isIncomingServer2serverShareEnabled()) {
47
+            \OCP\Util::addScript('federatedfilesharing', 'external');
48
+        }
49
+    }
50 50
 }
Please login to merge, or discard this patch.
apps/files_sharing/lib/Listener/LegacyBeforeTemplateRenderedListener.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -35,25 +35,25 @@
 block discarded – undo
35 35
 
36 36
 class LegacyBeforeTemplateRenderedListener implements IEventListener {
37 37
 
38
-	/** @var SymfonyAdapter */
39
-	private $dispatcher;
38
+    /** @var SymfonyAdapter */
39
+    private $dispatcher;
40 40
 
41
-	public function __construct(SymfonyAdapter $dispatcher) {
42
-		$this->dispatcher = $dispatcher;
43
-	}
41
+    public function __construct(SymfonyAdapter $dispatcher) {
42
+        $this->dispatcher = $dispatcher;
43
+    }
44 44
 
45
-	public function handle(Event $event): void {
46
-		if (!($event instanceof BeforeTemplateRenderedEvent)) {
47
-			return;
48
-		}
45
+    public function handle(Event $event): void {
46
+        if (!($event instanceof BeforeTemplateRenderedEvent)) {
47
+            return;
48
+        }
49 49
 
50
-		$eventName = 'OCA\Files_Sharing::loadAdditionalScripts';
50
+        $eventName = 'OCA\Files_Sharing::loadAdditionalScripts';
51 51
 
52
-		if ($event->getScope() !== null) {
53
-			$eventName .= '::' . $event->getScope();
54
-		}
52
+        if ($event->getScope() !== null) {
53
+            $eventName .= '::' . $event->getScope();
54
+        }
55 55
 
56
-		$legacyEvent = new GenericEvent(null, ['share' => $event->getShare()]);
57
-		$this->dispatcher->dispatch($eventName, $legacyEvent);
58
-	}
56
+        $legacyEvent = new GenericEvent(null, ['share' => $event->getShare()]);
57
+        $this->dispatcher->dispatch($eventName, $legacyEvent);
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -36,37 +36,37 @@
 block discarded – undo
36 36
  * @since 20.0.0
37 37
  */
38 38
 class BeforeTemplateRenderedEvent extends Event {
39
-	/**
40
-	 * @since 20.0.0
41
-	 */
42
-	public const SCOPE_PUBLIC_SHARE_AUTH = 'publicShareAuth';
39
+    /**
40
+     * @since 20.0.0
41
+     */
42
+    public const SCOPE_PUBLIC_SHARE_AUTH = 'publicShareAuth';
43 43
 
44
-	/** @var IShare */
45
-	private $share;
46
-	/** @var string|null */
47
-	private $scope;
44
+    /** @var IShare */
45
+    private $share;
46
+    /** @var string|null */
47
+    private $scope;
48 48
 
49
-	/**
50
-	 * @since 20.0.0
51
-	 */
52
-	public function __construct(IShare $share, ?string $scope = null) {
53
-		parent::__construct();
49
+    /**
50
+     * @since 20.0.0
51
+     */
52
+    public function __construct(IShare $share, ?string $scope = null) {
53
+        parent::__construct();
54 54
 
55
-		$this->share = $share;
56
-		$this->scope = $scope;
57
-	}
55
+        $this->share = $share;
56
+        $this->scope = $scope;
57
+    }
58 58
 
59
-	/**
60
-	 * @since 20.0.0
61
-	 */
62
-	public function getShare(): IShare {
63
-		return $this->share;
64
-	}
59
+    /**
60
+     * @since 20.0.0
61
+     */
62
+    public function getShare(): IShare {
63
+        return $this->share;
64
+    }
65 65
 
66
-	/**
67
-	 * @since 20.0.0
68
-	 */
69
-	public function getScope(): ?string {
70
-		return $this->scope;
71
-	}
66
+    /**
67
+     * @since 20.0.0
68
+     */
69
+    public function getScope(): ?string {
70
+        return $this->scope;
71
+    }
72 72
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Command/Size.php 1 patch
Indentation   +98 added lines, -98 removed lines patch added patch discarded remove patch
@@ -34,113 +34,113 @@
 block discarded – undo
34 34
 use Symfony\Component\Console\Output\OutputInterface;
35 35
 
36 36
 class Size extends Base {
37
-	private $config;
38
-	private $userManager;
39
-	private $commandBus;
37
+    private $config;
38
+    private $userManager;
39
+    private $commandBus;
40 40
 
41
-	public function __construct(
42
-		IConfig $config,
43
-		IUserManager $userManager,
44
-		IBus $commandBus
45
-	) {
46
-		parent::__construct();
41
+    public function __construct(
42
+        IConfig $config,
43
+        IUserManager $userManager,
44
+        IBus $commandBus
45
+    ) {
46
+        parent::__construct();
47 47
 
48
-		$this->config = $config;
49
-		$this->userManager = $userManager;
50
-		$this->commandBus = $commandBus;
51
-	}
48
+        $this->config = $config;
49
+        $this->userManager = $userManager;
50
+        $this->commandBus = $commandBus;
51
+    }
52 52
 
53
-	protected function configure() {
54
-		parent::configure();
55
-		$this
56
-			->setName('trashbin:size')
57
-			->setDescription('Configure the target trashbin size')
58
-			->addOption('user', 'u', InputOption::VALUE_REQUIRED, 'configure the target size for the provided user, if no user is given the default size is configured')
59
-			->addArgument(
60
-				'size',
61
-				InputArgument::OPTIONAL,
62
-				'the target size for the trashbin, if not provided the current trashbin size will be returned'
63
-			);
64
-	}
53
+    protected function configure() {
54
+        parent::configure();
55
+        $this
56
+            ->setName('trashbin:size')
57
+            ->setDescription('Configure the target trashbin size')
58
+            ->addOption('user', 'u', InputOption::VALUE_REQUIRED, 'configure the target size for the provided user, if no user is given the default size is configured')
59
+            ->addArgument(
60
+                'size',
61
+                InputArgument::OPTIONAL,
62
+                'the target size for the trashbin, if not provided the current trashbin size will be returned'
63
+            );
64
+    }
65 65
 
66
-	protected function execute(InputInterface $input, OutputInterface $output): int {
67
-		$user = $input->getOption('user');
68
-		$size = $input->getArgument('size');
66
+    protected function execute(InputInterface $input, OutputInterface $output): int {
67
+        $user = $input->getOption('user');
68
+        $size = $input->getArgument('size');
69 69
 
70
-		if ($size) {
71
-			$parsedSize = \OC_Helper::computerFileSize($size);
72
-			if ($parsedSize === false) {
73
-				$output->writeln("<error>Failed to parse input size</error>");
74
-				return -1;
75
-			}
76
-			if ($user) {
77
-				$this->config->setUserValue($user, 'files_trashbin', 'trashbin_size', (string)$parsedSize);
78
-				$this->commandBus->push(new Expire($user));
79
-			} else {
80
-				$this->config->setAppValue('files_trashbin', 'trashbin_size', (string)$parsedSize);
81
-				$output->writeln("<info>Warning: changing the default trashbin size will automatically trigger cleanup of existing trashbins,</info>");
82
-				$output->writeln("<info>a users trashbin can exceed the configured size until they move a new file to the trashbin.</info>");
83
-			}
84
-		} else {
85
-			$this->printTrashbinSize($input, $output, $user);
86
-		}
70
+        if ($size) {
71
+            $parsedSize = \OC_Helper::computerFileSize($size);
72
+            if ($parsedSize === false) {
73
+                $output->writeln("<error>Failed to parse input size</error>");
74
+                return -1;
75
+            }
76
+            if ($user) {
77
+                $this->config->setUserValue($user, 'files_trashbin', 'trashbin_size', (string)$parsedSize);
78
+                $this->commandBus->push(new Expire($user));
79
+            } else {
80
+                $this->config->setAppValue('files_trashbin', 'trashbin_size', (string)$parsedSize);
81
+                $output->writeln("<info>Warning: changing the default trashbin size will automatically trigger cleanup of existing trashbins,</info>");
82
+                $output->writeln("<info>a users trashbin can exceed the configured size until they move a new file to the trashbin.</info>");
83
+            }
84
+        } else {
85
+            $this->printTrashbinSize($input, $output, $user);
86
+        }
87 87
 
88
-		return 0;
89
-	}
88
+        return 0;
89
+    }
90 90
 
91
-	private function printTrashbinSize(InputInterface $input, OutputInterface $output, ?string $user) {
92
-		$globalSize = (int)$this->config->getAppValue('files_trashbin', 'trashbin_size', '-1');
93
-		if ($globalSize < 0) {
94
-			$globalHumanSize = "default (50% of available space)";
95
-		} else {
96
-			$globalHumanSize = \OC_Helper::humanFileSize($globalSize);
97
-		}
91
+    private function printTrashbinSize(InputInterface $input, OutputInterface $output, ?string $user) {
92
+        $globalSize = (int)$this->config->getAppValue('files_trashbin', 'trashbin_size', '-1');
93
+        if ($globalSize < 0) {
94
+            $globalHumanSize = "default (50% of available space)";
95
+        } else {
96
+            $globalHumanSize = \OC_Helper::humanFileSize($globalSize);
97
+        }
98 98
 
99
-		if ($user) {
100
-			$userSize = (int)$this->config->getUserValue($user, 'files_trashbin', 'trashbin_size', '-1');
99
+        if ($user) {
100
+            $userSize = (int)$this->config->getUserValue($user, 'files_trashbin', 'trashbin_size', '-1');
101 101
 
102
-			if ($userSize < 0) {
103
-				$userHumanSize = ($globalSize < 0) ? $globalHumanSize : "default($globalHumanSize)";
104
-			} else {
105
-				$userHumanSize = \OC_Helper::humanFileSize($userSize);
106
-			}
102
+            if ($userSize < 0) {
103
+                $userHumanSize = ($globalSize < 0) ? $globalHumanSize : "default($globalHumanSize)";
104
+            } else {
105
+                $userHumanSize = \OC_Helper::humanFileSize($userSize);
106
+            }
107 107
 
108
-			if ($input->getOption('output') == self::OUTPUT_FORMAT_PLAIN) {
109
-				$output->writeln($userHumanSize);
110
-			} else {
111
-				$userValue = ($userSize < 0) ? 'default' : $userSize;
112
-				$globalValue = ($globalSize < 0) ? 'default' : $globalSize;
113
-				$this->writeArrayInOutputFormat($input, $output, [
114
-					'user_size' => $userValue,
115
-					'global_size' => $globalValue,
116
-					'effective_size' => ($userSize < 0) ? $globalValue : $userValue,
117
-				]);
118
-			}
119
-		} else {
120
-			$users = [];
121
-			$this->userManager->callForSeenUsers(function (IUser $user) use (&$users) {
122
-				$users[] = $user->getUID();
123
-			});
124
-			$userValues = $this->config->getUserValueForUsers('files_trashbin', 'trashbin_size', $users);
108
+            if ($input->getOption('output') == self::OUTPUT_FORMAT_PLAIN) {
109
+                $output->writeln($userHumanSize);
110
+            } else {
111
+                $userValue = ($userSize < 0) ? 'default' : $userSize;
112
+                $globalValue = ($globalSize < 0) ? 'default' : $globalSize;
113
+                $this->writeArrayInOutputFormat($input, $output, [
114
+                    'user_size' => $userValue,
115
+                    'global_size' => $globalValue,
116
+                    'effective_size' => ($userSize < 0) ? $globalValue : $userValue,
117
+                ]);
118
+            }
119
+        } else {
120
+            $users = [];
121
+            $this->userManager->callForSeenUsers(function (IUser $user) use (&$users) {
122
+                $users[] = $user->getUID();
123
+            });
124
+            $userValues = $this->config->getUserValueForUsers('files_trashbin', 'trashbin_size', $users);
125 125
 
126
-			if ($input->getOption('output') == self::OUTPUT_FORMAT_PLAIN) {
127
-				$output->writeln("Default size: $globalHumanSize");
128
-				$output->writeln("");
129
-				if (count($userValues)) {
130
-					$output->writeln("Per-user sizes:");
131
-					$this->writeArrayInOutputFormat($input, $output, array_map(function ($size) {
132
-						return \OC_Helper::humanFileSize($size);
133
-					}, $userValues));
134
-				} else {
135
-					$output->writeln("No per-user sizes configured");
136
-				}
137
-			} else {
138
-				$globalValue = ($globalSize < 0) ? 'default' : $globalSize;
139
-				$this->writeArrayInOutputFormat($input, $output, [
140
-					'global_size' => $globalValue,
141
-					'user_sizes' => $userValues,
142
-				]);
143
-			}
144
-		}
145
-	}
126
+            if ($input->getOption('output') == self::OUTPUT_FORMAT_PLAIN) {
127
+                $output->writeln("Default size: $globalHumanSize");
128
+                $output->writeln("");
129
+                if (count($userValues)) {
130
+                    $output->writeln("Per-user sizes:");
131
+                    $this->writeArrayInOutputFormat($input, $output, array_map(function ($size) {
132
+                        return \OC_Helper::humanFileSize($size);
133
+                    }, $userValues));
134
+                } else {
135
+                    $output->writeln("No per-user sizes configured");
136
+                }
137
+            } else {
138
+                $globalValue = ($globalSize < 0) ? 'default' : $globalSize;
139
+                $this->writeArrayInOutputFormat($input, $output, [
140
+                    'global_size' => $globalValue,
141
+                    'user_sizes' => $userValues,
142
+                ]);
143
+            }
144
+        }
145
+    }
146 146
 }
Please login to merge, or discard this patch.
apps/testing/lib/AppInfo/Application.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,22 +31,22 @@
 block discarded – undo
31 31
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
32 32
 
33 33
 class Application extends App implements IBootstrap {
34
-	public function __construct(array $urlParams = []) {
35
-		parent::__construct('testing', $urlParams);
36
-	}
34
+    public function __construct(array $urlParams = []) {
35
+        parent::__construct('testing', $urlParams);
36
+    }
37 37
 
38
-	public function register(IRegistrationContext $context): void {
39
-	}
38
+    public function register(IRegistrationContext $context): void {
39
+    }
40 40
 
41
-	public function boot(IBootContext $context): void {
42
-		$server = $context->getServerContainer();
43
-		$config = $server->getConfig();
44
-		if ($config->getAppValue('testing', 'enable_alt_user_backend', 'no') === 'yes') {
45
-			$userManager = $server->getUserManager();
41
+    public function boot(IBootContext $context): void {
42
+        $server = $context->getServerContainer();
43
+        $config = $server->getConfig();
44
+        if ($config->getAppValue('testing', 'enable_alt_user_backend', 'no') === 'yes') {
45
+            $userManager = $server->getUserManager();
46 46
 
47
-			// replace all user backends with this one
48
-			$userManager->clearBackends();
49
-			$userManager->registerBackend($context->getAppContainer()->get(AlternativeHomeUserBackend::class));
50
-		}
51
-	}
47
+            // replace all user backends with this one
48
+            $userManager->clearBackends();
49
+            $userManager->registerBackend($context->getAppContainer()->get(AlternativeHomeUserBackend::class));
50
+        }
51
+    }
52 52
 }
Please login to merge, or discard this patch.
lib/public/User/Backend/ICustomLogout.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
  * SSO providers that also have a SSO logout url
33 33
  */
34 34
 interface ICustomLogout {
35
-	/**
36
-	 * @since 20.0.0
37
-	 *
38
-	 * The url to redirect to for logout
39
-	 *
40
-	 * @return string
41
-	 */
42
-	public function getLogoutUrl(): string;
35
+    /**
36
+     * @since 20.0.0
37
+     *
38
+     * The url to redirect to for logout
39
+     *
40
+     * @return string
41
+     */
42
+    public function getLogoutUrl(): string;
43 43
 }
Please login to merge, or discard this patch.
apps/user_status/lib/Listener/UserDeletedListener.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -37,29 +37,29 @@
 block discarded – undo
37 37
  */
38 38
 class UserDeletedListener implements IEventListener {
39 39
 
40
-	/** @var StatusService */
41
-	private $service;
40
+    /** @var StatusService */
41
+    private $service;
42 42
 
43
-	/**
44
-	 * UserDeletedListener constructor.
45
-	 *
46
-	 * @param StatusService $service
47
-	 */
48
-	public function __construct(StatusService $service) {
49
-		$this->service = $service;
50
-	}
43
+    /**
44
+     * UserDeletedListener constructor.
45
+     *
46
+     * @param StatusService $service
47
+     */
48
+    public function __construct(StatusService $service) {
49
+        $this->service = $service;
50
+    }
51 51
 
52 52
 
53
-	/**
54
-	 * @inheritDoc
55
-	 */
56
-	public function handle(Event $event): void {
57
-		if (!($event instanceof UserDeletedEvent)) {
58
-			// Unrelated
59
-			return;
60
-		}
53
+    /**
54
+     * @inheritDoc
55
+     */
56
+    public function handle(Event $event): void {
57
+        if (!($event instanceof UserDeletedEvent)) {
58
+            // Unrelated
59
+            return;
60
+        }
61 61
 
62
-		$user = $event->getUser();
63
-		$this->service->removeUserStatus($user->getUID());
64
-	}
62
+        $user = $event->getUser();
63
+        $this->service->removeUserStatus($user->getUID());
64
+    }
65 65
 }
Please login to merge, or discard this patch.