|
@@ -8,7 +8,7 @@ discard block |
|
|
block discarded – undo |
|
8
|
8
|
// +---------------------------------------------------------------------- |
|
9
|
9
|
// | Author: yunwuxin <[email protected]> |
|
10
|
10
|
// +---------------------------------------------------------------------- |
|
11
|
|
-declare (strict_types = 1); |
|
|
11
|
+declare(strict_types=1); |
|
12
|
12
|
|
|
13
|
13
|
namespace think\filesystem; |
|
14
|
14
|
|
|
@@ -115,7 +115,7 @@ discard block |
|
|
block discarded – undo |
|
115
|
115
|
public function putFileAs(string $path, File $file, string $name, array $options = []) |
|
116
|
116
|
{ |
|
117
|
117
|
$stream = fopen($file->getRealPath(), 'r'); |
|
118
|
|
- $path = trim($path . '/' . $name, '/'); |
|
|
118
|
+ $path = trim($path.'/'.$name, '/'); |
|
119
|
119
|
|
|
120
|
120
|
$result = $this->putStream($path, $stream, $options); |
|
121
|
121
|
|
Please login to merge, or discard this patch.