@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @throws RuntimeException |
| 61 | 61 | */ |
| 62 | - public function __construct(Builder $builder, string|array $paths, array|null $options = null) |
|
| 62 | + public function __construct(Builder $builder, string | array $paths, array | null $options = null) |
|
| 63 | 63 | { |
| 64 | 64 | $this->builder = $builder; |
| 65 | 65 | $this->config = $builder->getConfig(); |
@@ -76,22 +76,22 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | }); |
| 78 | 78 | $this->data = [ |
| 79 | - 'file' => '', // absolute file path |
|
| 80 | - 'files' => [], // array of files path (if bundle) |
|
| 81 | - 'filename' => '', // filename |
|
| 82 | - 'path_source' => '', // public path to the file, before transformations |
|
| 83 | - 'path' => '', // public path to the file, after transformations |
|
| 84 | - 'url' => null, // URL of a remote image |
|
| 79 | + 'file' => '', // absolute file path |
|
| 80 | + 'files' => [], // array of files path (if bundle) |
|
| 81 | + 'filename' => '', // filename |
|
| 82 | + 'path_source' => '', // public path to the file, before transformations |
|
| 83 | + 'path' => '', // public path to the file, after transformations |
|
| 84 | + 'url' => null, // URL of a remote image |
|
| 85 | 85 | 'missing' => false, // if file not found, but missing ollowed 'missing' is true |
| 86 | - 'ext' => '', // file extension |
|
| 87 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
| 88 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
| 89 | - 'size' => 0, // file size (in bytes) |
|
| 90 | - 'content_source' => '', // file content, before transformations |
|
| 91 | - 'content' => '', // file content, after transformations |
|
| 92 | - 'width' => 0, // width (in pixels) in case of an image |
|
| 93 | - 'height' => 0, // height (in pixels) in case of an image |
|
| 94 | - 'exif' => [], // exif data |
|
| 86 | + 'ext' => '', // file extension |
|
| 87 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
| 88 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
| 89 | + 'size' => 0, // file size (in bytes) |
|
| 90 | + 'content_source' => '', // file content, before transformations |
|
| 91 | + 'content' => '', // file content, after transformations |
|
| 92 | + 'width' => 0, // width (in pixels) in case of an image |
|
| 93 | + 'height' => 0, // height (in pixels) in case of an image |
|
| 94 | + 'exif' => [], // exif data |
|
| 95 | 95 | ]; |
| 96 | 96 | |
| 97 | 97 | // handles options |
@@ -280,7 +280,7 @@ |
||
| 280 | 280 | * |
| 281 | 281 | * @return Asset |
| 282 | 282 | */ |
| 283 | - public function asset($path, array|null $options = null): Asset |
|
| 283 | + public function asset($path, array | null $options = null): Asset |
|
| 284 | 284 | { |
| 285 | 285 | if (!\is_string($path) && !\is_array($path)) { |
| 286 | 286 | throw new RuntimeException(sprintf('Argument of "%s()" must a string or an array.', \Cecil\Util::formatMethodName(__METHOD__))); |