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 = $this->getContainer();
$container->registerService('AppRepository', function (ContainerInterface $c) { $container->registerService('AppRepository', function (ContainerInterface $c) {
return new AppRepository(new OC_App()); return new AppRepository();
}); });
$container->registerService('ConfigProxy', function (ContainerInterface $c) { $container->registerService('ConfigProxy', function (ContainerInterface $c) {

View file

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