From 02bd530fc365d5627c1c6de0d3a61dc0c8b81182 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 12 May 2014 22:51:10 +0200 Subject: comprehensibility fixes --- appinfo/application.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'appinfo/application.php') diff --git a/appinfo/application.php b/appinfo/application.php index 351f9fd12..930c4cbbb 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -138,8 +138,7 @@ class Application extends App { $c->query('AppName'), $c->query('Request'), $c->query('Updater'), - $c->query('CoreConfig'), - $c->query('UserId') + $c->query('CoreConfig') ); }); @@ -280,7 +279,7 @@ class Application extends App { return $c->query('ServerContainer')->getL10N($c->query('AppName')); }); - $container->registerService('UserId', function($c) { + $container->registerService('UserId', function() { return \OCP\User::getUser(); }); @@ -304,7 +303,7 @@ class Application extends App { /** * Utility */ - $container->registerService('ConfigView', function($c) { + $container->registerService('ConfigView', function() { $view = new View('/news/config'); if (!$view->file_exists('')) { $view->mkdir(''); @@ -400,11 +399,11 @@ class Application extends App { ); }); - $container->registerService('StatusFlag', function($c) { + $container->registerService('StatusFlag', function() { return new StatusFlag(); }); - $container->registerService('OPMLExporter', function($c) { + $container->registerService('OPMLExporter', function() { return new OPMLExporter(); }); @@ -416,7 +415,7 @@ class Application extends App { ); }); - $container->registerService('SimplePieAPIFactory', function($c) { + $container->registerService('SimplePieAPIFactory', function() { return new SimplePieAPIFactory(); }); -- cgit v1.2.3