@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @throws RuntimeException |
67 | 67 | */ |
68 | - public function __construct(Builder $builder, string|array $paths, array|null $options = null) |
|
68 | + public function __construct(Builder $builder, string | array $paths, array | null $options = null) |
|
69 | 69 | { |
70 | 70 | $this->builder = $builder; |
71 | 71 | $this->config = $builder->getConfig(); |
@@ -86,19 +86,19 @@ discard block |
||
86 | 86 | } |
87 | 87 | }); |
88 | 88 | $this->data = [ |
89 | - 'file' => '', // absolute file path |
|
90 | - 'files' => [], // array of absolute files path |
|
91 | - 'path' => '', // public path |
|
92 | - 'url' => null, // URL if it's a remote file |
|
89 | + 'file' => '', // absolute file path |
|
90 | + 'files' => [], // array of absolute files path |
|
91 | + 'path' => '', // public path |
|
92 | + 'url' => null, // URL if it's a remote file |
|
93 | 93 | 'missing' => false, // if file not found but missing allowed: 'missing' is true |
94 | - 'ext' => '', // file extension |
|
95 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
96 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
97 | - 'size' => 0, // file size (in bytes) |
|
98 | - 'width' => 0, // image width (in pixels) |
|
99 | - 'height' => 0, // image height (in pixels) |
|
100 | - 'exif' => [], // image exif data |
|
101 | - 'content' => '', // file content |
|
94 | + 'ext' => '', // file extension |
|
95 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
96 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
97 | + 'size' => 0, // file size (in bytes) |
|
98 | + 'width' => 0, // image width (in pixels) |
|
99 | + 'height' => 0, // image height (in pixels) |
|
100 | + 'exif' => [], // image exif data |
|
101 | + 'content' => '', // file content |
|
102 | 102 | ]; |
103 | 103 | |
104 | 104 | // handles options |