@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | $normalizedData = [ |
| 50 | 50 | '@id' => $this->iriGenerator->iri($mediaObject->getMediaObjectId()), |
| 51 | 51 | '@type' => $type, |
| 52 | - 'contentUrl' => (string) $mediaObject->getSourceLocation(), |
|
| 53 | - 'thumbnailUrl' => (string) $mediaObject->getSourceLocation(), |
|
| 54 | - 'description' => (string) $mediaObject->getDescription(), |
|
| 55 | - 'copyrightHolder' => (string) $mediaObject->getCopyrightHolder(), |
|
| 56 | - 'inLanguage' => (string) $mediaObject->getLanguage(), |
|
| 52 | + 'contentUrl' => (string)$mediaObject->getSourceLocation(), |
|
| 53 | + 'thumbnailUrl' => (string)$mediaObject->getSourceLocation(), |
|
| 54 | + 'description' => (string)$mediaObject->getDescription(), |
|
| 55 | + 'copyrightHolder' => (string)$mediaObject->getCopyrightHolder(), |
|
| 56 | + 'inLanguage' => (string)$mediaObject->getLanguage(), |
|
| 57 | 57 | ]; |
| 58 | 58 | |
| 59 | 59 | return $normalizedData; |
@@ -61,18 +61,18 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | public function serializeMimeType(MIMEType $mimeType) |
| 63 | 63 | { |
| 64 | - $typeParts = explode('/', (string) $mimeType); |
|
| 64 | + $typeParts = explode('/', (string)$mimeType); |
|
| 65 | 65 | $type = array_shift($typeParts); |
| 66 | 66 | |
| 67 | 67 | if ($type === 'image') { |
| 68 | 68 | return 'schema:ImageObject'; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - if ((string) $mimeType === 'application/octet-stream') { |
|
| 71 | + if ((string)$mimeType === 'application/octet-stream') { |
|
| 72 | 72 | return 'schema:mediaObject'; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - throw new UnsupportedException('Unsupported MIME-type "'. $mimeType .'"'); |
|
| 75 | + throw new UnsupportedException('Unsupported MIME-type "'.$mimeType.'"'); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | public function deserialize($data, $type, $format, array $context = array()) |