diff options
author | Hamid Dehnavi <hamid.dev.pro@gmail.com> | 2023-07-05 21:13:36 +0330 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-23 15:54:03 +0100 |
commit | 09b3702c3b3ff60765090ab36f4d7d251be55935 (patch) | |
tree | 16b0ef916539d30773a3cc7f0c5ba0c0cd787e2d /lib/private/OCS/CoreCapabilities.php | |
parent | a88c1bdfb61d4c141d90e6864971f6d456417604 (diff) | |
download | nextcloud-server-09b3702c3b3ff60765090ab36f4d7d251be55935.tar.gz nextcloud-server-09b3702c3b3ff60765090ab36f4d7d251be55935.zip |
Refactor lib/private/ocs
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Refactor lib/private/ocs
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Refactor lib/private/ocs
Co-authored-by: Faraz Samapoor <f.samapoor@gmail.com>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Add adjustments based on the review
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
replace qualifier with an import
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
refactor lib/private/OCS
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Diffstat (limited to 'lib/private/OCS/CoreCapabilities.php')
-rw-r--r-- | lib/private/OCS/CoreCapabilities.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/private/OCS/CoreCapabilities.php b/lib/private/OCS/CoreCapabilities.php index 9cead57c6a3..0e9be3460ca 100644 --- a/lib/private/OCS/CoreCapabilities.php +++ b/lib/private/OCS/CoreCapabilities.php @@ -32,20 +32,18 @@ use OCP\IURLGenerator; * @package OC\OCS */ class CoreCapabilities implements ICapability { - /** @var IConfig */ - private $config; - /** * @param IConfig $config */ - public function __construct(IConfig $config) { - $this->config = $config; + public function __construct( + private IConfig $config, + ) { } /** * Return this classes capabilities */ - public function getCapabilities() { + public function getCapabilities(): array { return [ 'core' => [ 'pollinterval' => $this->config->getSystemValue('pollinterval', 60), |