@@ -8,7 +8,7 @@ |
||
| 8 | 8 | public function filter($string) |
| 9 | 9 | { |
| 10 | 10 | if (!is_string($string)) { |
| 11 | - throw new \InvalidArgumentException('Argument should be string, got ' . gettype($string) . ' instead.'); |
|
| 11 | + throw new \InvalidArgumentException('Argument should be string, got '.gettype($string).' instead.'); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | return preg_replace('@<p class="uiv-source">.*?</p>@', '', $string); |
@@ -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 | return preg_replace("/[\\r\\n]+/", " ", $string); |
@@ -12,6 +12,6 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function path(UUID $fileId, StringLiteral $extension) |
| 14 | 14 | { |
| 15 | - return (string)$fileId . '.' . (string)$extension; |
|
| 15 | + return (string)$fileId.'.'.(string)$extension; |
|
| 16 | 16 | } |
| 17 | 17 | } |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | |
| 130 | 130 | // Get all physical locations from the list of addresses. |
| 131 | 131 | $addresses = array_map( |
| 132 | - function (CultureFeed_Cdb_Data_Address $address) { |
|
| 132 | + function(CultureFeed_Cdb_Data_Address $address) { |
|
| 133 | 133 | return $address->getPhysicalAddress(); |
| 134 | 134 | }, |
| 135 | 135 | $contactInfo->getAddresses() |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use CultuurNet\UDB3\Event\Events\EventCreated; |
| 11 | 11 | use CultuurNet\UDB3\Event\Events\EventImportedFromUDB2; |
| 12 | 12 | use CultuurNet\UDB3\EventHandling\DelegateEventHandlingToSpecificMethodTrait; |
| 13 | -use CultuurNet\UDB3\Offer\Events\AbstractEvent; |
|
| 14 | 13 | use CultuurNet\UDB3\Offer\ReadModel\Permission\PermissionRepositoryInterface; |
| 15 | 14 | use ValueObjects\StringLiteral\StringLiteral; |
| 16 | 15 | |
@@ -28,12 +28,12 @@ |
||
| 28 | 28 | |
| 29 | 29 | if (count($missingFields) > 0) { |
| 30 | 30 | $keys = implode(', ', $missingFields); |
| 31 | - throw new \InvalidArgumentException('The given cdbxml address is missing a ' . $keys); |
|
| 31 | + throw new \InvalidArgumentException('The given cdbxml address is missing a '.$keys); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | return new Address( |
| 36 | - new Street($cdbAddress->getStreet() . ' ' . $cdbAddress->getHouseNumber()), |
|
| 36 | + new Street($cdbAddress->getStreet().' '.$cdbAddress->getHouseNumber()), |
|
| 37 | 37 | new PostalCode($cdbAddress->getZip()), |
| 38 | 38 | new Locality($cdbAddress->getCity()), |
| 39 | 39 | Country::fromNative($cdbAddress->getCountry()) |
@@ -28,6 +28,6 @@ |
||
| 28 | 28 | |
| 29 | 29 | /* @var OrganizerCreatedWithUniqueWebsite|WebsiteUpdated $payload */ |
| 30 | 30 | $payload = $domainMessage->getPayload(); |
| 31 | - return new StringLiteral((string) $payload->getWebsite()); |
|
| 31 | + return new StringLiteral((string)$payload->getWebsite()); |
|
| 32 | 32 | } |
| 33 | 33 | } |
@@ -18,6 +18,7 @@ discard block |
||
| 18 | 18 | * |
| 19 | 19 | * @param string $id |
| 20 | 20 | * @param string $description |
| 21 | + * @return string |
|
| 21 | 22 | */ |
| 22 | 23 | public function updateDescription($id, $description); |
| 23 | 24 | |
@@ -26,6 +27,7 @@ discard block |
||
| 26 | 27 | * |
| 27 | 28 | * @param string $id |
| 28 | 29 | * @param AgeRange $ageRange |
| 30 | + * @return string |
|
| 29 | 31 | */ |
| 30 | 32 | public function updateTypicalAgeRange($id, AgeRange $ageRange); |
| 31 | 33 | |
@@ -33,6 +35,7 @@ discard block |
||
| 33 | 35 | * Delete the typical age range of a place. |
| 34 | 36 | * |
| 35 | 37 | * @param string $id |
| 38 | + * @return string |
|
| 36 | 39 | */ |
| 37 | 40 | public function deleteTypicalAgeRange($id); |
| 38 | 41 | |
@@ -41,6 +44,7 @@ discard block |
||
| 41 | 44 | * |
| 42 | 45 | * @param string $id |
| 43 | 46 | * @param string $organizerId |
| 47 | + * @return string |
|
| 44 | 48 | */ |
| 45 | 49 | public function updateOrganizer($id, $organizerId); |
| 46 | 50 | |
@@ -49,6 +53,7 @@ discard block |
||
| 49 | 53 | * |
| 50 | 54 | * @param string $id |
| 51 | 55 | * @param string $organizerId |
| 56 | + * @return string |
|
| 52 | 57 | */ |
| 53 | 58 | public function deleteOrganizer($id, $organizerId); |
| 54 | 59 | |
@@ -57,6 +62,7 @@ discard block |
||
| 57 | 62 | * |
| 58 | 63 | * @param string $id |
| 59 | 64 | * @param ContactPoint $contactPoint |
| 65 | + * @return string |
|
| 60 | 66 | */ |
| 61 | 67 | public function updateContactPoint($id, ContactPoint $contactPoint); |
| 62 | 68 | |
@@ -65,6 +71,7 @@ discard block |
||
| 65 | 71 | * |
| 66 | 72 | * @param string $id |
| 67 | 73 | * @param Image $image |
| 74 | + * @return string |
|
| 68 | 75 | */ |
| 69 | 76 | public function addImage($id, Image $image); |
| 70 | 77 | |
@@ -91,6 +98,7 @@ discard block |
||
| 91 | 98 | * |
| 92 | 99 | * @param string $id |
| 93 | 100 | * @param Image $image |
| 101 | + * @return string |
|
| 94 | 102 | */ |
| 95 | 103 | public function removeImage($id, Image $image); |
| 96 | 104 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | public function serialize() |
| 37 | 37 | { |
| 38 | 38 | return parent::serialize() + array( |
| 39 | - 'typicalAgeRange' => (string) $this->typicalAgeRange, |
|
| 39 | + 'typicalAgeRange' => (string)$this->typicalAgeRange, |
|
| 40 | 40 | ); |
| 41 | 41 | } |
| 42 | 42 | |