Skip to content

Commit 4f131df

Browse files
committed
fix tests
1 parent e6f4af9 commit 4f131df

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"require-dev": {
2424
"orchestra/testbench": "^3.4|~3.5.0",
25-
"phpunit/phpunit": "^6.2"
25+
"phpunit/phpunit": "^5.7|^6.2"
2626
},
2727
"autoload": {
2828
"psr-4": {

src/Middlewares/OptimizeImages.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ public function handle($request, Closure $next)
1212
{
1313
$optimizerChain = app(OptimizerChain::class);
1414

15-
collect($request->allFiles())->flatten(1)->each(function (UploadedFile $file) use ($optimizerChain) {
16-
$optimizerChain->optimize($file->getPathname());
17-
});
15+
collect($request->allFiles())
16+
->flatten(1)
17+
->each(function (UploadedFile $file) use ($optimizerChain) {
18+
$optimizerChain->optimize($file->getPathname());
19+
});
1820

1921
return $next($request);
2022
}

0 commit comments

Comments
 (0)