Code Duplication    Length = 24-26 lines in 2 locations

src/eXpansion/Bundle/Players/Plugins/Gui/ListWindow.php 1 location

@@ 59-84 (lines=26) @@
56
     * @param AdminGroups             $adminGroups
57
     * @param ChatNotification        $chatNotification
58
     */
59
    public function __construct(
60
        $name,
61
        $sizeX,
62
        $sizeY,
63
        $posX = null,
64
        $posY = null,
65
        WindowFactoryContext $context,
66
        PlayerStorage $playerStorage,
67
        DataCollectionFactory $dataCollectionFactory,
68
        GridBuilderFactory $gridBuilderFactory,
69
        ChatCommandDataProvider $chatCommandDataProvider,
70
        Connection $connection,
71
        AdminGroups $adminGroups,
72
        ChatNotification $chatNotification
73
74
    ) {
75
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
76
77
        $this->playerStorage = $playerStorage;
78
        $this->dataCollectionFactory = $dataCollectionFactory;
79
        $this->gridBuilderFactory = $gridBuilderFactory;
80
        $this->chatCommandDataProvider = $chatCommandDataProvider;
81
        $this->connection = $connection;
82
        $this->adminGroups = $adminGroups;
83
        $this->chatNotification = $chatNotification;
84
    }
85
86
    /**
87
     * @param mixed $mode

src/eXpansion/Bundle/Players/Plugins/Gui/PlayersWindow.php 1 location

@@ 56-79 (lines=24) @@
53
     * @param Connection              $connection
54
     * @param AdminGroups             $adminGroups
55
     */
56
    public function __construct(
57
        $name,
58
        $sizeX,
59
        $sizeY,
60
        $posX = null,
61
        $posY = null,
62
        WindowFactoryContext $context,
63
        PlayerStorage $playerStorage,
64
        DataCollectionFactory $dataCollectionFactory,
65
        GridBuilderFactory $gridBuilderFactory,
66
        ChatCommandDataProvider $chatCommandDataProvider,
67
        Connection $connection,
68
        AdminGroups $adminGroups
69
70
    ) {
71
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
72
73
        $this->playerStorage = $playerStorage;
74
        $this->dataCollectionFactory = $dataCollectionFactory;
75
        $this->gridBuilderFactory = $gridBuilderFactory;
76
        $this->chatCommandDataProvider = $chatCommandDataProvider;
77
        $this->connection = $connection;
78
        $this->adminGroups = $adminGroups;
79
    }
80
81
    protected function createContent(ManialinkInterface $manialink)
82
    {