Clean up per PSR2

This commit is contained in:
Zach Borboa
2016-08-24 00:25:38 -07:00
parent 81be853f51
commit 39c21041a5
30 changed files with 355 additions and 216 deletions
+2 -2
View File
@@ -4,12 +4,12 @@ require __DIR__ . '/vendor/autoload.php';
use \Curl\Curl;
$curl = new Curl();
$curl->progress(function($client, $download_size, $downloaded, $upload_size, $uploaded) {
$curl->progress(function ($client, $download_size, $downloaded, $upload_size, $uploaded) {
if ($download_size === 0) {
return;
}
$percent = floor( $downloaded * 100 / $download_size );
$percent = floor($downloaded * 100 / $download_size);
echo ' ' . $percent . '%' . "\r";
});
$curl->download('https://php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz');