Skip to content
Snippets Groups Projects
Commit 29d01a85 authored by Demian Katz's avatar Demian Katz
Browse files

Style fix.

parent 7a6636c7
No related merge requests found
...@@ -62,15 +62,15 @@ class Map extends AbstractBase ...@@ -62,15 +62,15 @@ class Map extends AbstractBase
public function __construct($mapType = null, $options = []) public function __construct($mapType = null, $options = [])
{ {
switch (trim(strtolower($mapType))) { switch (trim(strtolower($mapType))) {
case 'google': case 'google':
// Confirm API key, then fall through to 'openlayers' case for // Confirm API key, then fall through to 'openlayers' case for
// other standard behavior: // other standard behavior:
if (empty($options['googleMapApiKey'])) { if (empty($options['googleMapApiKey'])) {
throw new \Exception('Google API key must be set in config.ini'); throw new \Exception('Google API key must be set in config.ini');
} }
$this->googleMapApiKey = $options['googleMapApiKey']; $this->googleMapApiKey = $options['googleMapApiKey'];
$this->mapType = trim(strtolower($mapType)); $this->mapType = trim(strtolower($mapType));
break; break;
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment