Skip to content

Commit

Permalink
Adding installation instructions for contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehannaford committed Nov 6, 2013
1 parent 1c976f0 commit 7d2687b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ require 'vendor/autoload.php';

And you're ready to go!

Alternatively, if you would like to clone the repository into a directory (to work and submit pull requests):

```bash
git clone git@github.com:rackspace/php-opencloud.git .
curl -sS https://getcomposer.org/installer | php
php composer.phar install
```

You can specify the `--no-dev` flag to Composer if you do not want to install phpDocumentor (lots of vendor folders).

Support and Feedback
--------------------
Your feedback is appreciated! If you have specific problems or bugs with this SDK, please file an issue on Github. We
Expand Down
5 changes: 3 additions & 2 deletions lib/OpenCloud/Common/Http/Message/RequestSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ public static function getSubscribedEvents()
*/
public function doCurlProgress($options)
{
if ($options['request']->getCurlOptions()->hasKey('progressCallback')) {
return call_user_func($options['request']->getCurlOptions()->get('progressCallback'));
$curlOptions = $options['request']->getCurlOptions();
if ($curlOptions->hasKey('progressCallback')) {
return call_user_func($curlOptions->get('progressCallback'));
} else {
echo sprintf(
"Download size: [%d]\nDownloaded: [%d]\nUpload size: [%d]\nUploaded: [%d]\n",
Expand Down

0 comments on commit 7d2687b

Please sign in to comment.