diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index f7f5e7e..b812fd7 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -96,7 +96,7 @@ class Application extends App implements IBootstrap $cache = $this->config->getAppValue(self::APP_ID, 'cache', '0'); - foreach ($assets as $key => $value) { + foreach ($assets as $value) { $route = OC::$server->getURLGenerator()->linkToRoute($value['route'], ['v' => $cache]); $value['attr'][$value['route_attr']] = $route; @@ -106,15 +106,15 @@ class Application extends App implements IBootstrap public function register(IRegistrationContext $context): void { - $context->registerService('AppRepository', function (ContainerInterface $c) { + $context->registerService('AppRepository', function () { return new AppRepository(); }); - $context->registerService('CategoryRepository', function (ContainerInterface $c) { + $context->registerService('CategoryRepository', function () { return new CategoryRepository(); }); - $context->registerService('ConfigProxy', function (ContainerInterface $c) { + $context->registerService('ConfigProxy', function () { return new ConfigProxy(); }); }