From 8bccaab4a28199fd61af5063b1340a240b029df9 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 5 Jun 2016 17:59:56 +0200 Subject: [PATCH] Dont nest the events. --- .../Bundle/CalciferBundle/Entity/Event.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php index 2dfb776..222737e 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php +++ b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php @@ -140,21 +140,19 @@ class Event extends BaseEntity } $event = [ - "VEVENT" => [ - 'SUMMARY' => $this->summary, - 'DTSTART' => $this->startdate, - 'DESCRIPTION' => $this->description, - 'URL' => $this->url, - 'CATEGORIES' => $categories, - ] + 'SUMMARY' => $this->summary, + 'DTSTART' => $this->startdate, + 'DESCRIPTION' => $this->description, + 'URL' => $this->url, + 'CATEGORIES' => $categories, ]; if (!is_null($this->enddate)) - $event["VEVENT"]["DTEND"] = $this->enddate; + $event["DTEND"] = $this->enddate; if ($this->location instanceof Location) { - $event["VEVENT"]["LOCATION"] = $this->location->name; + $event["LOCATION"] = $this->location->name; if (\is_float($this->location->lon) && \is_float($this->location->lat)) { - $event["VEVENT"]["GEO"] = [$this->location->lat, $this->location->lon]; + $event["GEO"] = [$this->location->lat, $this->location->lon]; } }