Code Duplication    Length = 6-6 lines in 3 locations

lib/AppInfo/Application.php 3 locations

@@ 144-149 (lines=6) @@
141
         * Register the Job Service
142
         */
143
        $container->registerService('FileService', 
144
                function (IAppContainer $c) {
145
                    /** @var \OC\Server $server */
146
                    $server = $c->query('ServerContainer');
147
                    return new FileService($server->getL10N(OcrConstants::APP_NAME), $server->getLogger(), $c->query('CurrentUID'), 
148
                            $c->query('FileMapper'), $c->query('ShareMapper'), $c->query('FileUtil'));
149
                });
150
        /**
151
         * Register the Redis Service
152
         */
@@ 154-159 (lines=6) @@
151
         * Register the Redis Service
152
         */
153
        $container->registerService('RedisService', 
154
                function (IAppContainer $c) {
155
                    /** @var \OC\Server $server */
156
                    $server = $c->query('ServerContainer');
157
                    return new RedisService($c->query('OcrJobMapper'), $c->query('FileUtil'), $c->query('RedisUtil'), 
158
                            $server->getL10N(OcrConstants::APP_NAME), $server->getLogger(), $server->getTempManager());
159
                });
160
        /**
161
         * Register the Job Service
162
         */
@@ 176-181 (lines=6) @@
173
         * Register the Status Service
174
         */
175
        $container->registerService('StatusService', 
176
                function (IAppContainer $c) {
177
                    /** @var \OC\Server $server */
178
                    $server = $c->query('ServerContainer');
179
                    return new StatusService($server->getL10N(OcrConstants::APP_NAME), $server->getLogger(), $c->query('CurrentUID'), 
180
                            $c->query('OcrJobMapper'), $c->query('JobService'));
181
                });
182
        /**
183
         * Controller
184
         */