src/Rocketeer/Services/Connections/ConnectionsHandler.php
public function isValidConnection($connection)
    {
        $connection = $this->credentials->sanitizeConnection($connection);
        $available = (array) $this->getAvailableConnections();

        return (bool) Arr::get($available, $connection->name.'.servers');
    }
public function isValidConnection($connection)
    {
        $connection = $this->credentials->sanitizeConnection($connection);
        $available = (array) $this->getAvailableConnections();

        return (bool) Arr::get($available, $connection->name.'.servers');
    }
public function isValidConnection ( $ connection ) { $ connection = $ this -> credentials -> sanitizeConnection ( $ connection ) ; $ available = ( array ) $ this -> getAvailableConnections ( ) ; return ( bool ) Arr :: get ( $ available , $ connection -> name . '.servers' ) ; }
Check if a connection has credentials related to it.

@param ConnectionKey|string $connection

@return bool
Check if a connection has credentials related to it .