@@ -426,7 +426,7 @@ |
||
| 426 | 426 | ] |
| 427 | 427 | ]); |
| 428 | 428 | |
| 429 | - return (int)$response->getHeaderLine('Content-Length') ?? 0; |
|
| 429 | + return (int) $response->getHeaderLine('Content-Length') ?? 0; |
|
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | /** |
@@ -90,7 +90,9 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | public function getCurlInfo(): CurlInfo|false |
| 92 | 92 | { |
| 93 | - if (empty($this->curlHandle)) return false; |
|
| 93 | + if (empty($this->curlHandle)) { |
|
| 94 | + return false; |
|
| 95 | + } |
|
| 94 | 96 | return new CurlInfo(curl_getinfo($this->curlHandle)); |
| 95 | 97 | } |
| 96 | 98 | |
@@ -132,7 +132,9 @@ |
||
| 132 | 132 | public function save(string $filePath): bool |
| 133 | 133 | { |
| 134 | 134 | $pathInfo = pathinfo($filePath, PATHINFO_DIRNAME); |
| 135 | - if (gettype($pathInfo) != "string") $pathInfo = $pathInfo['dirname']; |
|
| 135 | + if (gettype($pathInfo) != "string") { |
|
| 136 | + $pathInfo = $pathInfo['dirname']; |
|
| 137 | + } |
|
| 136 | 138 | if (!file_exists($pathInfo)) { |
| 137 | 139 | throw new \InvalidArgumentException('The directory does not exist'); |
| 138 | 140 | } |