@@ -84,7 +84,7 @@ |
||
84 | 84 | } elseif (!is_writable($directory)) { |
85 | 85 | throw new FileException(sprintf('Unable to write in the "%s" directory', $directory)); |
86 | 86 | } |
87 | - $target = rtrim($directory, '/\\').DIRECTORY_SEPARATOR.(null === $name ? $this->getBasename() : $this->getName($name)); |
|
87 | + $target = rtrim($directory, '/\\') . DIRECTORY_SEPARATOR . (null === $name ? $this->getBasename() : $this->getName($name)); |
|
88 | 88 | return new self($target, false); |
89 | 89 | } |
90 | 90 |
@@ -305,9 +305,9 @@ |
||
305 | 305 | throw new RuntimeException('This object does not support retrieving URLs.'); |
306 | 306 | } |
307 | 307 | //SDK未提供获取 hostname的公开方法,这里变相获取 |
308 | - $temporaryUrl = $this->getTemporaryUrl($path,60,[]); |
|
308 | + $temporaryUrl = $this->getTemporaryUrl($path, 60, []); |
|
309 | 309 | $urls = parse_url($temporaryUrl); |
310 | - return $urls['scheme'] .'://'. $urls['host'] . $urls['path']; |
|
310 | + return $urls['scheme'] . '://' . $urls['host'] . $urls['path']; |
|
311 | 311 | } |
312 | 312 | |
313 | 313 | /** |