diff --git a/.travis.yml b/.travis.yml index 07d0b4a..2f4626c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,4 @@ language: php php: '7.0' install: composer install script: phpunit --configuration tests/phpunit/phpunit.xml -addons: - ssh_known_hosts:phpminds.org -deploy: - provider: script - script: scripts/deploy.sh - on: - branch: develop + diff --git a/app/src/Service/EventsService.php b/app/src/Service/EventsService.php index d61f198..c8cb494 100644 --- a/app/src/Service/EventsService.php +++ b/app/src/Service/EventsService.php @@ -60,6 +60,10 @@ public function getLatestEvent() return $this->meetupService->getLatestEvent(); } + /** + * Get all events except for latest. + * @return array + */ public function getPastEvents() { return $this->meetupService->getPastEvents(); diff --git a/app/src/Service/MeetupService.php b/app/src/Service/MeetupService.php index 5eab309..52e02f3 100644 --- a/app/src/Service/MeetupService.php +++ b/app/src/Service/MeetupService.php @@ -65,6 +65,10 @@ public function getLatestEvent() return $this->meetupEvent->formatResponse($events['results'][0] ?? []); } + /** + * get all events apart form last one in array + * @return array + */ public function getPastEvents() { $pastEvents = []; @@ -74,9 +78,9 @@ public function getPastEvents() array_shift($events["results"]); foreach($events["results"] as $event){ - array_push($pastEvents,$this->meetupEvent->formatResponse($event)); + $pastEvents[] = $this->meetupEvent->formatResponse($event); - }; + } return $pastEvents ?? []; } /** diff --git a/app/templates/content/past-events.md b/app/templates/content/past-events.md index 8135427..6e6b4fd 100644 --- a/app/templates/content/past-events.md +++ b/app/templates/content/past-events.md @@ -1,6 +1,2 @@ Now our first event has finally happened, thanks to all those that came, we can publish -information about previous events. Other details to follow. - -**In December 2015 we had Rob Allen speak on Building an API with Slim 3.** - -Please leave your feedback on joind.in at https://joind.in/16610 +information about previous events. diff --git a/app/templates/home.twig b/app/templates/home.twig index 779934e..d03493d 100644 --- a/app/templates/home.twig +++ b/app/templates/home.twig @@ -33,7 +33,7 @@