Code Duplication    Length = 13-15 lines in 2 locations

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

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

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

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