Skip to content

Commit 7d2687b

Browse files
Adding installation instructions for contributors
1 parent 1c976f0 commit 7d2687b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ require 'vendor/autoload.php';
4040

4141
And you're ready to go!
4242

43+
Alternatively, if you would like to clone the repository into a directory (to work and submit pull requests):
44+
45+
```bash
46+
git clone [email protected]:rackspace/php-opencloud.git .
47+
curl -sS https://getcomposer.org/installer | php
48+
php composer.phar install
49+
```
50+
51+
You can specify the `--no-dev` flag to Composer if you do not want to install phpDocumentor (lots of vendor folders).
52+
4353
Support and Feedback
4454
--------------------
4555
Your feedback is appreciated! If you have specific problems or bugs with this SDK, please file an issue on Github. We

lib/OpenCloud/Common/Http/Message/RequestSubscriber.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ public static function getSubscribedEvents()
3939
*/
4040
public function doCurlProgress($options)
4141
{
42-
if ($options['request']->getCurlOptions()->hasKey('progressCallback')) {
43-
return call_user_func($options['request']->getCurlOptions()->get('progressCallback'));
42+
$curlOptions = $options['request']->getCurlOptions();
43+
if ($curlOptions->hasKey('progressCallback')) {
44+
return call_user_func($curlOptions->get('progressCallback'));
4445
} else {
4546
echo sprintf(
4647
"Download size: [%d]\nDownloaded: [%d]\nUpload size: [%d]\nUploaded: [%d]\n",

0 commit comments

Comments
 (0)