Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk authored and github-actions[bot] committed May 3, 2023
1 parent f1b710c commit a8592a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UploadcareAdapterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ public function boot(): void
$api = new \Uploadcare\Api($configuration);

$adapter = new UploadcareAdapter($api, $config);

FilesystemAdapter::macro('putGetUuid', function (string $path, mixed $contents) use ($adapter) {
return $adapter->putGetUuid($path, $contents);
});

FilesystemAdapter::macro('putFileGetUuid', function (string $path, mixed $contents) use ($adapter) {
return $adapter->putFileGetUuid($path, $contents);
});

FilesystemAdapter::macro('putFileAsGetUuid', function (string $path, mixed $contents, string $name, array $options = []) use ($adapter) {
return $adapter->putFileAsGetUuid($path, $contents, $name, $options);
});

FilesystemAdapter::macro('fileInfo', function (string $path) use ($adapter) {
return $adapter->getFileinfo($path);
});
Expand Down

0 comments on commit a8592a7

Please sign in to comment.