Code Duplication    Length = 13-15 lines in 4 locations

src/eXpansion/Bundle/CustomChat/Plugins/CustomChat.php 1 location

@@ 46-58 (lines=13) @@
43
     * @param ChatNotification $chatNotification
44
     * @param PlayerStorage    $playerStorage
45
     */
46
    function __construct(
47
        Connection $connection,
48
        Console $console,
49
        AdminGroups $adminGroups,
50
        ChatNotification $chatNotification,
51
        PlayerStorage $playerStorage
52
    ) {
53
        $this->connection = $connection;
54
        $this->console = $console;
55
        $this->adminGroups = $adminGroups;
56
        $this->chatNotification = $chatNotification;
57
        $this->playerStorage = $playerStorage;
58
    }
59
60
    /**
61
     * Called when a player chats.

src/eXpansion/Bundle/Maps/Plugins/Maps.php 1 location

@@ 51-65 (lines=15) @@
48
     * @param ChatNotification $chatNotification
49
     * @param PlayerStorage $playerStorage
50
     */
51
    function __construct(
52
        Connection $connection,
53
        Console $console,
54
        AdminGroups $adminGroups,
55
        MapStorage $mapStorage,
56
        ChatNotification $chatNotification,
57
        PlayerStorage $playerStorage
58
    ) {
59
        $this->connection = $connection;
60
        $this->console = $console;
61
        $this->adminGroups = $adminGroups;
62
        $this->mapStorage = $mapStorage;
63
        $this->chatNotification = $chatNotification;
64
        $this->playerStorage = $playerStorage;
65
    }
66
67
    /**
68
     * Set the status of the plugin

src/eXpansion/Framework/Core/Helpers/ChatNotification.php 1 location

@@ 47-59 (lines=13) @@
44
     * @param Console         $console
45
     * @param LoggerInterface $logger
46
     */
47
    public function __construct(
48
        Connection $connection,
49
        Translations $translations,
50
        PlayerStorage $playerStorage,
51
        Console $console,
52
        LoggerInterface $logger
53
    ) {
54
        $this->connection = $connection;
55
        $this->translations = $translations;
56
        $this->playerStorage = $playerStorage;
57
        $this->console = $console;
58
        $this->logger = $logger;
59
    }
60
61
    /**
62
     * Send message.

src/eXpansion/Bundle/JoinLeaveMessages/Plugins/JoinLeaveMessages.php 1 location

@@ 39-51 (lines=13) @@
36
     * @param ChatNotification $chatNotification
37
     * @param AdminGroups      $adminGroups
38
     */
39
    public function __construct(
40
        Connection $connection,
41
        Console $console,
42
        ChatNotification $chatNotification,
43
        AdminGroups $adminGroups,
44
        Countries $countries
45
    ) {
46
        $this->connection = $connection;
47
        $this->console = $console;
48
        $this->chatNotification = $chatNotification;
49
        $this->adminGroups = $adminGroups;
50
        $this->countries = $countries;
51
    }
52
53
    /**
54
     * @inheritdoc