Code Duplication    Length = 7-7 lines in 3 locations

Script/Twig/MissingExtension.php 1 location

@@ 14-20 (lines=7) @@
11
    protected $em;
12
    protected $short_functions;
13
14
    public function __construct($request_stack, $em, $container)
15
    {
16
        $this->request = $request_stack->getCurrentRequest();
17
        $this->em = $em;
18
19
        $this->short_functions = $container->hasParameter('sludio_helper.script.short_functions') && $container->getParameter('sludio_helper.script.short_functions', false);
20
    }
21
22
    public function getName()
23
    {

Translatable/Twig/TranslationExtension.php 1 location

@@ 15-21 (lines=7) @@
12
    protected $defaultLocale;
13
    protected $short_functions;
14
15
    public function __construct($em, $request_stack, $default, $container)
16
    {
17
        $this->em = $em;
18
        $this->request = $request_stack->getCurrentRequest();
19
        $this->defaultLocale = $default;
20
        $this->short_functions = $container->hasParameter('sludio_helper.script.short_functions') && $container->getParameter('sludio_helper.script.short_functions', false);
21
    }
22
23
    public function getName()
24
    {

Script/Twig/BeautifyExtension.php 1 location

@@ 14-20 (lines=7) @@
11
    protected $em;
12
    protected $short_functions;
13
14
    public function __construct($request_stack, $em, $container)
15
    {
16
        $this->request = $request_stack->getCurrentRequest();
17
        $this->em = $em;
18
19
        $this->short_functions = $container->hasParameter('sludio_helper.script.short_functions') && $container->getParameter('sludio_helper.script.short_functions', false);
20
    }
21
22
    public function getName()
23
    {