@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
67 | 67 | 'CultuurNet\UDB3\UsedKeywordsMemory\Created', |
68 | - function (array $serializedObject) { |
|
68 | + function(array $serializedObject) { |
|
69 | 69 | $serializedObject['class'] = UsedLabelsMemoryCreated::class; |
70 | 70 | |
71 | 71 | return $serializedObject; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
76 | 76 | 'CultuurNet\UDB3\UsedKeywordsMemory\KeywordUsed', |
77 | - function (array $serializedObject) { |
|
77 | + function(array $serializedObject) { |
|
78 | 78 | $serializedObject['class'] = LabelUsed::class; |
79 | 79 | |
80 | 80 | $serializedObject = self::replaceKeywordWithLabel($serializedObject); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
91 | 91 | 'CultuurNet\UDB3\Event\TitleTranslated', |
92 | - function (array $serializedObject) { |
|
92 | + function(array $serializedObject) { |
|
93 | 93 | $serializedObject['class'] = TitleTranslated::class; |
94 | 94 | |
95 | 95 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
102 | 102 | 'CultuurNet\UDB3\Event\DescriptionTranslated', |
103 | - function (array $serializedObject) { |
|
103 | + function(array $serializedObject) { |
|
104 | 104 | $serializedObject['class'] = DescriptionTranslated::class; |
105 | 105 | |
106 | 106 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -115,35 +115,35 @@ discard block |
||
115 | 115 | |
116 | 116 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
117 | 117 | 'CultuurNet\UDB3\Label\Events\MadeInvisible', |
118 | - function (array $serializedObject) use ($labelRepository) { |
|
118 | + function(array $serializedObject) use ($labelRepository) { |
|
119 | 119 | return self::addLabelName($serializedObject, $labelRepository); |
120 | 120 | } |
121 | 121 | ); |
122 | 122 | |
123 | 123 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
124 | 124 | 'CultuurNet\UDB3\Label\Events\MadeVisible', |
125 | - function (array $serializedObject) use ($labelRepository) { |
|
125 | + function(array $serializedObject) use ($labelRepository) { |
|
126 | 126 | return self::addLabelName($serializedObject, $labelRepository); |
127 | 127 | } |
128 | 128 | ); |
129 | 129 | |
130 | 130 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
131 | 131 | 'CultuurNet\UDB3\Label\Events\MadePrivate', |
132 | - function (array $serializedObject) use ($labelRepository) { |
|
132 | + function(array $serializedObject) use ($labelRepository) { |
|
133 | 133 | return self::addLabelName($serializedObject, $labelRepository); |
134 | 134 | } |
135 | 135 | ); |
136 | 136 | |
137 | 137 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
138 | 138 | 'CultuurNet\UDB3\Label\Events\MadePublic', |
139 | - function (array $serializedObject) use ($labelRepository) { |
|
139 | + function(array $serializedObject) use ($labelRepository) { |
|
140 | 140 | return self::addLabelName($serializedObject, $labelRepository); |
141 | 141 | } |
142 | 142 | ); |
143 | 143 | |
144 | 144 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
145 | 145 | 'CultuurNet\UDB3\Event\Events\EventWasLabelled', |
146 | - function (array $serializedObject) { |
|
146 | + function(array $serializedObject) { |
|
147 | 147 | $serializedObject['class'] = LabelAdded::class; |
148 | 148 | |
149 | 149 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | |
155 | 155 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
156 | 156 | 'CultuurNet\UDB3\Event\EventWasTagged', |
157 | - function (array $serializedObject) { |
|
157 | + function(array $serializedObject) { |
|
158 | 158 | $serializedObject['class'] = LabelAdded::class; |
159 | 159 | |
160 | 160 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
169 | 169 | 'CultuurNet\UDB3\Event\TagErased', |
170 | - function (array $serializedObject) { |
|
170 | + function(array $serializedObject) { |
|
171 | 171 | $serializedObject['class'] = LabelRemoved::class; |
172 | 172 | |
173 | 173 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
182 | 182 | 'CultuurNet\UDB3\Event\Events\Unlabelled', |
183 | - function (array $serializedObject) { |
|
183 | + function(array $serializedObject) { |
|
184 | 184 | $serializedObject['class'] = LabelRemoved::class; |
185 | 185 | |
186 | 186 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | |
192 | 192 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
193 | 193 | 'CultuurNet\UDB3\Event\Events\LabelsApplied', |
194 | - function (array $serializedObject) { |
|
194 | + function(array $serializedObject) { |
|
195 | 195 | $serializedObject['class'] = LabelsMerged::class; |
196 | 196 | |
197 | 197 | $keywordsString = $serializedObject['payload']['keywords_string']; |
@@ -213,9 +213,9 @@ discard block |
||
213 | 213 | } |
214 | 214 | |
215 | 215 | $labels = array_map( |
216 | - function (Label $label) { |
|
216 | + function(Label $label) { |
|
217 | 217 | return [ |
218 | - 'text' => (string) $label, |
|
218 | + 'text' => (string)$label, |
|
219 | 219 | 'visible' => $label->isVisible(), |
220 | 220 | ]; |
221 | 221 | }, |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
237 | 237 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
238 | - function (array $serializedObject) { |
|
238 | + function(array $serializedObject) { |
|
239 | 239 | $serializedObject['class'] = EventImportedFromUDB2::class; |
240 | 240 | |
241 | 241 | return $serializedObject; |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | foreach ($refactoredEventEvents as $refactoredEventEvent) { |
261 | 261 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
262 | 262 | $refactoredEventEvent, |
263 | - function (array $serializedObject) { |
|
263 | + function(array $serializedObject) { |
|
264 | 264 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
265 | 265 | return $serializedObject; |
266 | 266 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | foreach ($refactoredPlaceEvents as $refactoredPlaceEvent) { |
285 | 285 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
286 | 286 | $refactoredPlaceEvent, |
287 | - function (array $serializedObject) { |
|
287 | + function(array $serializedObject) { |
|
288 | 288 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
289 | 289 | return $serializedObject; |
290 | 290 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function filter($string) |
12 | 12 | { |
13 | 13 | if (!is_string($string)) { |
14 | - throw new \InvalidArgumentException('Argument should be string, got ' . gettype($string) . ' instead.'); |
|
14 | + throw new \InvalidArgumentException('Argument should be string, got '.gettype($string).' instead.'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | return preg_replace("/(\\n)+/", " ", $string); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function filter($string) |
12 | 12 | { |
13 | 13 | if (!is_string($string)) { |
14 | - throw new \InvalidArgumentException('Argument should be string, got ' . gettype($string) . ' instead.'); |
|
14 | + throw new \InvalidArgumentException('Argument should be string, got '.gettype($string).' instead.'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | return preg_replace("/(\\n)+/", " ", $string); |