Code Duplication    Length = 14-15 lines in 2 locations

src/eXpansion/Bundle/CustomChat/ChatCommand/ControlCommand.php 1 location

@@ 48-62 (lines=15) @@
45
     * @param PlayerStorage $playerStorage
46
     * @param CustomChat $customChat
47
     */
48
    public function __construct(
49
        $command,
50
        $permission,
51
        array $aliases = [],
52
        AdminGroups $adminGroups,
53
        ChatNotification $chatNotification,
54
        PlayerStorage $playerStorage,
55
        CustomChat $customChat
56
    ) {
57
        parent::__construct($command, $permission, $aliases, $adminGroups);
58
        $this->chatNotification = $chatNotification;
59
        $this->adminGroup = $adminGroups;
60
        $this->customChat = $customChat;
61
        $this->playerStorage = $playerStorage;
62
    }
63
64
    /**
65
     * @inheritdoc

src/eXpansion/Bundle/VoteManager/ChatCommand/VotePass.php 1 location

@@ 42-55 (lines=14) @@
39
     * @param PlayerStorage    $playerStorage
40
     * @param ChatNotification $chatNotification
41
     */
42
    public function __construct(
43
        $command,
44
        $permission,
45
        array $aliases = [],
46
        AdminGroups $adminGroups,
47
        VoteService $voteService,
48
        PlayerStorage $playerStorage,
49
        ChatNotification $chatNotification
50
    ) {
51
        parent::__construct($command, $permission, $aliases, $adminGroups);
52
        $this->voteService = $voteService;
53
        $this->playerStorage = $playerStorage;
54
        $this->chatNotification = $chatNotification;
55
    }
56
57
    /**
58
     * @inheritdoc