protected function presentConnections($connections)
    {
        $headers = [
            'name' => 'Name',
            'host' => 'Host',
            'username' => 'Username',
            'password' => 'Password',
            'key' => 'Key',
            'keyphrase' => 'Keyphrase',
            'root_directory' => 'Root directory',
        ];

        $rows = [];
        foreach ($connections as $name => $connection) {
            $connection[mb_strtoupper($name.'_NAME')] = $name;

            $row = [];
            foreach ($headers as $key => $value) {
                $key = mb_strtoupper($name.'_'.$key);
                $row[] = isset($connection[$key]) ? $connection[$key] : '';
            }

            $rows[] = $row;
        }

        $this->command->writeln('Here are the current connections defined:');
        $this->command->table(array_values($headers), $rows);
    }