Cleanup namespace

This commit is contained in:
Philipp Holzer 2021-10-27 20:06:04 +02:00
parent d34497e69b
commit 7c38647573
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
2 changed files with 5 additions and 5 deletions

View file

@ -33,7 +33,7 @@ class Storage extends \Asika\SimpleConsole\Console
{
protected $helpOptions = ['h', 'help', '?'];
/** @var \Friendica\Core\Storage\Repository\StorageManager */
/** @var StorageManager */
private $storageManager;
/**

View file

@ -195,11 +195,11 @@ class StorageManager
$this->backendInstances[$name] = new Type\Database($this->dba);
break;
// at least, try if there's an addon for the backend
case \Friendica\Core\Storage\Type\SystemResource::getName():
$this->backendInstances[$name] = new \Friendica\Core\Storage\Type\SystemResource();
case Type\SystemResource::getName():
$this->backendInstances[$name] = new Type\SystemResource();
break;
case \Friendica\Core\Storage\Type\ExternalResource::getName():
$this->backendInstances[$name] = new \Friendica\Core\Storage\Type\ExternalResource();
case Type\ExternalResource::getName():
$this->backendInstances[$name] = new Type\ExternalResource();
break;
default:
$data = [