summaryrefslogtreecommitdiffstats
path: root/lib/Service/StatusService.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-08-29 23:39:35 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-09-27 15:35:31 +0200
commitd00d1ab2a28f428223e52b17052c072c64784016 (patch)
treec019f85fb7ac67147dd43ca64b4ac3cda99832f7 /lib/Service/StatusService.php
parent5687baca75d47dbdffd3de74e865ad2f71ef0cb7 (diff)
Create V2 mapper, Service and management commands
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Service/StatusService.php')
-rw-r--r--lib/Service/StatusService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/StatusService.php b/lib/Service/StatusService.php
index f926258b6..c2daa0c0b 100644
--- a/lib/Service/StatusService.php
+++ b/lib/Service/StatusService.php
@@ -29,14 +29,14 @@ class StatusService
public function __construct(
IConfig $settings,
IDBConnection $connection,
- $AppName
+ string $AppName
) {
$this->settings = $settings;
$this->appName = $AppName;
$this->connection = $connection;
}
- public function isProperlyConfigured()
+ public function isProperlyConfigured(): bool
{
$cronMode = $this->settings->getSystemValue('backgroundjobs_mode');
$cronOff = !$this->settings->getAppValue(
@@ -50,7 +50,7 @@ class StatusService
}
- public function getStatus()
+ public function getStatus(): array
{
$version = $this->settings->getAppValue(
$this->appName,