@@ -65,26 +65,26 @@ discard block |
||
65 | 65 | $this->builder = $builder; |
66 | 66 | $this->config = $builder->getConfig(); |
67 | 67 | $paths = is_array($paths) ? $paths : [$paths]; |
68 | - array_walk($paths, function ($path) { |
|
68 | + array_walk($paths, function($path) { |
|
69 | 69 | if (empty($path)) { |
70 | 70 | throw new RuntimeException('The path parameter of "asset() can\'t be empty."'); |
71 | 71 | } |
72 | 72 | }); |
73 | 73 | $this->data = [ |
74 | - 'file' => '', // absolute file path |
|
75 | - 'files' => [], // bundle: files path |
|
76 | - 'filename' => '', // filename |
|
77 | - 'path_source' => '', // public path to the file, before transformations |
|
78 | - 'path' => '', // public path to the file, after transformations |
|
74 | + 'file' => '', // absolute file path |
|
75 | + 'files' => [], // bundle: files path |
|
76 | + 'filename' => '', // filename |
|
77 | + 'path_source' => '', // public path to the file, before transformations |
|
78 | + 'path' => '', // public path to the file, after transformations |
|
79 | 79 | 'missing' => false, // if file not found, but missing ollowed 'missing' is true |
80 | - 'ext' => '', // file extension |
|
81 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
82 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
83 | - 'size' => 0, // file size (in bytes) |
|
84 | - 'content_source' => '', // file content, before transformations |
|
85 | - 'content' => '', // file content, after transformations |
|
86 | - 'width' => 0, // width (in pixels) in case of an image |
|
87 | - 'height' => 0, // height (in pixels) in case of an image |
|
80 | + 'ext' => '', // file extension |
|
81 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
82 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
83 | + 'size' => 0, // file size (in bytes) |
|
84 | + 'content_source' => '', // file content, before transformations |
|
85 | + 'content' => '', // file content, after transformations |
|
86 | + 'width' => 0, // width (in pixels) in case of an image |
|
87 | + 'height' => 0, // height (in pixels) in case of an image |
|
88 | 88 | ]; |
89 | 89 | |
90 | 90 | // handles options |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | |
427 | 427 | try { |
428 | 428 | $img = ImageManager::make($assetResized->data['content_source']); |
429 | - $img->resize($width, null, function (\Intervention\Image\Constraint $constraint) { |
|
429 | + $img->resize($width, null, function(\Intervention\Image\Constraint $constraint) { |
|
430 | 430 | $constraint->aspectRatio(); |
431 | 431 | $constraint->upsize(); |
432 | 432 | }); |