| @@ -64,11 +64,11 @@ discard block | ||
| 64 | 64 | * | 
| 65 | 65 | * @return bool true | 
| 66 | 66 | */ | 
| 67 | - public function copy($origin, $fileUrl, $fileName, $progress=true, $options=array()) | |
| 67 | + public function copy($origin, $fileUrl, $fileName, $progress = true, $options = array()) | |
| 68 | 68 |      { | 
| 69 | 69 | $that = $this; // for PHP5.3 | 
| 70 | 70 | |
| 71 | -        return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that, $fileName) { | |
| 71 | +        return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that, $fileName) { | |
| 72 | 72 | $outputFile = new OutputFile($fileName); | 
| 73 | 73 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); | 
| 74 | 74 | curl_setopt($ch, CURLOPT_FILE, $outputFile->getPointer()); | 
| @@ -95,11 +95,11 @@ discard block | ||
| 95 | 95 | * | 
| 96 | 96 | * @return bool|string The content | 
| 97 | 97 | */ | 
| 98 | - public function getContents($origin, $fileUrl, $progress=true, $options=array()) | |
| 98 | + public function getContents($origin, $fileUrl, $progress = true, $options = array()) | |
| 99 | 99 |      { | 
| 100 | 100 | $that = $this; // for PHP5.3 | 
| 101 | 101 | |
| 102 | -        return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that) { | |
| 102 | +        return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that) { | |
| 103 | 103 | // This order is important. | 
| 104 | 104 | curl_setopt($ch, CURLOPT_FILE, STDOUT); | 
| 105 | 105 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 
| @@ -154,13 +154,13 @@ discard block | ||
| 154 | 154 |              if ($this->pluginConfig['insecure']) { | 
| 155 | 155 | $opts[CURLOPT_SSL_VERIFYPEER] = false; | 
| 156 | 156 | } | 
| 157 | -            if (! empty($pluginConfig['capath'])) { | |
| 157 | +            if (!empty($pluginConfig['capath'])) { | |
| 158 | 158 | $opts[CURLOPT_CAPATH] = $pluginConfig['capath']; | 
| 159 | 159 | } | 
| 160 | 160 | |
| 161 | 161 | curl_setopt_array($ch, $opts); | 
| 162 | 162 | |
| 163 | - list($execStatus, ) = $exec($ch, $request); | |
| 163 | + list($execStatus,) = $exec($ch, $request); | |
| 164 | 164 | } while ($this->_retry); | 
| 165 | 165 | |
| 166 | 166 |          if ($progress) { | 
| @@ -224,9 +224,9 @@ discard block | ||
| 224 | 224 |      { | 
| 225 | 225 | // @codeCoverageIgnoreStart | 
| 226 | 226 |          if (PHP_VERSION_ID >= 50500) { | 
| 227 | - list(, $downBytesMax, $downBytes, , ) = func_get_args(); | |
| 227 | + list(, $downBytesMax, $downBytes,,) = func_get_args(); | |
| 228 | 228 |          } else { | 
| 229 | - list($downBytesMax, $downBytes, , ) = func_get_args(); | |
| 229 | + list($downBytesMax, $downBytes,,) = func_get_args(); | |
| 230 | 230 | } | 
| 231 | 231 | // @codeCoverageIgnoreEnd | 
| 232 | 232 | |