Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
bvtterfly authored and actions-user committed Feb 22, 2022
1 parent eefeed4 commit 4552089
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/LocalImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use InvalidArgumentException;


class LocalImage implements Image
{
public function __construct(protected string $pathToImage)
Expand Down
1 change: 0 additions & 1 deletion src/OptimizerChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ public function optimizeLocal(string $pathToImage, string $pathToOutput = null)
$this->optimizeImage($pathToImage, $image);
}


/**
* @param string $pathToImage
* @param Image $image
Expand Down
1 change: 0 additions & 1 deletion src/TempLocalImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Bvtterfly\Lio;

use Illuminate\Support\Str;
use Spatie\TemporaryDirectory\Exceptions\PathAlreadyExists;
use Spatie\TemporaryDirectory\TemporaryDirectory;

class TempLocalImage implements Image
Expand Down
8 changes: 2 additions & 6 deletions tests/OptimizeUploadedImagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@


use Bvtterfly\Lio\Middlewares\OptimizeUploadedImages;
use Bvtterfly\Lio\Tests\TestEnvironmentMiddleware;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Route;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Route;

it('will try to optimize all files in a request', function () {
$tempDirectory = getTempDirectory();
Expand All @@ -26,8 +24,7 @@
$tempDirectory->delete();
});

it('will optimize all files at all depths', function (){

it('will optimize all files at all depths', function () {
$tempDirectory = getTempDirectory();

$originalImagePath1 = getImagePath('image.jpeg');
Expand Down Expand Up @@ -61,7 +58,6 @@
decreasedFileSize($uploadPath3, $originalImagePath3);

$tempDirectory->delete();

});

function getTempDirectory()
Expand Down
1 change: 0 additions & 1 deletion tests/OptimizerChainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
$optimizerChain->optimizeLocal($imagePath, $optimizedImagePath);
expect(file_exists($optimizedImagePath))->toBeTrue();
$tempDirectory->delete();

});

it('can decrease size of a png file', function () {
Expand Down

0 comments on commit 4552089

Please sign in to comment.