From 395c7ec62ac447b191edefe6cfcacf81531c8840 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Tue, 15 Feb 2022 18:06:51 +0100 Subject: [PATCH] Lint --- compressors/Compressor.php | 6 +++--- compressors/DefaultCompressor.php | 10 ++++++++++ console/ResizeMake.php | 2 +- lib/MediaPath.php | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/compressors/Compressor.php b/compressors/Compressor.php index f2e2929..7973b67 100644 --- a/compressors/Compressor.php +++ b/compressors/Compressor.php @@ -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) { diff --git a/compressors/DefaultCompressor.php b/compressors/DefaultCompressor.php index 522db47..1b1864b 100644 --- a/compressors/DefaultCompressor.php +++ b/compressors/DefaultCompressor.php @@ -24,4 +24,14 @@ class DefaultCompressor extends Compressor { return false; } + public function start(): void + { + // + } + + public function end(): void + { + // + } + } diff --git a/console/ResizeMake.php b/console/ResizeMake.php index 9c1b35d..66f7fad 100644 --- a/console/ResizeMake.php +++ b/console/ResizeMake.php @@ -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. diff --git a/lib/MediaPath.php b/lib/MediaPath.php index 4b6b80d..6460c92 100644 --- a/lib/MediaPath.php +++ b/lib/MediaPath.php @@ -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 {