Code Duplication    Length = 11-11 lines in 2 locations

src/app/Balloon.App.Cli/Console/Group.php 1 location

@@ 71-81 (lines=11) @@
68
     *
69
     * @return bool
70
     */
71
    public function add(): bool
72
    {
73
        $member = $this->parseMember();
74
        $result = $this->server->addGroup($this->getopt->getOption('name'), $member, $this->parseParams());
75
76
        $this->logger->info('new group ['.$result.'] created', [
77
            'category' => get_class($this),
78
       ]);
79
80
        return true;
81
    }
82
83
    /**
84
     * Start.

src/app/Balloon.App.Cli/Console/User.php 1 location

@@ 72-82 (lines=11) @@
69
     *
70
     * @return bool
71
     */
72
    public function add(): bool
73
    {
74
        $options = $this->parseParams();
75
        $result = $this->server->addUser($this->getopt->getOption('username'), $options);
76
77
        $this->logger->info('new user ['.$result.'] created', [
78
            'category' => get_class($this),
79
        ]);
80
81
        return true;
82
    }
83
84
    /**
85
     * Start.