Passed
Push — fix/image-width ( 072b6d )
by Arnaud
04:37
created
src/Assets/Asset.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->builder = $builder;
72 72
         $this->config = $builder->getConfig();
73 73
         $paths = is_array($paths) ? $paths : [$paths];
74
-        array_walk($paths, function ($path) {
74
+        array_walk($paths, function($path) {
75 75
             if (empty($path)) {
76 76
                 throw new RuntimeException('The path parameter of "asset() can\'t be empty."');
77 77
             }
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
             'ext'            => '', // file extension
85 85
             'type'           => '', // file type (e.g.: image, audio, video, etc.)
86 86
             'subtype'        => '', // file media type (e.g.: image/png, audio/mp3, etc.)
87
-            'size'           => 0,  // file size (in bytes)
87
+            'size'           => 0, // file size (in bytes)
88 88
             'content_source' => '', // file content, before transformations
89 89
             'content'        => '', // file content, after transformations
90
-            'width'          => 0,  // width (in pixels) in case of an image
91
-            'height'         => 0,  // height (in pixels) in case of an image
90
+            'width'          => 0, // width (in pixels) in case of an image
91
+            'height'         => 0, // height (in pixels) in case of an image
92 92
         ];
93 93
 
94 94
         // handles options
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 
423 423
             try {
424 424
                 $img = ImageManager::make($assetResized->data['content_source']);
425
-                $img->resize($width, null, function (\Intervention\Image\Constraint $constraint) {
425
+                $img->resize($width, null, function(\Intervention\Image\Constraint $constraint) {
426 426
                     $constraint->aspectRatio();
427 427
                     $constraint->upsize();
428 428
                 });
Please login to merge, or discard this patch.