GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 4f2e71...37e53b )
by Petr
16:31
created
src/MapAPI.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.