Code Duplication    Length = 5-5 lines in 2 locations

lib/dispatcher.php 2 locations

@@ 90-94 (lines=5) @@
87
			$request = $container->query('Request');
88
			return new BackendController($container, $request, $app);
89
		});
90
		$this->container->registerService('GroupController', function(IAppContainer $container) use($app, $appName) {
91
			$request = $container->query('Request');
92
			$tags = $container->getServer()->getTagManager()->load('contact', array(), true);
93
			return new GroupController($appName, $request, $app, $tags);
94
		});
95
		$this->container->registerService('ContactController', function(IAppContainer $container) use($app, $appName) {
96
			$request = $container->query('Request');
97
			return new ContactController($appName, $request, $app);
@@ 99-103 (lines=5) @@
96
			$request = $container->query('Request');
97
			return new ContactController($appName, $request, $app);
98
		});
99
		$this->container->registerService('ContactPhotoController', function(IAppContainer $container) use($app, $appName) {
100
			$request = $container->query('Request');
101
			$cache = $container->getServer()->getCache();
102
			return new ContactPhotoController($appName, $request, $app, $cache);
103
		});
104
		$this->container->registerService('SettingsController', function(IAppContainer $container) use($app, $appName) {
105
			$request = $container->query('Request');
106
			return new SettingsController($appName, $request, $app);