Code Duplication    Length = 21-23 lines in 3 locations

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
    /**

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

@@ 54-74 (lines=21) @@
51
     * @param AdminGroups $adminGroupsHelper
52
     * @param Connection $connection
53
     */
54
    public function __construct(
55
        $name,
56
        $sizeX,
57
        $sizeY,
58
        $posX,
59
        $posY,
60
        WindowFactoryContext $context,
61
        GridBuilderFactory $gridBuilderFactory,
62
        DataCollectionFactory $dataCollectionFactory,
63
        AdminGroups $adminGroupsHelper,
64
        Connection $connection,
65
        Console $console
66
    ) {
67
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
68
        $this->adminGroupsHelper = $adminGroupsHelper;
69
        $this->currentMenuView = Frame::create();
70
        $this->gridBuilderFactory = $gridBuilderFactory;
71
        $this->dataCollectionFactory = $dataCollectionFactory;
72
        $this->connection = $connection;
73
        $this->console = $console;
74
    }
75
76
    /**
77
     * @param ManialinkInterface $manialink