Lint
This commit is contained in:
parent
e3399a65c8
commit
395c7ec62a
|
@ -11,10 +11,10 @@ abstract class Compressor
|
|||
protected MediaPath $media;
|
||||
|
||||
abstract function make(string $path): array;
|
||||
|
||||
abstract protected function getExtension();
|
||||
|
||||
abstract protected function getExtension(): string;
|
||||
abstract public function getExtensionRegex(): string;
|
||||
abstract public function start(): void;
|
||||
abstract public function end(): void;
|
||||
|
||||
public function __construct(MediaPath $media)
|
||||
{
|
||||
|
|
|
@ -24,4 +24,14 @@ class DefaultCompressor extends Compressor {
|
|||
return false;
|
||||
}
|
||||
|
||||
public function start(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function end(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ use Symfony\Component\Console\Input\InputOption;
|
|||
|
||||
class ResizeMake extends Command
|
||||
{
|
||||
public $media = null;
|
||||
public MediaLibrary $media;
|
||||
|
||||
/**
|
||||
* @var string The console command name.
|
||||
|
|
|
@ -6,8 +6,8 @@ use Aweos\Resizer\Compressors\Compressor;
|
|||
use Aweos\Resizer\Compressors\Factory as CompressorFactory;
|
||||
use Aweos\Resizer\Models\Setting;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use MediaLibrary;
|
||||
use Storage;
|
||||
|
||||
class MediaPath
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue