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 ( 37e53b...131462 )
by Petr
02:53
created
src/MapAPI.php 1 patch
Spacing   +12 added lines, -13 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 */
127 127
 	public function setCoordinates(array $coordinates)
128 128
 	{
129
-		if(!count($coordinates))
129
+		if (!count($coordinates))
130 130
 		{
131 131
 			$this->coordinates = array(NULL, NULL);
132 132
 		} else
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 	 */
193 193
 	public function setType($type)
194 194
 	{
195
-		if($type !== self::HYBRID && $type !== self::ROADMAP && $type !== self::SATELLITE &&
195
+		if ($type !== self::HYBRID && $type !== self::ROADMAP && $type !== self::SATELLITE &&
196 196
 				$type !== self::TERRAIN)
197 197
 		{
198 198
 			throw new InvalidArgumentException;
@@ -212,10 +212,10 @@  discard block
 block discarded – undo
212 212
 	{
213 213
 		if (!in_array($key, ['start', 'end', 'waypoint']))
214 214
 		{
215
-			throw new InvalidArgumentException('First argument must be "start|end|waypoint", ' . $key . ' was given');
215
+			throw new InvalidArgumentException('First argument must be "start|end|waypoint", '.$key.' was given');
216 216
 		}
217 217
 
218
-		if($key === 'waypoint')
218
+		if ($key === 'waypoint')
219 219
 		{
220 220
 			$this->waypoints['waypoints'][] = $waypoint;
221 221
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 	public function setDirection(array $direction)
236 236
 	{
237 237
 		$this->direction = $direction;
238
-		if(!array_key_exists('travelmode', $this->direction))
238
+		if (!array_key_exists('travelmode', $this->direction))
239 239
 		{
240 240
 			$this->direction['travelmode'] = 'DRIVING';
241 241
 		} else if (!in_array($direction['travelmode'], [
@@ -361,8 +361,8 @@  discard block
 block discarded – undo
361 361
 
362 362
 		} else if ($clickable !== FALSE)
363 363
 		{
364
-			$this->clickable = '<a href="https://maps.google.com/maps/place/' .
365
-				$this->coordinates[0] . ',' . $this->coordinates[1] . '/">';
364
+			$this->clickable = '<a href="https://maps.google.com/maps/place/'.
365
+				$this->coordinates[0].','.$this->coordinates[1].'/">';
366 366
 		}
367 367
 
368 368
 		return $this;
@@ -437,8 +437,8 @@  discard block
 block discarded – undo
437 437
 			if (is_callable($this->clickable))
438 438
 			{
439 439
 				$this->clickable = call_user_func_array($this->clickable, [
440
-					'https://maps.google.com/maps/place/' . $this->coordinates[0] . ',' .
441
-					$this->coordinates[1] . '/',
440
+					'https://maps.google.com/maps/place/'.$this->coordinates[0].','.
441
+					$this->coordinates[1].'/',
442 442
 					$this->getCoordinates()
443 443
 				]);
444 444
 			}
@@ -448,9 +448,8 @@  discard block
 block discarded – undo
448 448
 			$this->template->zoom = $this->zoom;
449 449
 			$this->template->position = $this->coordinates;
450 450
 			$this->template->markers = $this->markers;
451
-			$this->template->clickable = $this->clickable instanceof Html ? $this->clickable->startTag() :
452
-				$this->clickable;
453
-			$this->template->setFile(dirname(__FILE__) . '/static.latte');
451
+			$this->template->clickable = $this->clickable instanceof Html ? $this->clickable->startTag() : $this->clickable;
452
+			$this->template->setFile(dirname(__FILE__).'/static.latte');
454 453
 		} else
455 454
 		{
456 455
 			$map = array(
@@ -467,7 +466,7 @@  discard block
 block discarded – undo
467 466
 			    'waypoint' => !is_null($this->waypoints) ? array_merge($this->waypoints, $this->direction) : NULL
468 467
 			);
469 468
 			$this->template->map = Json::encode($map);
470
-			$this->template->setFile(dirname(__FILE__) . '/template.latte');
469
+			$this->template->setFile(dirname(__FILE__).'/template.latte');
471 470
 		}
472 471
 		$this->template->render();
473 472
 	}
Please login to merge, or discard this patch.