Code Duplication    Length = 25-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

@@ 59-83 (lines=25) @@
56
     * @param Connection              $connection
57
     * @param AdminGroups             $adminGroups
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
        Countries $countries
73
    ) {
74
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
75
76
        $this->playerStorage = $playerStorage;
77
        $this->dataCollectionFactory = $dataCollectionFactory;
78
        $this->gridBuilderFactory = $gridBuilderFactory;
79
        $this->chatCommandDataProvider = $chatCommandDataProvider;
80
        $this->connection = $connection;
81
        $this->adminGroups = $adminGroups;
82
        $this->countries = $countries;
83
    }
84
85
    protected function createContent(ManialinkInterface $manialink)
86
    {