@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | fclose($this->fp); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - if (! $this->success) { |
|
| 52 | + if (!$this->success) { |
|
| 53 | 53 | unlink($this->fileName); |
| 54 | 54 | foreach ($this->createdDirs as $dir) { |
| 55 | 55 | rmdir($dir); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | do { |
| 75 | 75 | $dir = dirname($dir); |
| 76 | 76 | $createdDirs[] = $dir; |
| 77 | - } while (! file_exists($dir)); |
|
| 77 | + } while (!file_exists($dir)); |
|
| 78 | 78 | array_pop($createdDirs); |
| 79 | 79 | $this->createdDirs = array_reverse($createdDirs); |
| 80 | 80 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Get the content. |
| 88 | 88 | * |
| 89 | - * @param string $originUrl The origin URL |
|
| 89 | + * @param string $origin The origin URL |
|
| 90 | 90 | * @param string $fileUrl The file URL |
| 91 | 91 | * @param bool $progress Display the progression |
| 92 | 92 | * @param array $options Additional context options |
@@ -106,6 +106,11 @@ discard block |
||
| 106 | 106 | }); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @param string $fileUrl |
|
| 111 | + * @param boolean $progress |
|
| 112 | + * @param \Closure $exec |
|
| 113 | + */ |
|
| 109 | 114 | protected function fetch($origin, $fileUrl, $progress, $options, $exec) |
| 110 | 115 | { |
| 111 | 116 | do { |
@@ -217,11 +222,6 @@ discard block |
||
| 217 | 222 | } |
| 218 | 223 | |
| 219 | 224 | /** |
| 220 | - * @param resource<curl> $ch |
|
| 221 | - * @param int $downBytesMax |
|
| 222 | - * @param int $downBytes |
|
| 223 | - * @param int $upBytesMax |
|
| 224 | - * @param int $upBytes |
|
| 225 | 225 | */ |
| 226 | 226 | public function progress() |
| 227 | 227 | { |