Code Duplication    Length = 25-26 lines in 2 locations

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

@@ 58-83 (lines=26) @@
55
     * @param AdminGroups             $adminGroups
56
     * @param ChatNotification        $chatNotification
57
     */
58
    public function __construct(
59
        $name,
60
        $sizeX,
61
        $sizeY,
62
        $posX = null,
63
        $posY = null,
64
        WindowFactoryContext $context,
65
        PlayerStorage $playerStorage,
66
        DataCollectionFactory $dataCollectionFactory,
67
        GridBuilderFactory $gridBuilderFactory,
68
        ChatCommandDataProvider $chatCommandDataProvider,
69
        Connection $connection,
70
        AdminGroups $adminGroups,
71
        ChatNotification $chatNotification
72
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->chatNotification = $chatNotification;
83
    }
84
85
    protected function createContent(
86
        ManialinkInterface $manialink

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
    {