Skip to content

Commit 7de31a8

Browse files
committed
Cleanup the Settings class
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 9b89bac commit 7de31a8

File tree

1 file changed

+3
-32
lines changed

1 file changed

+3
-32
lines changed

settings/Settings/Admin/Server.php

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,48 +26,19 @@
2626

2727
namespace OC\Settings\Admin;
2828

29-
use Doctrine\DBAL\Connection;
30-
use Doctrine\DBAL\DBALException;
31-
use Doctrine\DBAL\Platforms\SqlitePlatform;
32-
use OC\Lock\DBLockingProvider;
33-
use OC\Lock\NoopLockingProvider;
3429
use OCP\AppFramework\Http\TemplateResponse;
3530
use OCP\IConfig;
36-
use OCP\IDBConnection;
37-
use OCP\IL10N;
38-
use OCP\IRequest;
39-
use OCP\Lock\ILockingProvider;
4031
use OCP\Settings\ISettings;
4132

4233
class Server implements ISettings {
43-
/** @var IDBConnection|Connection */
44-
private $db;
45-
/** @var IRequest */
46-
private $request;
4734
/** @var IConfig */
4835
private $config;
49-
/** @var ILockingProvider */
50-
private $lockingProvider;
51-
/** @var IL10N */
52-
private $l;
5336

5437
/**
55-
* @param IDBConnection $db
56-
* @param IRequest $request
5738
* @param IConfig $config
58-
* @param ILockingProvider $lockingProvider
59-
* @param IL10N $l
6039
*/
61-
public function __construct(IDBConnection $db,
62-
IRequest $request,
63-
IConfig $config,
64-
ILockingProvider $lockingProvider,
65-
IL10N $l) {
66-
$this->db = $db;
67-
$this->request = $request;
40+
public function __construct(IConfig $config) {
6841
$this->config = $config;
69-
$this->lockingProvider = $lockingProvider;
70-
$this->l = $l;
7142
}
7243

7344
/**
@@ -89,7 +60,7 @@ public function getForm() {
8960
/**
9061
* @return string the section ID, e.g. 'sharing'
9162
*/
92-
public function getSection() {
63+
public function getSection(): string {
9364
return 'server';
9465
}
9566

@@ -100,7 +71,7 @@ public function getSection() {
10071
*
10172
* E.g.: 70
10273
*/
103-
public function getPriority() {
74+
public function getPriority(): int {
10475
return 0;
10576
}
10677
}

0 commit comments

Comments
 (0)