Code Duplication    Length = 10-11 lines in 2 locations

src/Eole/Silex/Provider/ServiceProvider.php 1 location

@@ 19-28 (lines=10) @@
16
            $app['project.root'].'/src/Eole/Core/Serializer'
17
        );
18
19
        $app->extend('eole.mappings', function ($mappings, $app) {
20
            $mappings []= array(
21
                'type' => 'yml',
22
                'namespace' => 'Eole\Core\Model',
23
                'path' => $app['project.root'].'/src/Eole/Core/Mapping',
24
                'alias' => 'Eole',
25
            );
26
27
            return $mappings;
28
        });
29
30
        $app['eole.player_api'] = function () use ($app) {
31
            return new \Eole\Core\Service\PlayerApi(

src/Eole/Silex/Application.php 1 location

@@ 215-225 (lines=11) @@
212
            ],
213
        ]);
214
215
        $this['eole.mappings'] = function () {
216
            $mappings = array();
217
218
            $mappings []= array(
219
                'type' => 'yml',
220
                'namespace' => 'Alcalyn\UserApi\Model',
221
                'path' => $this['project.root'].'/vendor/alcalyn/doctrine-user-api/Mapping',
222
            );
223
224
            return $mappings;
225
        };
226
227
        $this['eole.listener.authorization_header_fix'] = function () {
228
            return new \Alcalyn\AuthorizationHeaderFix\AuthorizationHeaderFixListener();