@@ -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 |
@@ -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 | }, |
@@ -215,7 +215,7 @@ |
||
215 | 215 | $labels = $labelsMerged->getLabels()->toStrings(); |
216 | 216 | // Quote labels. |
217 | 217 | $quotedLabels = array_map( |
218 | - function ($label) { |
|
218 | + function($label) { |
|
219 | 219 | return "'{$label}'"; |
220 | 220 | }, |
221 | 221 | $labels |
@@ -167,7 +167,7 @@ |
||
167 | 167 | { |
168 | 168 | $labels = array_filter( |
169 | 169 | array_values($event->getKeywords()), |
170 | - function ($keyword) { |
|
170 | + function($keyword) { |
|
171 | 171 | return (strlen(trim($keyword)) > 0); |
172 | 172 | } |
173 | 173 | ); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | public function removeOrganizer($eventId) |
43 | 43 | { |
44 | - $transaction = function ($connection) use ($eventId) { |
|
44 | + $transaction = function($connection) use ($eventId) { |
|
45 | 45 | if ($this->eventHasRelations($connection, $eventId)) { |
46 | 46 | $this->updateEventOrganizerRelation($connection, $eventId, null); |
47 | 47 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | public function storeOrganizer($eventId, $organizerId) |
54 | 54 | { |
55 | - $transaction = function ($connection) use ($eventId, $organizerId) { |
|
55 | + $transaction = function($connection) use ($eventId, $organizerId) { |
|
56 | 56 | if ($this->eventHasRelations($connection, $eventId)) { |
57 | 57 | $this->updateEventOrganizerRelation($connection, $eventId, $organizerId); |
58 | 58 | } else { |
@@ -247,7 +247,7 @@ |
||
247 | 247 | { |
248 | 248 | return array_keys(array_filter( |
249 | 249 | $this->brandSpecs, |
250 | - function (EventSpecificationInterface $brandSpec) use ($event) { |
|
250 | + function(EventSpecificationInterface $brandSpec) use ($event) { |
|
251 | 251 | return $brandSpec->isSatisfiedBy($event); |
252 | 252 | } |
253 | 253 | )); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $dateRange->datefrom = $firstPeriod->datefrom; |
66 | 66 | |
67 | 67 | /** @var CultureFeed_Uitpas_Calendar_Period $lastPeriod */ |
68 | - $lastPeriod = end($uitpasCalendar->periods); |
|
68 | + $lastPeriod = end($uitpasCalendar->periods); |
|
69 | 69 | $dateRange->dateto = $lastPeriod->dateto; |
70 | 70 | } elseif (!empty($uitpasCalendar->timestamps)) { |
71 | 71 | /** |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $dateRange->datefrom = $firstTimestampDate->getTimestamp(); |
84 | 84 | |
85 | 85 | /** @var \CultureFeed_Uitpas_Calendar_Timestamp $lastTimestamp */ |
86 | - $lastTimestamp = end($uitpasCalendar->timestamps); |
|
86 | + $lastTimestamp = end($uitpasCalendar->timestamps); |
|
87 | 87 | $lastTimestampDate = new \DateTime(); |
88 | 88 | $lastTimestampDate |
89 | 89 | ->setTimestamp($lastTimestamp->date) |
@@ -158,7 +158,7 @@ |
||
158 | 158 | |
159 | 159 | $formattedEvents = new TransformingIteratorIterator( |
160 | 160 | $events, |
161 | - function ($event, $eventId) use ($formatter) { |
|
161 | + function($event, $eventId) use ($formatter) { |
|
162 | 162 | return $formatter->formatEvent($eventId, $event); |
163 | 163 | } |
164 | 164 | ); |
@@ -58,11 +58,11 @@ discard block |
||
58 | 58 | |
59 | 59 | $prefixedTerms = array_filter( |
60 | 60 | $properties, |
61 | - function ($property) use ($termPrefix) { |
|
61 | + function($property) use ($termPrefix) { |
|
62 | 62 | return strpos($property, $termPrefix) === 0; |
63 | 63 | } |
64 | 64 | ); |
65 | - $terms = array_map(function ($term) use ($termPrefix) { |
|
65 | + $terms = array_map(function($term) use ($termPrefix) { |
|
66 | 66 | return str_replace($termPrefix, "", $term); |
67 | 67 | }, $prefixedTerms); |
68 | 68 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | if (property_exists($eventObject, 'terms') && $includedTerms) { |
87 | 87 | $filteredTerms = array_filter( |
88 | 88 | $eventObject->terms, |
89 | - function ($term) use ($includedTerms) { |
|
89 | + function($term) use ($includedTerms) { |
|
90 | 90 | return in_array($term->domain, $includedTerms); |
91 | 91 | } |
92 | 92 | ); |