Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Nov 13, 2024
1 parent aacc208 commit a25bf3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Helpers/MargeFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ class MargeFiles
private string $hash;
private string $patch;
private string $fileType;
private ?string $prefix;

public function __construct(?array $filesArray = null, ?string $fileType = null, ?string $patch = null)
{
$this->arrayFiles = $filesArray ?? [];
$this->fileType = $fileType ?? 'txt';
$this->patch = $patch ?? storage_path();
$this->hash = $this->getHash();
$this->prefix = env('AWS_URL', null);
}

public function setFileType(string $fileType): void
Expand Down Expand Up @@ -126,6 +124,6 @@ private function getContent(string $path): string

private function getNameAfterPrefix(string $fileName): string
{
return $this->prefix ? Str::after($fileName, $this->prefix) : $fileName;
return env('AWS_URL', null) ? Str::after($fileName, env('AWS_URL')) : $fileName;
}
}

0 comments on commit a25bf3d

Please sign in to comment.