Code Duplication    Length = 11-13 lines in 2 locations

src/LIN3S/CMSKernel/Infrastructure/Lin3sAdminBundle/Action/Type/TranslateActionType.php 1 location

@@ 35-45 (lines=11) @@
32
    private $formFactory;
33
    private $twig;
34
35
    public function __construct(
36
        FormFactoryInterface $formFactory,
37
        CommandBus $commandBus,
38
        \Twig_Environment $twig,
39
        FlashBagInterface $flashBag
40
    ) {
41
        $this->commandBus = $commandBus;
42
        $this->flashBag = $flashBag;
43
        $this->formFactory = $formFactory;
44
        $this->twig = $twig;
45
    }
46
47
    public function execute($entity, Entity $config, Request $request, $options = null)
48
    {

src/LIN3S/CMSKernel/Infrastructure/Lin3sAdminBundle/Action/Type/NewTranslatableActionType.php 1 location

@@ 37-49 (lines=13) @@
34
    private $commandBus;
35
    private $urlGenerator;
36
37
    public function __construct(
38
        FormFactoryInterface $formFactory,
39
        CommandBus $commandBus,
40
        \Twig_Environment $twig,
41
        FlashBagInterface $flashBag,
42
        UrlGeneratorInterface $urlGenerator
43
    ) {
44
        $this->twig = $twig;
45
        $this->flashBag = $flashBag;
46
        $this->formFactory = $formFactory;
47
        $this->commandBus = $commandBus;
48
        $this->urlGenerator = $urlGenerator;
49
    }
50
51
    public function execute($entity, Entity $config, Request $request, $options = null)
52
    {