@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function macro(): Closure |
26 | 26 | { |
27 | - return function (string $path, string $content, int $position = 0, array $options = []) { |
|
27 | + return function(string $path, string $content, int $position = 0, array $options = []) { |
|
28 | 28 | try { |
29 | 29 | /** |
30 | 30 | * @var FilesystemAdapter $this |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function macro(): Closure |
26 | 26 | { |
27 | - return function (string $path, string $content, int $position = 0, array $options = []) { |
|
27 | + return function(string $path, string $content, int $position = 0, array $options = []) { |
|
28 | 28 | try { |
29 | 29 | /** |
30 | 30 | * @var FilesystemAdapter $this |
@@ -19,15 +19,15 @@ |
||
19 | 19 | public function boot(): void |
20 | 20 | { |
21 | 21 | $this->mergeConfigFrom( |
22 | - __DIR__ . "/../config/config.php", |
|
22 | + __DIR__."/../config/config.php", |
|
23 | 23 | "filesystems.disks.oss" |
24 | 24 | ); |
25 | 25 | |
26 | 26 | $this->app->make("filesystem") |
27 | - ->extend("oss", function (Container $app, array $config) { |
|
27 | + ->extend("oss", function(Container $app, array $config) { |
|
28 | 28 | $adapter = $app->make(AliyunFactory::class)->createAdapter($config); |
29 | 29 | $driver = $app->make(Filesystem::class, ["adapter" => $adapter]); |
30 | - $filesystem = $app->make(FilesystemAdapter::class, ["driver" => $driver,"adapter" => $adapter,"config" => $config]); |
|
30 | + $filesystem = $app->make(FilesystemAdapter::class, ["driver" => $driver, "adapter" => $adapter, "config" => $config]); |
|
31 | 31 | $this->registerMicros($config["macros"] ?? [], $filesystem, $app); |
32 | 32 | return $filesystem; |
33 | 33 | }); |