@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $this->exif = $exif; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - public function getTitle():?string |
|
| 23 | + public function getTitle(): ?string |
|
| 24 | 24 | { |
| 25 | 25 | $title = $this->exif->getTitle(); |
| 26 | 26 | if (is_string($title)) { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | return null; |
| 30 | 30 | } |
| 31 | - public function getDescription():?string |
|
| 31 | + public function getDescription(): ?string |
|
| 32 | 32 | { |
| 33 | 33 | $description = $this->exif->getCaption(); |
| 34 | 34 | if (is_string($description)) { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | return null; |
| 38 | 38 | } |
| 39 | - public function getGPS():?array |
|
| 39 | + public function getGPS(): ?array |
|
| 40 | 40 | { |
| 41 | 41 | $gps = []; // Match the default in our Image entity |
| 42 | 42 | $gps_as_string = $this->exif->getGPS(); |
@@ -45,20 +45,20 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | return $gps; |
| 47 | 47 | } |
| 48 | - public function getKeywords():?array |
|
| 48 | + public function getKeywords(): ?array |
|
| 49 | 49 | { |
| 50 | 50 | $keywords = $this->exif->getKeywords(); |
| 51 | 51 | if (is_string($keywords)) { |
| 52 | 52 | // A single keyword comes back as a simple string, not an array. We |
| 53 | 53 | // always return an array. |
| 54 | - $keywords = [ $keywords ]; |
|
| 54 | + $keywords = [$keywords]; |
|
| 55 | 55 | } |
| 56 | 56 | if (is_array($keywords)) { |
| 57 | 57 | return $keywords; |
| 58 | 58 | } |
| 59 | 59 | return []; // Match the default in our Image entity |
| 60 | 60 | } |
| 61 | - public function getCreationDate():?\DateTime |
|
| 61 | + public function getCreationDate(): ?\DateTime |
|
| 62 | 62 | { |
| 63 | 63 | $creationDate = $this->exif->getCreationDate(); |
| 64 | 64 | if ($creationDate instanceof \DateTime) { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | return null; |
| 68 | 68 | } |
| 69 | - public function getRating():?int |
|
| 69 | + public function getRating(): ?int |
|
| 70 | 70 | { |
| 71 | 71 | $raw = $this->exif->getRawData(); |
| 72 | 72 | if (array_key_exists('XMP-xmp:Rating', $raw)) { |