@@ -7,7 +7,6 @@ |
||
| 7 | 7 | |
| 8 | 8 | namespace CultuurNet\UDB3; |
| 9 | 9 | |
| 10 | -use Assert\Assertion; |
|
| 11 | 10 | use Broadway\Domain\AggregateRoot; |
| 12 | 11 | use Broadway\Domain\DomainEventStream; |
| 13 | 12 | |
@@ -70,9 +70,9 @@ |
||
| 70 | 70 | public function serialize() |
| 71 | 71 | { |
| 72 | 72 | return [ |
| 73 | - 'id' => $this->id, |
|
| 74 | - 'label' => $this->label, |
|
| 75 | - 'domain' => $this->domain, |
|
| 73 | + 'id' => $this->id, |
|
| 74 | + 'label' => $this->label, |
|
| 75 | + 'domain' => $this->domain, |
|
| 76 | 76 | ]; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -88,11 +88,11 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | return parent::serialize() + array( |
| 91 | - 'title' => (string) $this->getTitle(), |
|
| 92 | - 'addresses' => $addresses, |
|
| 93 | - 'phones' => $this->getPhones(), |
|
| 94 | - 'emails' => $this->getEmails(), |
|
| 95 | - 'urls' => $this->getUrls(), |
|
| 91 | + 'title' => (string) $this->getTitle(), |
|
| 92 | + 'addresses' => $addresses, |
|
| 93 | + 'phones' => $this->getPhones(), |
|
| 94 | + 'emails' => $this->getEmails(), |
|
| 95 | + 'urls' => $this->getUrls(), |
|
| 96 | 96 | ); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function serialize() |
| 34 | 34 | { |
| 35 | 35 | return array( |
| 36 | - 'organizer_id' => $this->organizerId, |
|
| 36 | + 'organizer_id' => $this->organizerId, |
|
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | interface SluggerInterface |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * Returns the slug for a given string |
|
| 17 | - * |
|
| 18 | - * @param string $string |
|
| 19 | - * |
|
| 20 | - * @return string |
|
| 21 | - **/ |
|
| 16 | + * Returns the slug for a given string |
|
| 17 | + * |
|
| 18 | + * @param string $string |
|
| 19 | + * |
|
| 20 | + * @return string |
|
| 21 | + **/ |
|
| 22 | 22 | public function slug($string); |
| 23 | 23 | } |
@@ -147,9 +147,9 @@ discard block |
||
| 147 | 147 | { |
| 148 | 148 | $q = $this->connection->createQueryBuilder(); |
| 149 | 149 | $q->select('event') |
| 150 | - ->from($this->tableName) |
|
| 151 | - ->where('place = ?') |
|
| 152 | - ->setParameter(0, $placeId); |
|
| 150 | + ->from($this->tableName) |
|
| 151 | + ->where('place = ?') |
|
| 152 | + ->setParameter(0, $placeId); |
|
| 153 | 153 | |
| 154 | 154 | $results = $q->execute(); |
| 155 | 155 | |
@@ -184,8 +184,8 @@ discard block |
||
| 184 | 184 | { |
| 185 | 185 | $q = $this->connection->createQueryBuilder(); |
| 186 | 186 | $q->delete($this->tableName) |
| 187 | - ->where('event = ?') |
|
| 188 | - ->setParameter(0, $eventId); |
|
| 187 | + ->where('event = ?') |
|
| 188 | + ->setParameter(0, $eventId); |
|
| 189 | 189 | |
| 190 | 190 | $q->execute(); |
| 191 | 191 | } |
@@ -4,11 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | 6 | use GuzzleHttp\Psr7\Request; |
| 7 | -use GuzzleHttp\Psr7\Response; |
|
| 8 | 7 | use GuzzleHttp\Psr7\Uri; |
| 9 | 8 | use Http\Client\Exception as HttpException; |
| 10 | 9 | use Http\Client\HttpClient; |
| 11 | -use Psr\Http\Message\UriInterface; |
|
| 12 | 10 | |
| 13 | 11 | class ExternalEventService implements EventServiceInterface |
| 14 | 12 | { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use CultuurNet\UDB3\Variations\Model\Properties\Url; |
| 10 | 10 | use CultuurNet\UDB3\Variations\ReadModel\Search\Criteria; |
| 11 | 11 | use CultuurNet\UDB3\Variations\ReadModel\Search\RepositoryInterface; |
| 12 | -use Doctrine\Instantiator\Exception\InvalidArgumentException; |
|
| 13 | 12 | use ValueObjects\Exception\InvalidNativeArgumentException; |
| 14 | 13 | |
| 15 | 14 | class VariationDecoratedEventService implements EventServiceInterface |
@@ -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 | |