@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @throws RuntimeException |
| 73 | 73 | */ |
| 74 | - public function __construct(Builder $builder, string|array $paths, array|null $options = null) |
|
| 74 | + public function __construct(Builder $builder, string | array $paths, array | null $options = null) |
|
| 75 | 75 | { |
| 76 | 76 | $this->builder = $builder; |
| 77 | 77 | $this->config = $builder->getConfig(); |
@@ -92,22 +92,22 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | }); |
| 94 | 94 | $this->data = [ |
| 95 | - 'file' => '', // absolute file path |
|
| 96 | - 'files' => [], // array of absolute files path |
|
| 95 | + 'file' => '', // absolute file path |
|
| 96 | + 'files' => [], // array of absolute files path |
|
| 97 | 97 | 'missing' => false, // if file not found but missing allowed: 'missing' is true |
| 98 | - '_path' => '', // original path |
|
| 99 | - 'path' => '', // public path |
|
| 100 | - 'url' => null, // URL if it's a remote file |
|
| 101 | - 'ext' => '', // file extension |
|
| 102 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
| 103 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
| 104 | - 'size' => 0, // file size (in bytes) |
|
| 105 | - 'width' => null, // width (in pixels) |
|
| 106 | - 'height' => null, // height (in pixels) |
|
| 107 | - 'exif' => [], // image exif data |
|
| 108 | - 'duration' => null, // audio or video duration |
|
| 109 | - 'content' => '', // file content |
|
| 110 | - 'hash' => '', // file content hash (md5) |
|
| 98 | + '_path' => '', // original path |
|
| 99 | + 'path' => '', // public path |
|
| 100 | + 'url' => null, // URL if it's a remote file |
|
| 101 | + 'ext' => '', // file extension |
|
| 102 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
| 103 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
| 104 | + 'size' => 0, // file size (in bytes) |
|
| 105 | + 'width' => null, // width (in pixels) |
|
| 106 | + 'height' => null, // height (in pixels) |
|
| 107 | + 'exif' => [], // image exif data |
|
| 108 | + 'duration' => null, // audio or video duration |
|
| 109 | + 'content' => '', // file content |
|
| 110 | + 'hash' => '', // file content hash (md5) |
|
| 111 | 111 | ]; |
| 112 | 112 | |
| 113 | 113 | // handles options |
@@ -992,7 +992,7 @@ discard block |
||
| 992 | 992 | * |
| 993 | 993 | * @throws RuntimeException |
| 994 | 994 | */ |
| 995 | - private function getImageSize(): array|false |
|
| 995 | + private function getImageSize(): array | false |
|
| 996 | 996 | { |
| 997 | 997 | if (!$this->data['type'] == 'image') { |
| 998 | 998 | return false; |