Code Duplication    Length = 8-9 lines in 3 locations

Classes/Commands/ChannelCommand.php 1 location

@@ 31-38 (lines=8) @@
28
     * @param RealTimeClient $client
29
     * @param array|null $configuration
30
     */
31
    public function __construct(Payload $payload, RealTimeClient $client, array $configuration = null)
32
    {
33
        $this->commandName = 'channel';
34
        $this->helpCommands = [
35
            'help' => 'shows this help'
36
        ];
37
        parent::__construct($payload, $client, $configuration);
38
    }
39
40
    /**
41
     * @return bool|string

Classes/Commands/ForgeCommand.php 1 location

@@ 30-38 (lines=9) @@
27
     * @param RealTimeClient $client
28
     * @param array|null $configuration
29
     */
30
    public function __construct(Payload $payload, RealTimeClient $client, array $configuration = null)
31
    {
32
        $this->commandName = 'forge';
33
        $this->helpCommands = [
34
            'help' => 'shows this help',
35
            'show [Issue-ID]' => 'shows the issue by given [Issue-ID]',
36
        ];
37
        parent::__construct($payload, $client, $configuration);
38
    }
39
40
    /**
41
     * process show.

Classes/Commands/UtilCommand.php 1 location

@@ 30-38 (lines=9) @@
27
     * @param RealTimeClient $client
28
     * @param array|null $configuration
29
     */
30
    public function __construct(Payload $payload, RealTimeClient $client, array $configuration = null)
31
    {
32
        $this->commandName = 'util';
33
        $this->helpCommands = [
34
            'help' => 'shows this help',
35
            'coin [options]' => 'coin toss with [options] (separate by comma)',
36
        ];
37
        parent::__construct($payload, $client, $configuration);
38
    }
39
40
    /**
41
     * @return string