app:check compliance

This commit is contained in:
Simon Vieille 2020-10-14 09:57:42 +02:00
parent 0eefcd23cd
commit 4225b157e0
Signed by: deblan
GPG Key ID: 03383D15A1D31745
2 changed files with 3 additions and 4 deletions

View File

@ -72,7 +72,7 @@ class Application extends App
$container = $this->getContainer();
$container->registerService('AppRepository', function (ContainerInterface $c) {
return new AppRepository(new OC_App());
return new AppRepository();
});
$container->registerService('ConfigProxy', function (ContainerInterface $c) {

View File

@ -2,7 +2,6 @@
namespace OCA\SideMenu\Service;
use OC_App;
use OCP\L10N\IFactory;
/**
@ -13,7 +12,7 @@ use OCP\L10N\IFactory;
class AppRepository
{
/**
* @var OC_App
* @var \OC_App
*/
protected $ocApp;
@ -22,7 +21,7 @@ class AppRepository
*/
protected $l10nFactory;
public function __construct(OC_App $ocApp, IFactory $l10nFactory)
public function __construct(\OC_App $ocApp, IFactory $l10nFactory)
{
$this->ocApp = $ocApp;
$this->l10nFactory = $l10nFactory;