Code Duplication    Length = 9-9 lines in 2 locations

src/Console/Commands/PublishMySQLUsers.php 1 location

@@ 118-126 (lines=9) @@
115
        $headers = ['Id', 'Server Id','Name','Status','Created at'];
116
117
        $rows = [];
118
        foreach ($users as $user) {
119
            $rows[] = [
120
                $user['id'],
121
                $user['serverId'],
122
                $user['name'],
123
                $user['status'],
124
                $user['createdAt']
125
            ];
126
        }
127
128
        $this->table($headers, $rows);
129
    }

src/Console/Commands/PublishMySQL.php 1 location

@@ 129-137 (lines=9) @@
126
        $headers = ['Id', 'Server Id','Name','Status','Created at'];
127
128
        $rows = [];
129
        foreach ($databases as $database) {
130
            $rows[] = [
131
                $database['id'],
132
                $database['serverId'],
133
                $database['name'],
134
                $database['status'],
135
                $database['createdAt']
136
            ];
137
        }
138
139
        $this->table($headers, $rows);
140
    }