src/Rocketeer/Services/Connections/Credentials/Modules/ConnectionsKeychain.php
protected function filterUnsavableCredentials(ConnectionKey $connection, $credentials)
    {
        $defined = $this->getServerCredentials($connection);
        foreach ($credentials as $key => $value) {
            if (array_get($defined, $key) === true) {
                unset($credentials[$key]);
            }
        }

        return $credentials;
    }
protected function filterUnsavableCredentials(ConnectionKey $connection, $credentials)
    {
        $defined = $this->getServerCredentials($connection);
        foreach ($credentials as $key => $value) {
            if (array_get($defined, $key) === true) {
                unset($credentials[$key]);
            }
        }

        return $credentials;
    }
protected function filterUnsavableCredentials ( ConnectionKey $ connection , $ credentials ) { $ defined = $ this -> getServerCredentials ( $ connection ) ; foreach ( $ credentials as $ key => $ value ) { if ( array_get ( $ defined , $ key ) === true ) { unset ( $ credentials [ $ key ] ) ; } } return $ credentials ; }
Filter the credentials and remove the ones that
can't be saved to disk.

@param ConnectionKey $connection
@param array         $credentials

@return string[]
Filter the credentials and remove the ones that can t be saved to disk .