Code Duplication    Length = 6-6 lines in 3 locations

lib/AppInfo/Application.php 3 locations

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