Code Duplication    Length = 11-13 lines in 2 locations

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

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

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

@@ 36-48 (lines=13) @@
33
    /** @var ChatNotification */
34
    protected $chatNotification;
35
36
    function __construct(
37
        Connection $connection,
38
        Console $console,
39
        AdminGroups $adminGroups,
40
        MapStorage $mapStorage,
41
        ChatNotification $chatNotification
42
    ) {
43
        $this->connection = $connection;
44
        $this->console = $console;
45
        $this->adminGroups = $adminGroups;
46
        $this->mapStorage = $mapStorage;
47
        $this->chatNotification = $chatNotification;
48
    }
49
50
    /**
51
     * Set the status of the plugin