src/SSH/Driver/Sftp.php
private function removeResource($prefix)
    {
        if (!isset($this->resources[$prefix]))
        {
            return;
        }

        unset($this->resources[$prefix]);
        $this->resourcesCounter--;

        if ($this->resourcesCounter === 0)
        {
            $this->pause();
        }
    }
private function removeResource($prefix)
    {
        if (!isset($this->resources[$prefix]))
        {
            return;
        }

        unset($this->resources[$prefix]);
        $this->resourcesCounter--;

        if ($this->resourcesCounter === 0)
        {
            $this->pause();
        }
    }
private function removeResource ( $ prefix ) { if ( ! isset ( $ this -> resources [ $ prefix ] ) ) { return ; } unset ( $ this -> resources [ $ prefix ] ) ; $ this -> resourcesCounter -- ; if ( $ this -> resourcesCounter === 0 ) { $ this -> pause ( ) ; } }
Remove resource from known collection.

@param string $prefix
Remove resource from known collection .