Skip to content

Commit

Permalink
Rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
sugeng-sulistiyawan committed Oct 13, 2023
1 parent 296aeb3 commit 44baeac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/adapter/FtpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use League\Flysystem\UrlGeneration\PublicUrlGenerator;
use League\Flysystem\UrlGeneration\TemporaryUrlGenerator;

final class FtpAdapter extends \League\Flysystem\Ftp\FtpAdapter implements ChecksumProvider
final class FtpAdapter extends \League\Flysystem\Ftp\FtpAdapter implements ChecksumProvider, PublicUrlGenerator, TemporaryUrlGenerator
{
use ChecksumAdapterTrait;
use UrlGeneratorAdapterTrait, ChecksumAdapterTrait;
}
4 changes: 2 additions & 2 deletions src/traits/UrlGeneratorAdapterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait UrlGeneratorAdapterTrait
*/
public $component;

public function publicUrl(string $path, Config $config): string
public function publicUrl(string $path, /** @scrutinizer ignore-unused */Config $config): string
{
// TODO: Use absolute path and don't encrypt
$params = [
Expand All @@ -33,7 +33,7 @@ public function publicUrl(string $path, Config $config): string
return Url::toRoute([$this->component->action, 'data' => $this->component->encrypt(Json::encode($params))], true);
}

public function temporaryUrl(string $path, DateTimeInterface $expiresAt, Config $config): string
public function temporaryUrl(string $path, DateTimeInterface $expiresAt, /** @scrutinizer ignore-unused */Config $config): string
{
// TODO: Use absolute path and don't encrypt
$params = [
Expand Down

0 comments on commit 44baeac

Please sign in to comment.