@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function setCoordinates(array $coordinates) |
127 | 127 | { |
128 | - if(!count($coordinates)) |
|
128 | + if (!count($coordinates)) |
|
129 | 129 | { |
130 | 130 | $this->coordinates = array(NULL, NULL); |
131 | 131 | } else |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | */ |
192 | 192 | public function setType($type) |
193 | 193 | { |
194 | - if($type !== self::HYBRID && $type !== self::ROADMAP && $type !== self::SATELLITE && |
|
194 | + if ($type !== self::HYBRID && $type !== self::ROADMAP && $type !== self::SATELLITE && |
|
195 | 195 | $type !== self::TERRAIN) |
196 | 196 | { |
197 | 197 | throw new InvalidArgumentException; |
@@ -211,10 +211,10 @@ discard block |
||
211 | 211 | { |
212 | 212 | if (!in_array($key, ['start', 'end', 'waypoint'])) |
213 | 213 | { |
214 | - throw new InvalidArgumentException('First argument must be "start|end|waypoint", ' . $key . ' was given'); |
|
214 | + throw new InvalidArgumentException('First argument must be "start|end|waypoint", '.$key.' was given'); |
|
215 | 215 | } |
216 | 216 | |
217 | - if($key === 'waypoint') |
|
217 | + if ($key === 'waypoint') |
|
218 | 218 | { |
219 | 219 | $this->waypoints['waypoints'][] = $waypoint; |
220 | 220 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | public function setDirection(array $direction) |
235 | 235 | { |
236 | 236 | $this->direction = $direction; |
237 | - if(!array_key_exists('travelmode', $this->direction)) |
|
237 | + if (!array_key_exists('travelmode', $this->direction)) |
|
238 | 238 | { |
239 | 239 | $this->direction['travelmode'] = 'DRIVING'; |
240 | 240 | } else if (!in_array($direction['travelmode'], [ |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | $this->template->position = $this->coordinates; |
430 | 430 | $this->template->markers = $this->markers; |
431 | 431 | $this->template->clickable = $this->clickable; |
432 | - $this->template->setFile(dirname(__FILE__) . '/static.latte'); |
|
432 | + $this->template->setFile(dirname(__FILE__).'/static.latte'); |
|
433 | 433 | } else |
434 | 434 | { |
435 | 435 | $map = array( |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | 'waypoint' => !is_null($this->waypoints) ? array_merge($this->waypoints, $this->direction) : NULL |
447 | 447 | ); |
448 | 448 | $this->template->map = Json::encode($map); |
449 | - $this->template->setFile(dirname(__FILE__) . '/template.latte'); |
|
449 | + $this->template->setFile(dirname(__FILE__).'/template.latte'); |
|
450 | 450 | } |
451 | 451 | $this->template->render(); |
452 | 452 | } |