@@ -71,7 +71,7 @@ discard block |
||
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 |
||
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 |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | |
422 | 422 | try { |
423 | 423 | $img = ImageManager::make($assetResized->data['content_source']); |
424 | - $img->fit($width, null, function (\Intervention\Image\Constraint $constraint) { |
|
424 | + $img->fit($width, null, function(\Intervention\Image\Constraint $constraint) { |
|
425 | 425 | $constraint->aspectRatio(); |
426 | 426 | $constraint->upsize(); |
427 | 427 | }); |