Cleanup namespaces

This commit is contained in:
Philipp 2021-10-27 20:16:34 +02:00
parent 7c38647573
commit d778af0b0e
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 6 additions and 6 deletions

View file

@ -40,7 +40,7 @@ class Storage extends BaseAdmin
$storagebackend = Strings::escapeTags(trim($parameters['name'] ?? ''));
try {
/** @var \Friendica\Core\Storage\Capability\ICanConfigureStorage|false $newStorageConfig */
/** @var ICanConfigureStorage|false $newStorageConfig */
$newStorageConfig = DI::storageManager()->getConfigurationByName($storagebackend);
} catch (InvalidClassStorageException $storageException) {
notice(DI::l10n()->t('Storage backend, %s is invalid.', $storagebackend));
@ -78,7 +78,6 @@ class Storage extends BaseAdmin
if (!empty($_POST['submit_save_set'])) {
try {
/** @var \Friendica\Core\Storage\Capability\ICanWriteToStorage $newstorage */
$newstorage = DI::storageManager()->getWritableStorageByName($storagebackend);
if (!DI::storageManager()->setBackend($newstorage)) {