Completed
Push — master ( 09dfa9...d9d844 )
by
unknown
26:54
created
apps/oauth2/lib/Settings/Admin.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -17,49 +17,49 @@
 block discarded – undo
17 17
 
18 18
 class Admin implements ISettings {
19 19
 
20
-	public function __construct(
21
-		private IInitialState $initialState,
22
-		private ClientMapper $clientMapper,
23
-		private IURLGenerator $urlGenerator,
24
-		private LoggerInterface $logger,
25
-	) {
26
-	}
20
+    public function __construct(
21
+        private IInitialState $initialState,
22
+        private ClientMapper $clientMapper,
23
+        private IURLGenerator $urlGenerator,
24
+        private LoggerInterface $logger,
25
+    ) {
26
+    }
27 27
 
28
-	public function getForm(): TemplateResponse {
29
-		$clients = $this->clientMapper->getClients();
30
-		$result = [];
28
+    public function getForm(): TemplateResponse {
29
+        $clients = $this->clientMapper->getClients();
30
+        $result = [];
31 31
 
32
-		foreach ($clients as $client) {
33
-			try {
34
-				$result[] = [
35
-					'id' => $client->getId(),
36
-					'name' => $client->getName(),
37
-					'redirectUri' => $client->getRedirectUri(),
38
-					'clientId' => $client->getClientIdentifier(),
39
-					'clientSecret' => '',
40
-				];
41
-			} catch (\Exception $e) {
42
-				$this->logger->error('[Settings] OAuth client secret decryption error', ['exception' => $e]);
43
-			}
44
-		}
45
-		$this->initialState->provideInitialState('clients', $result);
46
-		$this->initialState->provideInitialState('oauth2-doc-link', $this->urlGenerator->linkToDocs('admin-oauth2'));
32
+        foreach ($clients as $client) {
33
+            try {
34
+                $result[] = [
35
+                    'id' => $client->getId(),
36
+                    'name' => $client->getName(),
37
+                    'redirectUri' => $client->getRedirectUri(),
38
+                    'clientId' => $client->getClientIdentifier(),
39
+                    'clientSecret' => '',
40
+                ];
41
+            } catch (\Exception $e) {
42
+                $this->logger->error('[Settings] OAuth client secret decryption error', ['exception' => $e]);
43
+            }
44
+        }
45
+        $this->initialState->provideInitialState('clients', $result);
46
+        $this->initialState->provideInitialState('oauth2-doc-link', $this->urlGenerator->linkToDocs('admin-oauth2'));
47 47
 
48
-		\OCP\Util::addStyle('oauth2', 'settings-admin');
49
-		\OCP\Util::addScript('oauth2', 'settings-admin', 'core');
50
-		return new TemplateResponse(
51
-			'oauth2',
52
-			'admin',
53
-			[],
54
-			''
55
-		);
56
-	}
48
+        \OCP\Util::addStyle('oauth2', 'settings-admin');
49
+        \OCP\Util::addScript('oauth2', 'settings-admin', 'core');
50
+        return new TemplateResponse(
51
+            'oauth2',
52
+            'admin',
53
+            [],
54
+            ''
55
+        );
56
+    }
57 57
 
58
-	public function getSection(): string {
59
-		return 'security';
60
-	}
58
+    public function getSection(): string {
59
+        return 'security';
60
+    }
61 61
 
62
-	public function getPriority(): int {
63
-		return 100;
64
-	}
62
+    public function getPriority(): int {
63
+        return 100;
64
+    }
65 65
 }
Please login to merge, or discard this patch.