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
Pull Request — master (#16)
by
unknown
10:44
created
src/Markers.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function addMarkers(array $markers)
56 56
 	{
57
-		if(count($markers))
57
+		if (count($markers))
58 58
 		{
59
-			foreach($markers as $marker)
59
+			foreach ($markers as $marker)
60 60
 			{
61 61
 				$this->createMarker($marker);
62 62
 			}
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 	{
75 75
 		if (!is_string($animation) && !is_bool($animation))
76 76
 		{
77
-			throw new InvalidArgumentException("Animation must be string or boolean, $animation (" .
78
-					gettype($animation) . ") was given");
77
+			throw new InvalidArgumentException("Animation must be string or boolean, $animation (".
78
+					gettype($animation).") was given");
79 79
 		}
80 80
 		if (!is_string($title) && $title != null)
81 81
 		{
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 		{
128 128
 			throw new LogicException("setMessage must be called after addMarker()");
129 129
 		}
130
-		end($this->markers);         // move the internal pointer to the end of the array
130
+		end($this->markers); // move the internal pointer to the end of the array
131 131
 		$key = key($this->markers);
132 132
 		$this->markers[$key]['message'] = $message;
133 133
 		$this->markers[$key]['autoOpen'] = $autoOpen;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 		{
151 151
 			throw new InvalidArgumentException("customField must be array, $customField (".gettype($customField).") was given");
152 152
 		}
153
-		end($this->markers);         // move the internal pointer to the end of the array
153
+		end($this->markers); // move the internal pointer to the end of the array
154 154
 		$key = key($this->markers);
155 155
 		$this->markers[$key]['customField'] = $customField;
156 156
 		return $this;
@@ -240,16 +240,16 @@  discard block
 block discarded – undo
240 240
 		{
241 241
 			throw new LogicException("setIcon must be called after addMarker()");
242 242
 		}
243
-		end($this->markers);         // move the internal pointer to the end of the array
243
+		end($this->markers); // move the internal pointer to the end of the array
244 244
 		$key = key($this->markers);
245
-		if($icon instanceof Marker\Icon)
245
+		if ($icon instanceof Marker\Icon)
246 246
 		{
247
-			$icon->setUrl(is_null($this->iconDefaultPath) ? $icon->getUrl() : $this->iconDefaultPath . $icon->getUrl());
247
+			$icon->setUrl(is_null($this->iconDefaultPath) ? $icon->getUrl() : $this->iconDefaultPath.$icon->getUrl());
248 248
 			$this->markers[$key]['icon'] = $icon->getArray();
249 249
 			
250 250
 		} else
251 251
 		{
252
-			$this->markers[$key]['icon'] = is_null($this->iconDefaultPath) ? $icon : $this->iconDefaultPath . $icon;
252
+			$this->markers[$key]['icon'] = is_null($this->iconDefaultPath) ? $icon : $this->iconDefaultPath.$icon;
253 253
 		}
254 254
 
255 255
 		return $this;
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 */
263 263
 	public function setDefaultIconPath($defaultPath)
264 264
 	{
265
-		if(!is_null($defaultPath) &&
265
+		if (!is_null($defaultPath) &&
266 266
 			!Strings::endsWith($defaultPath, '/') &&
267 267
 			!Strings::endsWith($defaultPath, '\\'))
268 268
 		{
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 		{
299 299
 			throw new InvalidArgumentException("setColor must be called after addMarker()");
300 300
 		}
301
-		end($this->markers);         // move the internal pointer to the end of the array
301
+		end($this->markers); // move the internal pointer to the end of the array
302 302
 		$key = key($this->markers);
303 303
 		$this->markers[$key]['color'] = $color;
304 304
 		return $this;
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 	 */
311 311
 	private function createMarker(array $marker)
312 312
 	{
313
-		if(!array_key_exists('coordinates', $marker))
313
+		if (!array_key_exists('coordinates', $marker))
314 314
 		{
315 315
 			throw new InvalidArgumentException('Coordinates must be set in every marker');
316 316
 		}
@@ -319,9 +319,9 @@  discard block
 block discarded – undo
319 319
 				isset($marker['animation']) ? $marker['animation'] : false,
320 320
 				isset($marker['title']) ? $marker['title'] : null);
321 321
 
322
-		if(array_key_exists('message', $marker))
322
+		if (array_key_exists('message', $marker))
323 323
 		{
324
-			if(is_array($marker['message']))
324
+			if (is_array($marker['message']))
325 325
 			{
326 326
 				$message = array_values($marker['message']);
327 327
 				$this->setMessage($message[0], $message[1]);
@@ -331,23 +331,23 @@  discard block
 block discarded – undo
331 331
 			}
332 332
 		}
333 333
 
334
-		if(array_key_exists('icon', $marker))
334
+		if (array_key_exists('icon', $marker))
335 335
 		{
336
-			if(is_array($marker['icon']))
336
+			if (is_array($marker['icon']))
337 337
 			{
338 338
 				$icon = new Marker\Icon($marker['icon']['url']);
339 339
 
340
-				if(array_key_exists('size', $marker['icon']))
340
+				if (array_key_exists('size', $marker['icon']))
341 341
 				{
342 342
 					$icon->setSize($marker['icon']['size']);
343 343
 				}
344 344
 
345
-				if(array_key_exists('anchor', $marker['icon']))
345
+				if (array_key_exists('anchor', $marker['icon']))
346 346
 				{
347 347
 					$icon->setAnchor($marker['icon']['anchor']);
348 348
 				}
349 349
 
350
-				if(array_key_exists('origin', $marker['icon']))
350
+				if (array_key_exists('origin', $marker['icon']))
351 351
 				{
352 352
 					$icon->setOrigin($marker['icon']['origin']);
353 353
 				}
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 			}
360 360
 		}
361 361
 
362
-		if(array_key_exists('color', $marker))
362
+		if (array_key_exists('color', $marker))
363 363
 		{
364 364
 			$this->setColor($marker['color']);
365 365
 		}
Please login to merge, or discard this patch.