src/Rocketeer/Services/Connections/Credentials/Modules/ConnectionsKeychain.php
public function getServersCredentials($connection = null)
    {
        $connection = $this->sanitizeConnection($connection);
        $available = $this->connections->getAvailableConnections();

        // Get and filter servers
        $servers = Arr::get($available, $connection->name.'.servers');
        if ($this->hasCommand() && $allowed = $this->command->option('server')) {
            $allowed = explode(',', $allowed);
            $servers = array_intersect_key((array) $servers, array_flip($allowed));
        }

        return $servers;
    }
public function getServersCredentials($connection = null)
    {
        $connection = $this->sanitizeConnection($connection);
        $available = $this->connections->getAvailableConnections();

        // Get and filter servers
        $servers = Arr::get($available, $connection->name.'.servers');
        if ($this->hasCommand() && $allowed = $this->command->option('server')) {
            $allowed = explode(',', $allowed);
            $servers = array_intersect_key((array) $servers, array_flip($allowed));
        }

        return $servers;
    }
public function getServersCredentials ( $ connection = null ) { $ connection = $ this -> sanitizeConnection ( $ connection ) ; $ available = $ this -> connections -> getAvailableConnections ( ) ; // Get and filter servers $ servers = Arr :: get ( $ available , $ connection -> name . '.servers' ) ; if ( $ this -> hasCommand ( ) && $ allowed = $ this -> command -> option ( 'server' ) ) { $ allowed = explode ( ',' , $ allowed ) ; $ servers = array_intersect_key ( ( array ) $ servers , array_flip ( $ allowed ) ) ; } return $ servers ; }
Get the credentials for a particular connection.

@param ConnectionKey|string|null $connection

@return string[][]
Get the credentials for a particular connection .