From fa9d5abf629dcda73d46ff6bdb28689c038f82e0 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 21 Aug 2022 13:48:42 +0200 Subject: [PATCH] (cq) remove unsed variables --- lib/AppInfo/Application.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); }); }