@@ -12,7 +12,7 @@ |
||
| 12 | 12 | final public function __construct(string $itemId, $iri) |
| 13 | 13 | { |
| 14 | 14 | parent::__construct($itemId); |
| 15 | - $this->iri = (string) $iri; |
|
| 15 | + $this->iri = (string)$iri; |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function getIri(): string |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function serialize(): array |
| 26 | 26 | { |
| 27 | 27 | return parent::serialize() + array( |
| 28 | - 'typicalAgeRange' => (string) $this->typicalAgeRange, |
|
| 28 | + 'typicalAgeRange' => (string)$this->typicalAgeRange, |
|
| 29 | 29 | ); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -26,9 +26,9 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | public function serialize(): array |
| 28 | 28 | { |
| 29 | - $serializedData = parent::serialize() + array( |
|
| 29 | + $serializedData = parent::serialize() + array( |
|
| 30 | 30 | 'images' => array_map( |
| 31 | - function (Image $image) { |
|
| 31 | + function(Image $image) { |
|
| 32 | 32 | return $image->serialize(); |
| 33 | 33 | }, |
| 34 | 34 | $this->images->toArray() |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | $images = ImageCollection::fromArray( |
| 49 | 49 | array_map( |
| 50 | - function ($imageData) { |
|
| 50 | + function($imageData) { |
|
| 51 | 51 | return Image::deserialize($imageData); |
| 52 | 52 | }, |
| 53 | 53 | $data['images'] |
@@ -55,10 +55,10 @@ |
||
| 55 | 55 | |
| 56 | 56 | public function serialize(): array |
| 57 | 57 | { |
| 58 | - return parent::serialize() + array( |
|
| 59 | - 'media_object_id' => (string) $this->mediaObjectId, |
|
| 60 | - 'description' => (string) $this->description, |
|
| 61 | - 'copyright_holder' => (string) $this->copyrightHolder, |
|
| 58 | + return parent::serialize() + array( |
|
| 59 | + 'media_object_id' => (string)$this->mediaObjectId, |
|
| 60 | + 'description' => (string)$this->description, |
|
| 61 | + 'copyright_holder' => (string)$this->copyrightHolder, |
|
| 62 | 62 | ); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -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 | } |