Code Duplication    Length = 21-23 lines in 3 locations

src/eXpansion/Bundle/Admin/Plugins/Gui/ScriptSettingsWindowFactory.php 1 location

@@ 46-66 (lines=21) @@
43
    /** @var  AdminGroups */
44
    protected $adminGroupsHelper;
45
46
    public function __construct(
47
        $name,
48
        $sizeX,
49
        $sizeY,
50
        $posX,
51
        $posY,
52
        WindowFactoryContext $context,
53
        GridBuilderFactory $gridBuilderFactory,
54
        DataCollectionFactory $dataCollectionFactory,
55
        AdminGroups $adminGroupsHelper,
56
        Connection $connection,
57
        Console $console
58
    ) {
59
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
60
        $this->adminGroupsHelper = $adminGroupsHelper;
61
        $this->currentMenuView = Frame::create();
62
        $this->gridBuilderFactory = $gridBuilderFactory;
63
        $this->dataCollectionFactory = $dataCollectionFactory;
64
        $this->connection = $connection;
65
        $this->console = $console;
66
    }
67
68
    /**
69
     * @param ManialinkInterface $manialink

src/eXpansion/Bundle/Maps/Plugins/Gui/JukeboxWindowFactory.php 1 location

@@ 70-92 (lines=23) @@
67
     * @param JukeboxService $jukeboxService
68
     * @param AdminGroups $adminGroups
69
     */
70
    public function __construct(
71
        $name,
72
        $sizeX,
73
        $sizeY,
74
        $posX,
75
        $posY,
76
        WindowFactoryContext $context,
77
        GridBuilderFactory $gridBuilderFactory,
78
        DataCollectionFactory $dataCollectionFactory,
79
        Time $time,
80
        JukeboxService $jukeboxService,
81
        AdminGroups $adminGroups
82
    ) {
83
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
84
85
        $this->gridBuilderFactory = $gridBuilderFactory;
86
        $this->dataCollectionFactory = $dataCollectionFactory;
87
        $this->timeFormatter = $time;
88
        $this->sizeX = $sizeX;
89
        $this->sizeY = $sizeY;
90
        $this->jukeboxService = $jukeboxService;
91
        $this->adminGroups = $adminGroups;
92
    }
93
94
    public function setJukeboxPlugin(Jukebox $plugin)
95
    {

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

@@ 41-61 (lines=21) @@
38
    /** @var WindowHelpDetailsFactory */
39
    protected $windowHelpDetailsFactory;
40
41
    public function __construct(
42
        $name,
43
        $sizeX,
44
        $sizeY,
45
        $posX,
46
        $posY,
47
        WindowFactoryContext $context,
48
        GridBuilderFactory $gridBuilderFactory,
49
        DataCollectionFactory $dataCollectionFactory,
50
        ChatCommands $chatCommands,
51
        ChatCommandDataProvider $chatCommandDataProvider,
52
        WindowHelpDetailsFactory $windowHelpDetailsFactory
53
    ) {
54
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
55
56
        $this->gridBuilderFactory = $gridBuilderFactory;
57
        $this->dataCollectionFactory = $dataCollectionFactory;
58
        $this->chatCommands = $chatCommands;
59
        $this->chatCommandDataPovider = $chatCommandDataProvider;
60
        $this->windowHelpDetailsFactory = $windowHelpDetailsFactory;
61
    }
62
63
64
    /**