Code Duplication    Length = 28-32 lines in 3 locations

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

@@ 76-107 (lines=32) @@
73
     * @param LoggerInterface $logger
74
     * @param Time $timeHelper
75
     */
76
    public function __construct(
77
        $command,
78
        $permission,
79
        array $aliases = [],
80
        $functionName,
81
        $parameterLoginDescription,
82
        $parameterReasonDescription,
83
        AdminGroups $adminGroupsHelper,
84
        Connection $connection,
85
        ChatNotification $chatNotification,
86
        PlayerStorage $playerStorage,
87
        LoggerInterface $logger,
88
        Time $timeHelper
89
    ) {
90
        parent::__construct(
91
            $command,
92
            $permission,
93
            $aliases,
94
            $adminGroupsHelper,
95
            $connection,
96
            $chatNotification,
97
            $playerStorage,
98
            $logger,
99
            $timeHelper
100
        );
101
102
        $this->description = 'expansion_admin_chat.' . strtolower($functionName) . '.description';
103
        $this->chatMessage = 'expansion_admin_chat.' . strtolower($functionName) . '.msg';
104
        $this->functionName = $functionName;
105
        $this->parameterLoginDescription = $parameterLoginDescription;
106
        $this->parameterReasonDescription = $parameterReasonDescription;
107
    }
108
109
110
    /**

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

@@ 61-88 (lines=28) @@
58
     * @param LoggerInterface $logger
59
     * @param Time $timeHelper
60
     */
61
    public function __construct(
62
        $command,
63
        $permission,
64
        array $aliases = [],
65
        $functionName,
66
        AdminGroups $adminGroupsHelper,
67
        Connection $connection,
68
        ChatNotification $chatNotification,
69
        PlayerStorage $playerStorage,
70
        LoggerInterface $logger,
71
        Time $timeHelper
72
    ) {
73
        parent::__construct(
74
            $command,
75
            $permission,
76
            $aliases,
77
            $adminGroupsHelper,
78
            $connection,
79
            $chatNotification,
80
            $playerStorage,
81
            $logger,
82
            $timeHelper
83
        );
84
85
        $this->description = 'expansion_admin_chat.' . strtolower($functionName) . '.description';
86
        $this->chatMessage = 'expansion_admin_chat.' . strtolower($functionName) . '.msg';
87
        $this->functionName = $functionName;
88
    }
89
90
    /**
91
     * @inheritdoc

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

@@ 67-96 (lines=30) @@
64
     * @param LoggerInterface  $logger
65
     * @param Time             $timeHelper
66
     */
67
    public function __construct(
68
        $command,
69
        $permission,
70
        array $aliases = [],
71
        $functionName,
72
        $parameterDescription,
73
        AdminGroups $adminGroupsHelper,
74
        Connection $connection,
75
        ChatNotification $chatNotification,
76
        PlayerStorage $playerStorage,
77
        LoggerInterface $logger,
78
        Time $timeHelper
79
    ) {
80
        parent::__construct(
81
            $command,
82
            $permission,
83
            $aliases,
84
            $adminGroupsHelper,
85
            $connection,
86
            $chatNotification,
87
            $playerStorage,
88
            $logger,
89
            $timeHelper
90
        );
91
92
        $this->description = 'expansion_admin_chat.'.strtolower($functionName).'.description';
93
        $this->chatMessage = 'expansion_admin_chat.'.strtolower($functionName).'.msg';
94
        $this->functionName = (string)$functionName;
95
        $this->parameterDescription = (string)$parameterDescription;
96
    }
97
98
99
    /**