Code Duplication    Length = 9-9 lines in 2 locations

appinfo/application.php 2 locations

@@ 56-64 (lines=9) @@
53
			return new Controller\EmailController($c->getAppName(), $request, $userSession, $config, $mailer, $l10n, $defaults);
54
		});
55
56
		$container->registerService('ProxyController', function(IAppContainer $c) {
57
			$request = $c->query('Request');
58
			$client = $c->getServer()->getHTTPClientService();
59
			$l10n = $c->getServer()->getL10N($c->query('AppName'));
60
			$logger = $c->getServer()->getLogger();
61
			$config = $c->getServer()->getConfig();
62
63
			return new Controller\ProxyController($c->getAppName(), $request, $client, $l10n, $logger, $config);
64
		});
65
66
		$container->registerService('SettingsController', function(IAppContainer $c) {
67
			$request = $c->query('Request');
@@ 80-88 (lines=9) @@
77
			return new Controller\TimezoneController($c->getAppName(), $request);
78
		});
79
80
		$container->registerService('ViewController', function(IAppContainer $c) {
81
			$request = $c->query('Request');
82
			$userSession = $c->getServer()->getUserSession();
83
			$config = $c->getServer()->getConfig();
84
			$urlGenerator = $c->getServer()->getURLGenerator();
85
			$eventDispatcher = $c->getServer()->getEventDispatcher();
86
87
			return new Controller\ViewController($c->getAppName(), $request, $userSession, $config, $urlGenerator, $eventDispatcher);
88
		});
89
	}
90
91
	/**