Code Duplication    Length = 10-10 lines in 2 locations

src/Action/SingleBlogEntryActionFactory.php 1 location

@@ 20-29 (lines=10) @@
17
18
class SingleBlogEntryActionFactory implements FactoryInterface
19
{
20
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : SingleBlogEntryAction
21
    {
22
        $config = $container->get('config');
23
        return new SingleBlogEntryAction(
24
            $container->get(TemplateRendererInterface::class),
25
            $container->get(ContentCreator::class),
26
            $container->get(MarkdownDocumentParser::class),
27
            $config['markdown_cms']
28
        );
29
    }
30
}

src/Parser/ContentParserFactory.php 1 location

@@ 28-37 (lines=10) @@
25
     * {@inheritDoc}
26
     * @see \Zend\ServiceManager\Factory\FactoryInterface::__invoke()
27
     */
28
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : ContentParser
29
    {
30
        $config = $container->get('config');
31
        return new ContentParser(
32
            $container->get(MarkdownFileIterator::class),
33
            $container->get(ContentCreator::class),
34
            $container->get(MarkdownDocumentParser::class),
35
            $config['markdown_cms']['options']
36
        );
37
    }
38
}