Passed
Push — fix/asset-opti ( f12ae9 )
by Arnaud
04:37
created
src/Assets/Asset.php 1 patch
Spacing   +4 added lines, -4 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
             }
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
             'ext'            => '', // file extension
82 82
             'type'           => '', // file type (e.g.: image, audio, video, etc.)
83 83
             'subtype'        => '', // file media type (e.g.: image/png, audio/mp3, etc.)
84
-            'size'           => 0,  // file size (in bytes)
84
+            'size'           => 0, // file size (in bytes)
85 85
             'content_source' => '', // file content, before transformations
86 86
             'content'        => '', // file content, after transformations
87
-            'width'          => 0,  // width (in pixels) in case of an image
87
+            'width'          => 0, // width (in pixels) in case of an image
88 88
         ];
89 89
 
90 90
         // handles options
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 
415 415
             try {
416 416
                 $img = ImageManager::make($assetResized->data['content_source']);
417
-                $img->resize($width, null, function (\Intervention\Image\Constraint $constraint) {
417
+                $img->resize($width, null, function(\Intervention\Image\Constraint $constraint) {
418 418
                     $constraint->aspectRatio();
419 419
                     $constraint->upsize();
420 420
                 });
Please login to merge, or discard this patch.