Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 3, 2024
1 parent fbc7594 commit 8d916ed
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
];
8 changes: 4 additions & 4 deletions src/ContentClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}

Expand Down
10 changes: 5 additions & 5 deletions src/Models/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

Expand Down
6 changes: 3 additions & 3 deletions src/Models/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

Expand Down

0 comments on commit 8d916ed

Please sign in to comment.