Code Duplication    Length = 21-21 lines in 2 locations

src/eXpansion/Framework/Core/Plugins/Gui/WidgetFactory.php 1 location

@@ 37-57 (lines=21) @@
34
     * @param null                 $posY
35
     * @param WidgetFactoryContext $context
36
     */
37
    public function __construct(
38
        $name,
39
        $sizeX,
40
        $sizeY,
41
        $posX,
42
        $posY,
43
        WidgetFactoryContext $context
44
    ) {
45
        parent::__construct(
46
            $name,
47
            $sizeX,
48
            $sizeY,
49
            $posX,
50
            $posY,
51
            $context
52
        );
53
54
        $this->translationsHelper = $context->getTranslationsHelper();
55
        $this->uiFactory = $context->getUiFactory();
56
        $this->widgetFrameFactory = $context->getWidgetFrameFactory();
57
    }
58
59
    /**
60
     * @param Group $group

src/eXpansion/Framework/Core/Plugins/Gui/WindowFactory.php 1 location

@@ 33-53 (lines=21) @@
30
     * @param null                 $posY
31
     * @param WindowFactoryContext $context
32
     */
33
    public function __construct(
34
        $name,
35
        $sizeX,
36
        $sizeY,
37
        $posX = null,
38
        $posY = null,
39
        WindowFactoryContext $context
40
    ) {
41
        parent::__construct(
42
            $name,
43
            $sizeX,
44
            $sizeY,
45
            $posX,
46
            $posY,
47
            $context
48
        );
49
50
        $this->translationsHelper = $context->getTranslationsHelper();
51
        $this->uiFactory = $context->getUiFactory();
52
        $this->windowFrameFactory = $context->getWindowFrameFactory();
53
    }
54
55
    /**
56
     * @param Group $group