@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @return bool true |
58 | 58 | */ |
59 | - public function copy($origin, $fileUrl, $fileName, $progress=true, $options=array()) |
|
59 | + public function copy($origin, $fileUrl, $fileName, $progress = true, $options = array()) |
|
60 | 60 | { |
61 | 61 | $that = $this; // for PHP5.3 |
62 | 62 | |
63 | - return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that, $fileName) { |
|
63 | + return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that, $fileName) { |
|
64 | 64 | $fp = $that->createFile($fileName); |
65 | 65 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); |
66 | 66 | curl_setopt($ch, CURLOPT_FILE, $fp); |
@@ -88,11 +88,11 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @return bool|string The content |
90 | 90 | */ |
91 | - public function getContents($origin, $fileUrl, $progress=true, $options=array()) |
|
91 | + public function getContents($origin, $fileUrl, $progress = true, $options = array()) |
|
92 | 92 | { |
93 | 93 | $that = $this; // for PHP5.3 |
94 | 94 | |
95 | - return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that) { |
|
95 | + return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that) { |
|
96 | 96 | // This order is important. |
97 | 97 | curl_setopt($ch, CURLOPT_FILE, STDOUT); |
98 | 98 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |