@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
43 | 43 | 'CultuurNet\UDB3\UsedKeywordsMemory\Created', |
44 | - function (array $serializedObject) { |
|
44 | + function(array $serializedObject) { |
|
45 | 45 | $serializedObject['class'] = UsedLabelsMemoryCreated::class; |
46 | 46 | |
47 | 47 | return $serializedObject; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
52 | 52 | 'CultuurNet\UDB3\UsedKeywordsMemory\KeywordUsed', |
53 | - function (array $serializedObject) { |
|
53 | + function(array $serializedObject) { |
|
54 | 54 | $serializedObject['class'] = LabelUsed::class; |
55 | 55 | |
56 | 56 | $serializedObject['payload']['label'] = $serializedObject['payload']['keyword']; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
64 | 64 | 'CultuurNet\UDB3\Event\EventWasTagged', |
65 | - function (array $serializedObject) { |
|
65 | + function(array $serializedObject) { |
|
66 | 66 | $serializedObject['class'] = EventWasLabelled::class; |
67 | 67 | |
68 | 68 | $serializedObject['payload']['label'] = $serializedObject['payload']['keyword']; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
76 | 76 | 'CultuurNet\UDB3\Event\TagErased', |
77 | - function (array $serializedObject) { |
|
77 | + function(array $serializedObject) { |
|
78 | 78 | $serializedObject['class'] = Event\Events\Unlabelled::class; |
79 | 79 | |
80 | 80 | $serializedObject['payload']['label'] = $serializedObject['payload']['keyword']; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
88 | 88 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
89 | - function (array $serializedObject) { |
|
89 | + function(array $serializedObject) { |
|
90 | 90 | $serializedObject['class'] = EventImportedFromUDB2::class; |
91 | 91 | |
92 | 92 | return $serializedObject; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
97 | 97 | 'CultuurNet\UDB3\Event\Events\LabelsApplied', |
98 | - function (array $serializedObject) { |
|
98 | + function(array $serializedObject) { |
|
99 | 99 | $serializedObject['class'] = LabelsMerged::class; |
100 | 100 | |
101 | 101 | $keywordsString = $serializedObject['payload']['keywords_string']; |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | $labels = array_map( |
120 | - function (Label $label) { |
|
120 | + function(Label $label) { |
|
121 | 121 | return [ |
122 | - 'text' => (string) $label, |
|
122 | + 'text' => (string)$label, |
|
123 | 123 | 'visible' => $label->isVisible(), |
124 | 124 | ]; |
125 | 125 | }, |
@@ -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 |
@@ -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 |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | public function serialize() |
82 | 82 | { |
83 | 83 | return [ |
84 | - 'type' => $this->getType(), |
|
85 | - 'startDate' => $this->startDate, |
|
86 | - 'endDate' => $this->endDate, |
|
87 | - 'timestamps' => $this->timestamps, |
|
88 | - 'openingHours' => $this->openingHours, |
|
84 | + 'type' => $this->getType(), |
|
85 | + 'startDate' => $this->startDate, |
|
86 | + 'endDate' => $this->endDate, |
|
87 | + 'timestamps' => $this->timestamps, |
|
88 | + 'openingHours' => $this->openingHours, |
|
89 | 89 | ]; |
90 | 90 | } |
91 | 91 | |
@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | $jsonLd['subEvent'] = array(); |
162 | 162 | foreach ($timestamps as $timestamp) { |
163 | 163 | $jsonLd['subEvent'][] = array( |
164 | - '@type' => 'Event', |
|
165 | - 'startDate' => $timestamp->getStartDate(), |
|
166 | - 'endDate' => $timestamp->getEndDate(), |
|
164 | + '@type' => 'Event', |
|
165 | + 'startDate' => $timestamp->getStartDate(), |
|
166 | + 'endDate' => $timestamp->getEndDate(), |
|
167 | 167 | ); |
168 | 168 | } |
169 | 169 | } |
@@ -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 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | $method = $this->getHandleMethod($command); |
25 | 25 | |
26 | - if (! method_exists($this, $method)) { |
|
26 | + if (!method_exists($this, $method)) { |
|
27 | 27 | return; |
28 | 28 | } |
29 | 29 |
@@ -72,10 +72,10 @@ |
||
72 | 72 | public function serialize() |
73 | 73 | { |
74 | 74 | return [ |
75 | - 'phone' => $this->phones, |
|
76 | - 'email' => $this->emails, |
|
77 | - 'url' => $this->urls, |
|
78 | - 'type' => $this->type, |
|
75 | + 'phone' => $this->phones, |
|
76 | + 'email' => $this->emails, |
|
77 | + 'url' => $this->urls, |
|
78 | + 'type' => $this->type, |
|
79 | 79 | ]; |
80 | 80 | } |
81 | 81 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: nicolas |
|
5 | - * Date: 27/10/15 |
|
6 | - * Time: 12:28 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: nicolas |
|
5 | + * Date: 27/10/15 |
|
6 | + * Time: 12:28 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace CultuurNet\UDB3\Event\Events; |
10 | 10 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | public static function deserialize(array $data) |
58 | 58 | { |
59 | 59 | $labels = array_map( |
60 | - function ($item) { |
|
60 | + function($item) { |
|
61 | 61 | return new Label( |
62 | 62 | $item['text'], |
63 | 63 | $item['visible'] |
@@ -78,9 +78,9 @@ discard block |
||
78 | 78 | public function serialize() |
79 | 79 | { |
80 | 80 | $labels = array_map( |
81 | - function (Label $label) { |
|
81 | + function(Label $label) { |
|
82 | 82 | return [ |
83 | - 'text' => (string) $label, |
|
83 | + 'text' => (string)$label, |
|
84 | 84 | 'visible' => $label->isVisible(), |
85 | 85 | ]; |
86 | 86 | }, |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @return mixed The object instance |
|
55 | + * @return LabelsMerged The object instance |
|
56 | 56 | */ |
57 | 57 | public static function deserialize(array $data) |
58 | 58 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: nicolas |
|
5 | - * Date: 04/11/15 |
|
6 | - * Time: 17:35 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: nicolas |
|
5 | + * Date: 04/11/15 |
|
6 | + * Time: 17:35 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace CultuurNet\UDB3\Event\Events; |
10 | 10 |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | * TranslationApplied constructor. |
44 | 44 | * @param String $eventId |
45 | 45 | * @param Language $language |
46 | - * @param String|null $title |
|
47 | - * @param String|null $shortDescription |
|
48 | - * @param String|null $longDescription |
|
46 | + * @param null|string $title |
|
47 | + * @param null|string $shortDescription |
|
48 | + * @param null|string $longDescription |
|
49 | 49 | */ |
50 | 50 | public function __construct( |
51 | 51 | String $eventId, |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
71 | - * @return mixed The object instance |
|
71 | + * @return TranslationApplied The object instance |
|
72 | 72 | */ |
73 | 73 | public static function deserialize(array $data) |
74 | 74 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: nicolas |
|
5 | - * Date: 16/11/15 |
|
6 | - * Time: 14:03 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: nicolas |
|
5 | + * Date: 16/11/15 |
|
6 | + * Time: 14:03 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace CultuurNet\UDB3\Event\Events; |
10 | 10 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @return mixed The object instance |
|
41 | + * @return TranslationDeleted The object instance |
|
42 | 42 | */ |
43 | 43 | public static function deserialize(array $data) |
44 | 44 | { |