diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-08-05 10:28:11 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-08-05 10:30:39 +0200 |
commit | 99224905d84eba5800a503713a06020d9d1412e0 (patch) | |
tree | 16cfa119e4474decc0b1787e7e3f083c5de1b73b /apps | |
parent | 728780aee8dbbdb41746b7510096c8690505a991 (diff) | |
download | nextcloud-server-99224905d84eba5800a503713a06020d9d1412e0.tar.gz nextcloud-server-99224905d84eba5800a503713a06020d9d1412e0.zip |
Use absolute namespace
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/sftp.php | 6 | ||||
-rw-r--r-- | apps/files_external/lib/sftp_key.php | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index 03ece9cb9dd..03620cfffe2 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -30,8 +30,6 @@ */ namespace OC\Files\Storage; -use phpseclib\Net\RSA; -use phpseclib\Net\SFTP; use phpseclib\Net\SFTP\Stream; /** @@ -91,7 +89,7 @@ class SFTP extends \OC\Files\Storage\Common { /** * Returns the connection. * - * @return SFTP connected client instance + * @return \phpseclib\Net\SFTP connected client instance * @throws \Exception when the connection failed */ public function getConnection() { @@ -100,7 +98,7 @@ class SFTP extends \OC\Files\Storage\Common { } $hostKeys = $this->readHostKeys(); - $this->client = new SFTP($this->host, $this->port); + $this->client = new \phpseclib\Net\SFTP($this->host, $this->port); // The SSH Host Key MUST be verified before login(). $currentHostKey = $this->client->getServerPublicHostKey(); diff --git a/apps/files_external/lib/sftp_key.php b/apps/files_external/lib/sftp_key.php index 06771d57d22..a193b323678 100644 --- a/apps/files_external/lib/sftp_key.php +++ b/apps/files_external/lib/sftp_key.php @@ -23,12 +23,14 @@ namespace OC\Files\Storage; use phpseclib\Crypt\RSA; -use phpseclib\Net\SFTP; class SFTP_Key extends \OC\Files\Storage\SFTP { private $publicKey; private $privateKey; + /** + * {@inheritdoc} + */ public function __construct($params) { parent::__construct($params); $this->publicKey = $params['public_key']; @@ -38,7 +40,7 @@ class SFTP_Key extends \OC\Files\Storage\SFTP { /** * Returns the connection. * - * @return SFTP connected client instance + * @return \phpseclib\Net\SFTP connected client instance * @throws \Exception when the connection failed */ public function getConnection() { @@ -47,7 +49,7 @@ class SFTP_Key extends \OC\Files\Storage\SFTP { } $hostKeys = $this->readHostKeys(); - $this->client = new SFTP($this->getHost()); + $this->client = new \phpseclib\Net\SFTP($this->getHost()); // The SSH Host Key MUST be verified before login(). $currentHostKey = $this->client->getServerPublicHostKey(); |