diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-18 20:38:40 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-07-19 10:28:11 +0200 |
commit | d8ec3994542d238f9d679d6c426c14caf6ba6450 (patch) | |
tree | d418b14313b2b45ab4456e0ebaacda96536786e3 /apps/files_external/lib | |
parent | 0ee83ac56bb7390899699f230f7e022f00d4042e (diff) | |
download | nextcloud-server-d8ec3994542d238f9d679d6c426c14caf6ba6450.tar.gz nextcloud-server-d8ec3994542d238f9d679d6c426c14caf6ba6450.zip |
Run phan over code base
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/Swift.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php index 105d1073ae6..db5b5bf6d95 100644 --- a/apps/files_external/lib/Lib/Storage/Swift.php +++ b/apps/files_external/lib/Lib/Storage/Swift.php @@ -118,7 +118,7 @@ class Swift extends \OC\Files\Storage\Common { * that one will be returned. * * @param string $path - * @return \OpenCloud\OpenStack\ObjectStorage\Resource\DataObject|bool object + * @return \OpenCloud\ObjectStore\Resource\DataObject|bool object * or false if the object did not exist */ private function fetchObject($path) { @@ -382,9 +382,9 @@ class Swift extends \OC\Files\Storage\Common { try { $c = $this->getContainer(); $streamFactory = new \Guzzle\Stream\PhpStreamRequestFactory(); - $streamInterface = $streamFactory->fromRequest( - $c->getClient() - ->get($c->getUrl($path))); + /** @var \OpenCloud\Common\Http\Client $client */ + $client = $c->getClient(); + $streamInterface = $streamFactory->fromRequest($client->get($c->getUrl($path))); $streamInterface->rewind(); $stream = $streamInterface->getStream(); stream_context_set_option($stream, 'swift','content', $streamInterface); |