diff --git a/src/Controller/MapApiController.php b/src/Controller/MapApiController.php index e994549..0d7e45e 100644 --- a/src/Controller/MapApiController.php +++ b/src/Controller/MapApiController.php @@ -122,11 +122,11 @@ class MapApiController extends AbstractController foreach ($s->getBuildings() as $b) { $buildJSON = array(); foreach ($b->getFloors() as $f){ - $buildJSON[] = array(['name' => $f->getName(), 'id' => $f->getId()]); + $buildJSON[] = array('name' => $f->getName(), 'id' => $f->getId()); } - $siteJSON[] = array(['name' => $b->getName(), 'id' => $b->getId(), 'floors' => $buildJSON]); + $siteJSON[] = array('name' => $b->getName(), 'id' => $b->getId(), 'floors' => $buildJSON); } - $response[] = array(['name' => $s->getName(), 'id' => $s->getId(), 'buildings' => $siteJSON]); + $response[] = array('name' => $s->getName(), 'id' => $s->getId(), 'buildings' => $siteJSON); } return $this->json($response); }