diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 21:01:34 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 21:01:34 +0200 |
commit | 614f9ec0a2fd3c6752e7da2a59063df09d3bdbff (patch) | |
tree | 5ce655f47d11cdf0aa20d99dff5a266b6e34f0b0 /apps/files_external | |
parent | 5a8d0a2721141f0edccc04feb21f0d35ab40eca9 (diff) | |
download | nextcloud-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.php | 2 |
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()]) |