src/Rocketeer/Services/Connections/Credentials/Modules/ConnectionsKeychain.php
public function getServerCredentials($connection = null, $server = 0)
    {
        $connection = $this->sanitizeConnection($connection);
        $servers = $this->getServersCredentials($connection);

        return (array) Arr::get($servers, $server ?: $connection->server);
    }
public function getServerCredentials($connection = null, $server = 0)
    {
        $connection = $this->sanitizeConnection($connection);
        $servers = $this->getServersCredentials($connection);

        return (array) Arr::get($servers, $server ?: $connection->server);
    }
public function getServerCredentials ( $ connection = null , $ server = 0 ) { $ connection = $ this -> sanitizeConnection ( $ connection ) ; $ servers = $ this -> getServersCredentials ( $ connection ) ; return ( array ) Arr :: get ( $ servers , $ server ? : $ connection -> server ) ; }
Get the credentials for as server.

@param ConnectionKey|string|null $connection
@param int                       $server

@return array
Get the credentials for as server .