@@ -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 | } |
@@ -129,7 +129,9 @@ |
||
| 129 | 129 | |
| 130 | 130 | $headers = []; |
| 131 | 131 | foreach ($options->getHeader() as $header => $value) { |
| 132 | - if (Utils::insensitiveString($header, 'content-type')) continue; |
|
| 132 | + if (Utils::insensitiveString($header, 'content-type')) { |
|
| 133 | + continue; |
|
| 134 | + } |
|
| 133 | 135 | $headers[] = $header . ': ' . $value; |
| 134 | 136 | } |
| 135 | 137 | $headers[] = 'Content-Type: multipart/form-data'; |