@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function serialize(): array |
| 27 | 27 | { |
| 28 | 28 | return parent::serialize() + array( |
| 29 | - 'label' => (string) $this->label, |
|
| 29 | + 'label' => (string)$this->label, |
|
| 30 | 30 | 'visibility' => $this->label->isVisible(), |
| 31 | 31 | ); |
| 32 | 32 | } |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | if (!array_key_exists($subtypeString, self::$supportedSubtypes)) { |
| 25 | - throw new UnsupportedMIMETypeException('MIME type "' . $subtypeString . '" is not supported!'); |
|
| 25 | + throw new UnsupportedMIMETypeException('MIME type "'.$subtypeString.'" is not supported!'); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | $type = self::$supportedSubtypes[$subtypeString]; |
| 29 | 29 | |
| 30 | - return new self($type . '/' . $subtypeString); |
|
| 30 | + return new self($type.'/'.$subtypeString); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -103,12 +103,12 @@ |
||
| 103 | 103 | public function serialize(): array |
| 104 | 104 | { |
| 105 | 105 | return [ |
| 106 | - 'media_object_id' => (string) $this->getMediaObjectId(), |
|
| 107 | - 'mime_type' => (string) $this->getMimeType(), |
|
| 108 | - 'description' => (string) $this->getDescription(), |
|
| 109 | - 'copyright_holder' => (string) $this->getCopyrightHolder(), |
|
| 110 | - 'source_location' => (string) $this->getSourceLocation(), |
|
| 111 | - 'language' => (string) $this->getLanguage(), |
|
| 106 | + 'media_object_id' => (string)$this->getMediaObjectId(), |
|
| 107 | + 'mime_type' => (string)$this->getMimeType(), |
|
| 108 | + 'description' => (string)$this->getDescription(), |
|
| 109 | + 'copyright_holder' => (string)$this->getCopyrightHolder(), |
|
| 110 | + 'source_location' => (string)$this->getSourceLocation(), |
|
| 111 | + 'language' => (string)$this->getLanguage(), |
|
| 112 | 112 | ]; |
| 113 | 113 | } |
| 114 | 114 | } |