Code Duplication    Length = 14-15 lines in 2 locations

appinfo/application.php 2 locations

@@ 63-77 (lines=15) @@
60
			);
61
		});
62
63
		$container->registerService('AccountsController', function($c) {
64
			/** @var IAppContainer $c */
65
			return new AccountsController(
66
				$c->query('AppName'),
67
				$c->query('Request'),
68
				$c->query('AccountService'),
69
				$c->query('UserId'),
70
				$c->getServer()->getUserFolder(),
71
				$c->query('ContactsIntegration'),
72
				$c->query('AutoConfig'),
73
				$c->query('Logger'),
74
				$c->getServer()->getL10N('mail'),
75
				$c->getServer()->getCrypto()
76
			);
77
		});
78
79
		$container->registerService('FoldersController', function($c) {
80
			/** @var IAppContainer $c */
@@ 89-102 (lines=14) @@
86
			);
87
		});
88
89
		$container->registerService('MessagesController', function($c) {
90
			/** @var IAppContainer $c */
91
			return new MessagesController(
92
				$c->query('AppName'),
93
				$c->query('Request'),
94
				$c->query('AccountService'),
95
				$c->query('UserId'),
96
				$c->getServer()->getUserFolder(),
97
				$c->query('ContactsIntegration'),
98
				$c->query('Logger'),
99
				$c->getServer()->getL10N('mail'),
100
				$c->getServer()->getMimeTypeDetector()
101
			);
102
		});
103
104
		$container->registerService('ProxyController', function($c) {
105
			/** @var IAppContainer $c */