@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @throws RuntimeException |
68 | 68 | */ |
69 | - public function __construct(Builder $builder, string|array $paths, array|null $options = null) |
|
69 | + public function __construct(Builder $builder, string | array $paths, array | null $options = null) |
|
70 | 70 | { |
71 | 71 | $this->builder = $builder; |
72 | 72 | $this->config = $builder->getConfig(); |
@@ -83,20 +83,20 @@ discard block |
||
83 | 83 | } |
84 | 84 | }); |
85 | 85 | $this->data = [ |
86 | - 'file' => '', // absolute file path |
|
87 | - 'files' => [], // bundle: array of files path |
|
88 | - 'filename' => '', // bundle: filename |
|
89 | - 'path' => '', // public path to the file |
|
90 | - 'url' => null, // URL if it's a remote file |
|
86 | + 'file' => '', // absolute file path |
|
87 | + 'files' => [], // bundle: array of files path |
|
88 | + 'filename' => '', // bundle: filename |
|
89 | + 'path' => '', // public path to the file |
|
90 | + 'url' => null, // URL if it's a remote file |
|
91 | 91 | 'missing' => false, // if file not found but missing allowed: 'missing' is true |
92 | - 'ext' => '', // file extension |
|
93 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
94 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
95 | - 'size' => 0, // file size (in bytes) |
|
96 | - 'width' => 0, // image width (in pixels) |
|
97 | - 'height' => 0, // image height (in pixels) |
|
98 | - 'exif' => [], // exif data |
|
99 | - 'content' => '', // file content |
|
92 | + 'ext' => '', // file extension |
|
93 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
94 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
95 | + 'size' => 0, // file size (in bytes) |
|
96 | + 'width' => 0, // image width (in pixels) |
|
97 | + 'height' => 0, // image height (in pixels) |
|
98 | + 'exif' => [], // exif data |
|
99 | + 'content' => '', // file content |
|
100 | 100 | ]; |
101 | 101 | |
102 | 102 | // handles options |
@@ -657,14 +657,14 @@ discard block |
||
657 | 657 | private function loadFile(string $path, bool $ignore_missing = false, ?string $remote_fallback = null, bool $force_slash = true): array |
658 | 658 | { |
659 | 659 | $file = [ |
660 | - 'url' => null, // URM for remote file |
|
661 | - 'filepath' => null, // absolute file path |
|
662 | - 'path' => null, // public path to the file |
|
663 | - 'ext' => null, // file extension |
|
664 | - 'type' => null, // file type (e.g.: image, audio, video, etc.) |
|
665 | - 'subtype' => null, // file media type (e.g.: image/png, audio/mp3, etc.) |
|
666 | - 'size' => null, // file size (in bytes) |
|
667 | - 'content' => null, // file content |
|
660 | + 'url' => null, // URM for remote file |
|
661 | + 'filepath' => null, // absolute file path |
|
662 | + 'path' => null, // public path to the file |
|
663 | + 'ext' => null, // file extension |
|
664 | + 'type' => null, // file type (e.g.: image, audio, video, etc.) |
|
665 | + 'subtype' => null, // file media type (e.g.: image/png, audio/mp3, etc.) |
|
666 | + 'size' => null, // file size (in bytes) |
|
667 | + 'content' => null, // file content |
|
668 | 668 | 'missing' => false, // if file not found but missing allowed: 'missing' is true |
669 | 669 | ]; |
670 | 670 |