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

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