mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:50:11 +00:00
Cleanup namespaces
This commit is contained in:
parent
7c38647573
commit
d778af0b0e
3 changed files with 6 additions and 6 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue