@@ -132,14 +132,14 @@ |
||
| 132 | 132 | public function serialize() |
| 133 | 133 | { |
| 134 | 134 | return [ |
| 135 | - 'phone' => $this->phone, |
|
| 136 | - 'email' => $this->email, |
|
| 137 | - 'url' => $this->url, |
|
| 138 | - 'urlLabel' => $this->urlLabel, |
|
| 139 | - 'name' => $this->name, |
|
| 140 | - 'description' => $this->description, |
|
| 141 | - 'availabilityStarts' => $this->availabilityStarts, |
|
| 142 | - 'availabilityEnds' => $this->availabilityEnds |
|
| 135 | + 'phone' => $this->phone, |
|
| 136 | + 'email' => $this->email, |
|
| 137 | + 'url' => $this->url, |
|
| 138 | + 'urlLabel' => $this->urlLabel, |
|
| 139 | + 'name' => $this->name, |
|
| 140 | + 'description' => $this->description, |
|
| 141 | + 'availabilityStarts' => $this->availabilityStarts, |
|
| 142 | + 'availabilityEnds' => $this->availabilityEnds |
|
| 143 | 143 | ]; |
| 144 | 144 | } |
| 145 | 145 | |
@@ -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 | |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | public function equals(Label $label) |
| 34 | 34 | { |
| 35 | 35 | return strcmp( |
| 36 | - mb_strtolower((string) $this, 'UTF-8'), |
|
| 37 | - mb_strtolower((string) $label, 'UTF-8') |
|
| 36 | + mb_strtolower((string)$this, 'UTF-8'), |
|
| 37 | + mb_strtolower((string)$label, 'UTF-8') |
|
| 38 | 38 | ) == 0; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -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; |
@@ -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 |