Code Duplication    Length = 20-21 lines in 2 locations

tests/Charcoal/ContainerProvider.php 2 locations

@@ 174-193 (lines=20) @@
171
        };
172
    }
173
174
    public function registerDashboardFactory(Container $container)
175
    {
176
        $this->registerLogger($container);
177
        $this->registerWidgetBuilder($container);
178
        $this->registerLayoutBuilder($container);
179
180
        $container['dashboard/factory'] = function (Container $container) {
181
            return new Factory([
182
                'arguments'          => [[
183
                    'container'      => $container,
184
                    'logger'         => $container['logger'],
185
                    'widget_builder' => $container['widget/builder'],
186
                    'layout_builder' => $container['layout/builder']
187
                ]],
188
                'resolver_options' => [
189
                    'suffix' => 'Dashboard'
190
                ]
191
            ]);
192
        };
193
    }
194
195
    public function registerDashboardBuilder(Container $container)
196
    {
@@ 402-422 (lines=21) @@
399
        };
400
    }
401
402
    public function registerPropertyFactory(Container $container)
403
    {
404
        $this->registerTranslator($container);
405
        $this->registerDatabase($container);
406
        $this->registerLogger($container);
407
408
        $container['property/factory'] = function (Container $container) {
409
            return new Factory([
410
                'resolver_options' => [
411
                    'prefix' => '\\Charcoal\\Property\\',
412
                    'suffix' => 'Property'
413
                ],
414
                'arguments' => [[
415
                    'container'  => $container,
416
                    'database'   => $container['database'],
417
                    'translator' => $container['translator'],
418
                    'logger'     => $container['logger']
419
                ]]
420
            ]);
421
        };
422
    }
423
424
    public function registerPropertyDisplayFactory(Container $container)
425
    {