@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | public function has($path) |
210 | 210 | { |
211 | 211 | if (Str::endsWith($path, "/")) { |
212 | - return $this->client->existsFolder($this->namespace, preg_replace('/^\./' , '', dirname( $path))); |
|
212 | + return $this->client->existsFolder($this->namespace, preg_replace('/^\./', '', dirname($path))); |
|
213 | 213 | } else { |
214 | 214 | return $this->client->existsFile($this->namespace, preg_replace('/^\./', '', dirname($path)), last(explode("/", $path))); |
215 | 215 | } |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | return $this->client->getUploadToken(collect([ |
438 | 438 | 'expiration' => Carbon::now()->addSeconds($option['ttl'])->timestamp * 1000, |
439 | 439 | 'insertOnly' => Conf::INSERT_ONLY_TRUE |
440 | - ])->merge(collect($option)->except(['ttl',]))); |
|
440 | + ])->merge(collect($option)->except(['ttl', ]))); |
|
441 | 441 | } |
442 | 442 | |
443 | 443 | /** |