Code Duplication    Length = 16-19 lines in 2 locations

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

@@ 53-68 (lines=16) @@
50
     * @param CustomChat $customChat
51
     * @param LoggerInterface $logger
52
     */
53
    public function __construct(
54
        $command,
55
        $permission,
56
        array $aliases = [],
57
        AdminGroups $adminGroups,
58
        ChatNotification $chatNotification,
59
        PlayerStorage $playerStorage,
60
        CustomChat $customChat,
61
        LoggerInterface $logger
62
    ) {
63
        parent::__construct($command, $permission, $aliases, $adminGroups);
64
        $this->chatNotification = $chatNotification;
65
        $this->customChat = $customChat;
66
        $this->playerStorage = $playerStorage;
67
        $this->logger = $logger;
68
    }
69
70
    /**
71
     * @inheritdoc

src/eXpansion/Bundle/AdminChat/ChatCommand/AbstractConnectionCommand.php 1 location

@@ 57-75 (lines=19) @@
54
     * @param LoggerInterface $logger
55
     * @param Time $timeHelper
56
     */
57
    public function __construct(
58
        $command,
59
        $permission,
60
        array $aliases = [],
61
        AdminGroups $adminGroupsHelper,
62
        Factory $factory,
63
        ChatNotification $chatNotification,
64
        PlayerStorage $playerStorage,
65
        LoggerInterface $logger,
66
        Time $timeHelper
67
    ) {
68
        parent::__construct($command, $permission, $aliases, $adminGroupsHelper);
69
70
        $this->factory = $factory;
71
        $this->chatNotification = $chatNotification;
72
        $this->playerStorage = $playerStorage;
73
        $this->logger = $logger;
74
        $this->timeHelper = $timeHelper;
75
    }
76
77
    /**
78
     * @param bool $bool chat output visibility