Completed
Push — master ( 296b7c...3c098c )
by Kristof
10s
created
src/Offer/Offer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@
 block discarded – undo
462 462
     {
463 463
         $duplicateMediaObject = array_filter(
464 464
             $this->getMediaObjects(),
465
-            function ($existingMediaObjectId) use ($image) {
465
+            function($existingMediaObjectId) use ($image) {
466 466
                 return $image
467 467
                     ->getMediaObjectId()
468 468
                     ->sameValueAs($existingMediaObjectId);
Please login to merge, or discard this patch.
src/Offer/ReadModel/JSONLD/OfferLDProjector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $offerLd = $document->getBody();
158 158
 
159 159
         $labels = isset($offerLd->labels) ? $offerLd->labels : [];
160
-        $label = (string) $labelAdded->getLabel();
160
+        $label = (string)$labelAdded->getLabel();
161 161
 
162 162
         $labels[] = $label;
163 163
         $offerLd->labels = array_unique($labels);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         if (is_array($offerLd->labels)) {
178 178
             $offerLd->labels = array_filter(
179 179
                 $offerLd->labels,
180
-                function ($label) use ($deleteLabel) {
180
+                function($label) use ($deleteLabel) {
181 181
                     return !$deleteLabel->getLabel()->equals(
182 182
                         new Label($label)
183 183
                     );
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             return;
265 265
         }
266 266
 
267
-        $imageId = (string) $imageRemoved->getImage()->getMediaObjectId();
267
+        $imageId = (string)$imageRemoved->getImage()->getMediaObjectId();
268 268
 
269 269
         /**
270 270
          * Matches any object that is not the removed image.
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
          * @return bool
276 276
          *  Returns true when the media object does not match the image to remove.
277 277
          */
278
-        $shouldNotBeRemoved = function ($mediaObject) use ($imageId) {
278
+        $shouldNotBeRemoved = function($mediaObject) use ($imageId) {
279 279
             $containsId = !!strpos($mediaObject->{'@id'}, $imageId);
280 280
             return !$containsId;
281 281
         };
Please login to merge, or discard this patch.
src/Event/ReadModel/JSONLD/EventLDProjector.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     ) {
269 269
         $this->saveNewDocument(
270 270
             $eventId,
271
-            function (\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) {
271
+            function(\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) {
272 272
                 $eventLd = $this->projectEventCdbXmlToObject(
273 273
                     $eventLd,
274 274
                     $eventId,
@@ -325,13 +325,13 @@  discard block
 block discarded – undo
325 325
     ) {
326 326
         $this->saveNewDocument(
327 327
             $eventId,
328
-            function (\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) {
328
+            function(\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) {
329 329
                 return $this->projectEventCdbXmlToObject(
330 330
                     $eventLd,
331 331
                     $eventId,
332 332
                     $cdbXmlNamespaceUri,
333 333
                     $cdbXml
334
-                ) ;
334
+                );
335 335
             }
336 336
         );
337 337
     }
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     ) {
408 408
         $this->saveNewDocument(
409 409
             $eventCreated->getEventId(),
410
-            function (\stdClass $jsonLD) use ($eventCreated, $domainMessage) {
410
+            function(\stdClass $jsonLD) use ($eventCreated, $domainMessage) {
411 411
                 $jsonLD->{'@id'} = $this->iriGenerator->iri(
412 412
                     $eventCreated->getEventId()
413 413
                 );
@@ -481,8 +481,8 @@  discard block
 block discarded – undo
481 481
         ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid());
482 482
 
483 483
         // Remove old theme and event type.
484
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
485
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
484
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
485
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
486 486
         });
487 487
 
488 488
         $eventType = $majorInfoUpdated->getEventType();
Please login to merge, or discard this patch.