Passed
Push — fix/assets-resize ( 72dc7a...7d3068 )
by Arnaud
03:36
created
src/Assets/Asset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $this->builder = $builder;
69 69
         $this->config = $builder->getConfig();
70 70
         $paths = is_array($paths) ? $paths : [$paths];
71
-        array_walk($paths, function ($path) {
71
+        array_walk($paths, function($path) {
72 72
             if (empty($path)) {
73 73
                 throw new RuntimeException('The path parameter of "asset() can\'t be empty."');
74 74
             }
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
 
413 413
             try {
414 414
                 $img = ImageManager::make($assetResized->data['content_source']);
415
-                $img->resize($size, null, function (\Intervention\Image\Constraint $constraint) {
415
+                $img->resize($size, null, function(\Intervention\Image\Constraint $constraint) {
416 416
                     $constraint->aspectRatio();
417 417
                     $constraint->upsize();
418 418
                 });
Please login to merge, or discard this patch.