aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Backend/InvalidBackend.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Lib/Backend/InvalidBackend.php')
-rw-r--r--apps/files_external/lib/Lib/Backend/InvalidBackend.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/files_external/lib/Lib/Backend/InvalidBackend.php b/apps/files_external/lib/Lib/Backend/InvalidBackend.php
index 22d0287244a..48912c0e49e 100644
--- a/apps/files_external/lib/Lib/Backend/InvalidBackend.php
+++ b/apps/files_external/lib/Lib/Backend/InvalidBackend.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud GmbH.
@@ -16,21 +17,19 @@ use OCP\IUser;
*/
class InvalidBackend extends Backend {
- /** @var string Invalid backend id */
- private $invalidId;
-
/**
* Constructs a new InvalidBackend with the id of the invalid backend
* for display purposes
*
* @param string $invalidId id of the backend that did not exist
*/
- public function __construct($invalidId) {
- $this->invalidId = $invalidId;
+ public function __construct(
+ private $invalidId,
+ ) {
$this
- ->setIdentifier($invalidId)
+ ->setIdentifier($this->invalidId)
->setStorageClass('\OC\Files\Storage\FailedStorage')
- ->setText('Unknown storage backend ' . $invalidId);
+ ->setText('Unknown storage backend ' . $this->invalidId);
}
/**