@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public ?string $prefix = null; |
| 27 | 27 | |
| 28 | - public ?array $imagineFilters = []; |
|
| 28 | + public ? array $imagineFilters = []; |
|
| 29 | 29 | |
| 30 | 30 | // Nice to have - feature to configure the IRI in the output media objects for this field |
| 31 | 31 | // public string $iri = 'http://schema.org/MediaObject'; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function onStore(ImagineStoreEvent $event): void |
| 40 | 40 | { |
| 41 | 41 | $content = $event->binary->getContent(); |
| 42 | - [ $width, $height ] = getimagesizefromstring($content); |
|
| 42 | + [$width, $height] = getimagesizefromstring($content); |
|
| 43 | 43 | $fileSize = \strlen($content); |
| 44 | 44 | |
| 45 | 45 | $fileInfo = new FileInfo($event->path, $event->binary->getMimeType(), $fileSize, $width, $height, $event->filter); |