@@ -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 | |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | return parent::serialize() + array( |
| 91 | - 'title' => (string) $this->getTitle(), |
|
| 91 | + 'title' => (string)$this->getTitle(), |
|
| 92 | 92 | 'addresses' => $addresses, |
| 93 | 93 | 'phones' => $this->getPhones(), |
| 94 | 94 | 'emails' => $this->getEmails(), |
@@ -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 | |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | $theme = $this->getTheme()->serialize(); |
| 114 | 114 | } |
| 115 | 115 | return parent::serialize() + array( |
| 116 | - 'title' => (string) $this->getTitle(), |
|
| 116 | + 'title' => (string)$this->getTitle(), |
|
| 117 | 117 | 'event_type' => $this->getEventType()->serialize(), |
| 118 | 118 | 'theme' => $theme, |
| 119 | 119 | 'address' => $this->getAddress()->serialize(), |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | ]; |
| 49 | 49 | |
| 50 | 50 | if ($this->id) { |
| 51 | - $serializedSavedSearch['id'] = (string) $this->id; |
|
| 51 | + $serializedSavedSearch['id'] = (string)$this->id; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | return $serializedSavedSearch; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * @param String $name |
| 30 | 30 | * @param QueryString $query |
| 31 | - * @param String $id |
|
| 31 | + * @param string $id |
|
| 32 | 32 | */ |
| 33 | 33 | public function __construct(String $name, QueryString $query, String $id = null) |
| 34 | 34 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $name = new String($savedSearch->name); |
| 78 | 78 | $query = QueryString::fromURLQueryString($savedSearch->query); |
| 79 | - $id = new String((string) $savedSearch->id); |
|
| 79 | + $id = new String((string)$savedSearch->id); |
|
| 80 | 80 | |
| 81 | 81 | return new SavedSearch($name, $query, $id); |
| 82 | 82 | } |
@@ -86,8 +86,8 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function write(String $userId, String $name, QueryString $queryString) |
| 88 | 88 | { |
| 89 | - $userId = (string) $userId; |
|
| 90 | - $name = (string) $name; |
|
| 89 | + $userId = (string)$userId; |
|
| 90 | + $name = (string)$name; |
|
| 91 | 91 | $query = $queryString->toURLQueryString(); |
| 92 | 92 | |
| 93 | 93 | $savedSearch = new \CultureFeed_SavedSearches_SavedSearch( |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | 'error' => $exception->getMessage(), |
| 108 | 108 | 'userId' => $userId, |
| 109 | 109 | 'name' => $name, |
| 110 | - 'query' => (string) $queryString, |
|
| 110 | + 'query' => (string)$queryString, |
|
| 111 | 111 | ] |
| 112 | 112 | ); |
| 113 | 113 | } |
@@ -119,8 +119,8 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function delete(String $userId, String $searchId) |
| 121 | 121 | { |
| 122 | - $userId = (string) $userId; |
|
| 123 | - $searchId = (string) $searchId; |
|
| 122 | + $userId = (string)$userId; |
|
| 123 | + $searchId = (string)$searchId; |
|
| 124 | 124 | |
| 125 | 125 | try { |
| 126 | 126 | $this->savedSearches->unsubscribe($searchId, $userId); |
@@ -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 | } |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | private function getErrorMessages($validationErrors) |
| 97 | 97 | { |
| 98 | 98 | $errorMessages = array_map( |
| 99 | - function ($error) { |
|
| 99 | + function($error) { |
|
| 100 | 100 | return $error['message']; |
| 101 | 101 | }, |
| 102 | 102 | $validationErrors |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use CultuurNet\UDB3\Variations\Model\Properties\Description; |
| 10 | 10 | use CultuurNet\UDB3\Variations\Model\Properties\Id; |
| 11 | 11 | use JsonSchema\Validator; |
| 12 | -use ValueObjects\String\String; |
|
| 13 | 12 | use stdClass; |
| 14 | 13 | |
| 15 | 14 | class EditDescriptionJSONDeserializer extends JSONDeserializer |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * @param mixed $json |
|
| 73 | + * @param stdClass $json |
|
| 74 | 74 | * |
| 75 | 75 | * @throws ValidationException |
| 76 | 76 | */ |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function serialize() |
| 40 | 40 | { |
| 41 | 41 | return parent::serialize() + array( |
| 42 | - 'description' => (string) $this->description, |
|
| 42 | + 'description' => (string)$this->description, |
|
| 43 | 43 | ); |
| 44 | 44 | } |
| 45 | 45 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * @param string $brand |
| 18 | 18 | * @param string $title |
| 19 | - * @param string|null $subtitle |
|
| 19 | + * @param string|null $subTitle |
|
| 20 | 20 | * @param string|null $footer |
| 21 | 21 | * @param string|null $publisher |
| 22 | 22 | * @param EventInfoServiceInterface|null $uitpas |