@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @return mixed The object instance |
|
| 41 | + * @return AbstractContactPointUpdated The object instance |
|
| 42 | 42 | */ |
| 43 | 43 | public static function deserialize(array $data) |
| 44 | 44 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | public function jsonSerialize() |
| 67 | 67 | { |
| 68 | 68 | return [ |
| 69 | - '@id' => (string) $this->iri, |
|
| 69 | + '@id' => (string)$this->iri, |
|
| 70 | 70 | '@type' => $this->type->toNative(), |
| 71 | 71 | ]; |
| 72 | 72 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | { |
| 79 | 79 | return json_encode( |
| 80 | 80 | [ |
| 81 | - 'iri' => (string) $this->iri, |
|
| 81 | + 'iri' => (string)$this->iri, |
|
| 82 | 82 | 'id' => $this->id, |
| 83 | 83 | 'type' => $this->type->toNative(), |
| 84 | 84 | ] |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * @param array $data |
| 48 | - * @return mixed The object instance |
|
| 48 | + * @return AbstractLabelEvent The object instance |
|
| 49 | 49 | */ |
| 50 | 50 | public static function deserialize(array $data) |
| 51 | 51 | { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | public function serialize() |
| 39 | 39 | { |
| 40 | 40 | return parent::serialize() + array( |
| 41 | - 'label' => (string) $this->label, |
|
| 41 | + 'label' => (string)$this->label, |
|
| 42 | 42 | 'visibility' => $this->label->isVisible(), |
| 43 | 43 | ); |
| 44 | 44 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function __construct($uuid, $unique) |
| 13 | 13 | { |
| 14 | - $message = 'Not unique: uuid = ' . $uuid . ', unique value = ' . $unique; |
|
| 14 | + $message = 'Not unique: uuid = '.$uuid.', unique value = '.$unique; |
|
| 15 | 15 | parent::__construct($message); |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function filter($string) |
| 12 | 12 | { |
| 13 | 13 | if (!is_string($string)) { |
| 14 | - throw new \InvalidArgumentException('Argument should be string, got ' . gettype($string) . ' instead.'); |
|
| 14 | + throw new \InvalidArgumentException('Argument should be string, got '.gettype($string).' instead.'); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | // nl2br() only appends <br /> after each \n but does not remove the \n |
@@ -81,10 +81,10 @@ |
||
| 81 | 81 | public function serialize() |
| 82 | 82 | { |
| 83 | 83 | return [ |
| 84 | - 'streetAddress' => $this->streetAddress->toNative(), |
|
| 85 | - 'postalCode' => $this->postalCode->toNative(), |
|
| 86 | - 'addressLocality' => $this->locality->toNative(), |
|
| 87 | - 'addressCountry' => $this->countryCode, |
|
| 84 | + 'streetAddress' => $this->streetAddress->toNative(), |
|
| 85 | + 'postalCode' => $this->postalCode->toNative(), |
|
| 86 | + 'addressLocality' => $this->locality->toNative(), |
|
| 87 | + 'addressCountry' => $this->countryCode, |
|
| 88 | 88 | ]; |
| 89 | 89 | } |
| 90 | 90 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | $precision = 0; |
| 24 | - return new Price((int) round($value * 100, $precision)); |
|
| 24 | + return new Price((int)round($value * 100, $precision)); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function getCdbId($externalId) |
| 26 | 26 | { |
| 27 | 27 | if (isset($this->externalIdMapping[$externalId])) { |
| 28 | - return (string) $this->externalIdMapping[$externalId]; |
|
| 28 | + return (string)$this->externalIdMapping[$externalId]; |
|
| 29 | 29 | } else { |
| 30 | 30 | return null; |
| 31 | 31 | } |
@@ -67,9 +67,9 @@ |
||
| 67 | 67 | public function serialize() |
| 68 | 68 | { |
| 69 | 69 | return [ |
| 70 | - 'phone' => $this->phones, |
|
| 71 | - 'email' => $this->emails, |
|
| 72 | - 'url' => $this->urls, |
|
| 70 | + 'phone' => $this->phones, |
|
| 71 | + 'email' => $this->emails, |
|
| 72 | + 'url' => $this->urls, |
|
| 73 | 73 | ]; |
| 74 | 74 | } |
| 75 | 75 | |
@@ -112,21 +112,21 @@ |
||
| 112 | 112 | public static function fromUdb3ModelContactPoint(Udb3ModelContactPoint $contactPoint) |
| 113 | 113 | { |
| 114 | 114 | $phones = array_map( |
| 115 | - function (TelephoneNumber $phone) { |
|
| 115 | + function(TelephoneNumber $phone) { |
|
| 116 | 116 | return $phone->toString(); |
| 117 | 117 | }, |
| 118 | 118 | $contactPoint->getTelephoneNumbers()->toArray() |
| 119 | 119 | ); |
| 120 | 120 | |
| 121 | 121 | $emails = array_map( |
| 122 | - function (EmailAddress $emailAddress) { |
|
| 122 | + function(EmailAddress $emailAddress) { |
|
| 123 | 123 | return $emailAddress->toString(); |
| 124 | 124 | }, |
| 125 | 125 | $contactPoint->getEmailAddresses()->toArray() |
| 126 | 126 | ); |
| 127 | 127 | |
| 128 | 128 | $urls = array_map( |
| 129 | - function (Url $url) { |
|
| 129 | + function(Url $url) { |
|
| 130 | 130 | return $url->toString(); |
| 131 | 131 | }, |
| 132 | 132 | $contactPoint->getUrls()->toArray() |