@@ -65,7 +65,7 @@ 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 to an asset can\'t be empty.'); |
71 | 71 | } |
@@ -74,20 +74,20 @@ discard block |
||
74 | 74 | } |
75 | 75 | }); |
76 | 76 | $this->data = [ |
77 | - 'file' => '', // absolute file path |
|
78 | - 'files' => [], // bundle: files path |
|
79 | - 'filename' => '', // filename |
|
80 | - 'path_source' => '', // public path to the file, before transformations |
|
81 | - 'path' => '', // public path to the file, after transformations |
|
77 | + 'file' => '', // absolute file path |
|
78 | + 'files' => [], // bundle: files path |
|
79 | + 'filename' => '', // filename |
|
80 | + 'path_source' => '', // public path to the file, before transformations |
|
81 | + 'path' => '', // public path to the file, after transformations |
|
82 | 82 | 'missing' => false, // if file not found, but missing ollowed 'missing' is true |
83 | - 'ext' => '', // file extension |
|
84 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
85 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
86 | - 'size' => 0, // file size (in bytes) |
|
87 | - 'content_source' => '', // file content, before transformations |
|
88 | - 'content' => '', // file content, after transformations |
|
89 | - 'width' => 0, // width (in pixels) in case of an image |
|
90 | - 'height' => 0, // height (in pixels) in case of an image |
|
83 | + 'ext' => '', // file extension |
|
84 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
85 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
86 | + 'size' => 0, // file size (in bytes) |
|
87 | + 'content_source' => '', // file content, before transformations |
|
88 | + 'content' => '', // file content, after transformations |
|
89 | + 'width' => 0, // width (in pixels) in case of an image |
|
90 | + 'height' => 0, // height (in pixels) in case of an image |
|
91 | 91 | ]; |
92 | 92 | |
93 | 93 | // handles options |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | |
430 | 430 | try { |
431 | 431 | $img = ImageManager::make($assetResized->data['content_source']); |
432 | - $img->resize($width, null, function (\Intervention\Image\Constraint $constraint) { |
|
432 | + $img->resize($width, null, function(\Intervention\Image\Constraint $constraint) { |
|
433 | 433 | $constraint->aspectRatio(); |
434 | 434 | $constraint->upsize(); |
435 | 435 | }); |