Code Duplication    Length = 19-24 lines in 2 locations

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

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

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

@@ 53-76 (lines=24) @@
50
     * @param Time             $timeHelper
51
     * @param MapStorage       $mapStorage
52
     */
53
    public function __construct(
54
        $command,
55
        $permission,
56
        array $aliases = [],
57
        AdminGroups $adminGroupsHelper,
58
        ChatNotification $chatNotification,
59
        PlayerStorage $playerStorage,
60
        LoggerInterface $logger,
61
        Connection $connection,
62
        MapStorage $mapStorage
63
    ) {
64
        parent::__construct(
65
            $command,
66
            $permission,
67
            $aliases = [],
68
            $adminGroupsHelper
69
        );
70
71
        $this->chatNotification = $chatNotification;
72
        $this->playerStorage = $playerStorage;
73
        $this->mapStorage = $mapStorage;
74
        $this->adminGroupsHelper = $adminGroupsHelper;
75
        $this->connection = $connection;
76
    }
77
78
    /**
79
     * @inheritdoc