@@ -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 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function serialize() |
| 34 | 34 | { |
| 35 | 35 | return parent::serialize() + array( |
| 36 | - 'organizerId' => $this->organizerId, |
|
| 36 | + 'organizerId' => $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(), |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Contains CultuurNet\UDB3\Place\PlaceEvent. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Contains CultuurNet\UDB3\Place\PlaceEvent. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | namespace CultuurNet\UDB3\Place; |
| 8 | 8 | |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Place\ReadModel\Relations\Doctrine; |
| 7 | 7 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | public function removeRelations($eventId) |
| 73 | 73 | { |
| 74 | - // @todo implement this for non-drupal. |
|
| 74 | + // @todo implement this for non-drupal. |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -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; |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Variations; |
| 7 | 7 | |
@@ -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); |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Variations; |
| 7 | 7 | |
@@ -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 | } |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // Loop over all matching tags from the string. |
| 76 | - return preg_replace_callback($pattern, function ($match) use ($newlines) { |
|
| 76 | + return preg_replace_callback($pattern, function($match) use ($newlines) { |
|
| 77 | 77 | // Return the tag appended by the specified amount of newlines. Note that $match[0] is the full captured |
| 78 | 78 | // match, so it also includes the newlines after the tag. $match[1] is just the tag itself, and $match[2] |
| 79 | 79 | // are the newlines following it (if any). |