aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-09-15 21:01:34 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2024-09-15 21:01:34 +0200
commit614f9ec0a2fd3c6752e7da2a59063df09d3bdbff (patch)
tree5ce655f47d11cdf0aa20d99dff5a266b6e34f0b0 /apps/files_external
parent5a8d0a2721141f0edccc04feb21f0d35ab40eca9 (diff)
downloadnextcloud-server-614f9ec0a2fd3c6752e7da2a59063df09d3bdbff.tar.gz
nextcloud-server-614f9ec0a2fd3c6752e7da2a59063df09d3bdbff.zip
refactor: Use the elvis operator
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Controller/StoragesController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php
index fd004b49b37..ab580987b0e 100644
--- a/apps/files_external/lib/Controller/StoragesController.php
+++ b/apps/files_external/lib/Controller/StoragesController.php
@@ -228,7 +228,7 @@ abstract class StoragesController extends Controller {
)
);
} catch (InsufficientDataForMeaningfulAnswerException $e) {
- $status = $e->getCode() ? $e->getCode() : StorageNotAvailableException::STATUS_INDETERMINATE;
+ $status = $e->getCode() ?: StorageNotAvailableException::STATUS_INDETERMINATE;
$storage->setStatus(
(int)$status,
$this->l10n->t('Insufficient data: %s', [$e->getMessage()])