Code Duplication    Length = 11-15 lines in 3 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/JoinLeaveMessages/Plugins/JoinLeaveMessages.php 1 location

@@ 33-43 (lines=11) @@
30
     * @param Connection $connection
31
     * @param Console $console
32
     */
33
    public function __construct(
34
        Connection $connection,
35
        Console $console,
36
        ChatNotification $chatNotification,
37
        AdminGroups $adminGroups
38
    ) {
39
        $this->connection = $connection;
40
        $this->console = $console;
41
        $this->chat = $chatNotification;
42
        $this->adminGroups = $adminGroups;
43
    }
44
45
    /**
46
     * @inheritdoc

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