Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
achmadhadikurnia committed Feb 27, 2024
2 parents ad7d357 + 9d8d896 commit 70b35b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Traits/HasPnsEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getPnsPhoto(array $paths = [], array $query = []): Response
return $this->get($urlParsed, $query);
}

public function downloadPnsPhoto(array $paths = [], array $query = [], string $disk = 'local', string $filename = null): string
public function downloadPnsPhoto(array $paths = [], array $query = [], string $disk = 'local', ?string $filename = null): string
{
$idPns = $paths['idPns'];
$filename = $filename ?? "siasn-simpeg/pns/photo/{$idPns}.jpg";
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasUploadEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function getDownloadDok(array $paths = [], array $query = []): Response
return $this->get($urlParsed, $query);
}

public function downloadDownloadDok(array $paths = [], array $query = [], string $disk = 'local', string $filename = null): string
public function downloadDownloadDok(array $paths = [], array $query = [], string $disk = 'local', ?string $filename = null): string
{
$filePath = $query['filePath'];
$filename = $filename ?? "siasn-simpeg/{$filePath}";
Expand Down

0 comments on commit 70b35b0

Please sign in to comment.