aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/SetupCheck
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-10-19 11:43:39 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-10-19 11:44:03 +0200
commita3cc3b188d5294033c20d84232d334d9e0f488a6 (patch)
treebb64d84d88c29244cd69f961300fa3194ec82d55 /lib/private/SetupCheck
parent2e4d1549a44ce3b29d3287ba3721a464733bf708 (diff)
downloadnextcloud-server-a3cc3b188d5294033c20d84232d334d9e0f488a6.tar.gz
nextcloud-server-a3cc3b188d5294033c20d84232d334d9e0f488a6.zip
Small code style fix in SetupCheckManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/SetupCheck')
-rw-r--r--lib/private/SetupCheck/SetupCheckManager.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/SetupCheck/SetupCheckManager.php b/lib/private/SetupCheck/SetupCheckManager.php
index 0bf3dc39861..f9e67772019 100644
--- a/lib/private/SetupCheck/SetupCheckManager.php
+++ b/lib/private/SetupCheck/SetupCheckManager.php
@@ -48,9 +48,7 @@ class SetupCheckManager implements ISetupCheckManager {
$this->logger->debug('Running check '.get_class($setupCheckObject));
$setupResult = $setupCheckObject->run();
$category = $setupCheckObject->getCategory();
- if (!isset($results[$category])) {
- $results[$category] = [];
- }
+ $results[$category] ??= [];
$results[$category][$setupCheckObject->getName()] = $setupResult;
}
return $results;