From 8d916ed02377519a54a1f9088dbcd7a3c0c39b94 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 3 Dec 2024 02:51:34 +0000 Subject: [PATCH] Apply fixes from StyleCI --- config/filesystems.php | 8 ++++---- src/ContentClient.php | 8 ++++---- src/Models/Document.php | 10 +++++----- src/Models/Folder.php | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/config/filesystems.php b/config/filesystems.php index dba3a5a..cd11fb2 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -4,10 +4,10 @@ return [ 'content' => [ - 'driver' => 'content-file-storage', - 'api_url' => env('CONTENT_API_URL'), - 'repository' => env('CONTENT_REPOSITORY', 'dms'), - 'root' => env('CONTENT_ROOT', Str::snake(env('APP_NAME'))), + 'driver' => 'content-file-storage', + 'api_url' => env('CONTENT_API_URL'), + 'repository' => env('CONTENT_REPOSITORY', 'dms'), + 'root' => env('CONTENT_ROOT', Str::snake(env('APP_NAME'))), 'should_extend' => true, ], ]; diff --git a/src/ContentClient.php b/src/ContentClient.php index c9d0b3d..94854f6 100644 --- a/src/ContentClient.php +++ b/src/ContentClient.php @@ -97,11 +97,11 @@ public function tree(string $directory = '/', bool $recursive = false): array foreach ($directoryItems as $directoryItem) { $directories[] = [ - 'type' => 'dir', - 'path' => $directoryItem['path'] . $directoryItem['name'], + 'type' => 'dir', + 'path' => $directoryItem['path'] . $directoryItem['name'], 'visibility' => 'public', - 'size' => 0, - 'timestamp' => 0, + 'size' => 0, + 'timestamp' => 0, ]; } diff --git a/src/Models/Document.php b/src/Models/Document.php index f8f965d..6cf64fe 100644 --- a/src/Models/Document.php +++ b/src/Models/Document.php @@ -34,11 +34,11 @@ public function upload(string $url, string $path, $contents, bool $overwrite = f $mediaType = $mimeTypeDetector->detectMimeTypeFromPath($path) ?: 'application/octet-stream'; $payload = [ - 'content-stream' => $contents, - 'name' => $filename, - 'media-type' => $mediaType, - 'filing-purpose' => 'service', - 'filing-case-number' => 'record id', + 'content-stream' => $contents, + 'name' => $filename, + 'media-type' => $mediaType, + 'filing-purpose' => 'service', + 'filing-case-number' => 'record id', 'overwrite-if-exists' => $overwrite ? 'true' : 'false', ]; diff --git a/src/Models/Folder.php b/src/Models/Folder.php index 1799140..d70f607 100644 --- a/src/Models/Folder.php +++ b/src/Models/Folder.php @@ -22,9 +22,9 @@ public function responseClass(): string public function create(string $name, string $path = '/'): FolderResponse { $payload = [ - 'name' => $name, - 'path' => $path, - 'kind' => 'folder', + 'name' => $name, + 'path' => $path, + 'kind' => 'folder', 'folder-purpose' => 'generic-folder', ];