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.
Passed
Pull Request — dev (#2644)
by
unknown
13:38
created
misc/update/update_binaries.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
31 31
 			(isset($argv[2]) && is_numeric($argv[2]) && $argv[2] > 0 ? $argv[2] : $maxHeaders));
32 32
 	}
33 33
 } else {
34
-	$binaries->updateAllGroups((isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? $argv[1] :
35
-		$maxHeaders));
34
+	$binaries->updateAllGroups((isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? $argv[1] : $maxHeaders));
36 35
 }
37 36
 ?>
Please login to merge, or discard this patch.
nzedb/Backfill.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,8 +279,7 @@
 block discarded – undo
279 279
 			$dMessage =
280 280
 				"We have hit the maximum we can backfill for " .
281 281
 				$groupName .
282
-				($this->_disableBackfillGroup ? ", disabling backfill on it." :
283
-				", skipping it, consider disabling backfill on it.");
282
+				($this->_disableBackfillGroup ? ", disabling backfill on it." : ", skipping it, consider disabling backfill on it.");
284 283
 			if ($this->_debug) {
285 284
 				$this->_debugging->log(get_class(), __FUNCTION__, $dMessage, Logger::LOG_NOTICE);
286 285
 			}
Please login to merge, or discard this patch.
nzedb/IRCClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -678,11 +678,11 @@
 block discarded – undo
678 678
 	{
679 679
 		return preg_replace(
680 680
 			[
681
-				'/(\x03(?:\d{1,2}(?:,\d{1,2})?)?)/',    // Color code
682
-				'/\x02/',                               // Bold
683
-				'/\x0F/',                               // Escaped
684
-				'/\x16/',                               // Italic
685
-				'/\x1F/',                               // Underline
681
+				'/(\x03(?:\d{1,2}(?:,\d{1,2})?)?)/', // Color code
682
+				'/\x02/', // Bold
683
+				'/\x0F/', // Escaped
684
+				'/\x16/', // Italic
685
+				'/\x1F/', // Underline
686 686
 				'/\x12/'                                // Device control 2
687 687
 			], '', $text
688 688
 		);
Please login to merge, or discard this patch.
nzedb/MiscSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -597,7 +597,7 @@
 block discarded – undo
597 597
 		if (preg_match('/(a\s?r\s?t\s?i\s?s\s?t|l\s?a\s?b\s?e\s?l|mp3|e\s?n\s?c\s?o\s?d\s?e\s?r|rip|stereo|mono|single charts)/i', $nfo)
598 598
 			&& !preg_match('/(\bavi\b|x\.?264|divx|mvk|xvid|install(?!ation)|Setup\.exe|unzip|unrar)/i', $nfo)) {
599 599
 			$artist = preg_split('/(?:a\s?r\s?t\s?i\s?s\s?t\s?s?\b[^ \.\:]*|a\s?u\s?t\s?h\s?o\s?r\s?s?\b[^ \.\:]*) *?(?!(?:[^\s\.\:\}\]\*\x{2500}-\x{3000}\?] ?){2,}?\b)(?:[\*\?\-\=\|\;\:\.\[\}\]\(\s\x{2500}-\x{3000}\?]+?)[\s\.\>\:\(\)\x{2500}-\x{3000}\?]((?!\:) ?\w.+)(?:\n|$|\s{3}|\.{3})/Uuim', $nfo, 0, PREG_SPLIT_DELIM_CAPTURE);
600
-			if(isset($artist[1])) {
600
+			if (isset($artist[1])) {
601 601
 				$title = preg_split('/(?:t+\s?i+\s?t+\s?l+\s?e+\b|a\s?l\s?b\s?u\s?m\b|r\s?e\s?l\s?e\s?a\s?s\s?e\b) *?(?!(?:[^\s\.\:\}\]\*\x{2500}-\x{3000}\?] ?){2,}?\b)(?:[\*\?\-\=\|\;\:\.\[\}\]\(\s\x{2500}-\x{3000}\?]+?)[\s\.\>\:\(\)\x{2500}-\x{3000}\?]((?!\:) ?\w.+)(?:\n|$|\s{3}|\.{3})/Uuim', $nfo, 0, PREG_SPLIT_DELIM_CAPTURE);
602 602
 			}
603 603
 
Please login to merge, or discard this patch.
nzedb/ReleaseImage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@
 block discarded – undo
59 59
 		}
60 60
 		//                                                            Table    |  Column
61 61
 		$this->audSavePath    = nZEDb_COVERS . 'audiosample' . DS; // releases    guid
62
-		$this->imgSavePath    = nZEDb_COVERS . 'preview'     . DS; // releases    guid
63
-		$this->jpgSavePath    = nZEDb_COVERS . 'sample'      . DS; // releases    guid
64
-		$this->movieImgSavePath = nZEDb_COVERS . 'movies'      . DS; // releases    imdbid
65
-		$this->vidSavePath    = nZEDb_COVERS . 'video'       . DS; // releases    guid
62
+		$this->imgSavePath    = nZEDb_COVERS . 'preview' . DS; // releases    guid
63
+		$this->jpgSavePath    = nZEDb_COVERS . 'sample' . DS; // releases    guid
64
+		$this->movieImgSavePath = nZEDb_COVERS . 'movies' . DS; // releases    imdbid
65
+		$this->vidSavePath    = nZEDb_COVERS . 'video' . DS; // releases    guid
66 66
 
67 67
 		/* For reference. *
68 68
 		$this->anidbImgPath   = nZEDb_COVERS . 'anime'       . DS; // anidb       anidbid | used in populate_anidb.php, not anidb.php
Please login to merge, or discard this patch.
nzedb/SABnzbd.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -338,10 +338,10 @@  discard block
 block discarded – undo
338 338
 	 */
339 339
 	public function setCookie($host, $apikey, $priority, $apitype)
340 340
 	{
341
-		setcookie('sabnzbd_' . $this->uid . '__host',     $host,     (time() + 2592000));
342
-		setcookie('sabnzbd_' . $this->uid . '__apikey',   $apikey,   (time() + 2592000));
341
+		setcookie('sabnzbd_' . $this->uid . '__host', $host, (time() + 2592000));
342
+		setcookie('sabnzbd_' . $this->uid . '__apikey', $apikey, (time() + 2592000));
343 343
 		setcookie('sabnzbd_' . $this->uid . '__priority', $priority, (time() + 2592000));
344
-		setcookie('sabnzbd_' . $this->uid . '__apitype',  $apitype,  (time() + 2592000));
344
+		setcookie('sabnzbd_' . $this->uid . '__apitype', $apitype, (time() + 2592000));
345 345
 	}
346 346
 
347 347
 	/**
@@ -349,9 +349,9 @@  discard block
 block discarded – undo
349 349
 	 */
350 350
 	public function unsetCookie()
351 351
 	{
352
-		setcookie('sabnzbd_' . $this->uid . '__host',     '', (time() - 2592000));
353
-		setcookie('sabnzbd_' . $this->uid . '__apikey',   '', (time() - 2592000));
352
+		setcookie('sabnzbd_' . $this->uid . '__host', '', (time() - 2592000));
353
+		setcookie('sabnzbd_' . $this->uid . '__apikey', '', (time() - 2592000));
354 354
 		setcookie('sabnzbd_' . $this->uid . '__priority', '', (time() - 2592000));
355
-		setcookie('sabnzbd_' . $this->uid . '__apitype',  '', (time() - 2592000));
355
+		setcookie('sabnzbd_' . $this->uid . '__apitype', '', (time() - 2592000));
356 356
 	}
357 357
 }
Please login to merge, or discard this patch.
nzedb/Users.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
 		$user = $this->getById($userID);
898 898
 		$secure_cookie = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? '1' : '0');
899 899
 		setcookie('uid', $userID, (time() + 2592000), '/', null, $secure_cookie, true);
900
-		setcookie('idh', ($this->hashSHA1($user['userseed'] . $userID)), (time() + 2592000), '/', null, $secure_cookie, true);	}
900
+		setcookie('idh', ($this->hashSHA1($user['userseed'] . $userID)), (time() + 2592000), '/', null, $secure_cookie, true); }
901 901
 
902 902
 	/**
903 903
 	 * Add a release to the user's cart.
@@ -1418,7 +1418,7 @@  discard block
 block discarded – undo
1418 1418
 				$userID
1419 1419
 			)
1420 1420
 		);
1421
-		return ($value === false ? 0 : (int) $value['num']);
1421
+		return ($value === false ? 0 : (int)$value['num']);
1422 1422
 	}
1423 1423
 
1424 1424
 	/**
@@ -1464,7 +1464,7 @@  discard block
 block discarded – undo
1464 1464
 			)
1465 1465
 		);
1466 1466
 
1467
-		return ((integer)$result['role'] == (integer) $roleID) ? true : false;
1467
+		return ((integer)$result['role'] == (integer)$roleID) ? true : false;
1468 1468
 	}
1469 1469
 
1470 1470
 	/**
@@ -1474,7 +1474,7 @@  discard block
 block discarded – undo
1474 1474
 	 * @return bool
1475 1475
 	 */
1476 1476
 	public function isAdmin($userID) {
1477
-		return $this->roleCheck(self::ROLE_ADMIN, (integer) $userID);
1477
+		return $this->roleCheck(self::ROLE_ADMIN, (integer)$userID);
1478 1478
 	}
1479 1479
 
1480 1480
 	/**
@@ -1484,6 +1484,6 @@  discard block
 block discarded – undo
1484 1484
 	 * @return bool
1485 1485
 	 */
1486 1486
 	public function isModerator($userId) {
1487
-		return $this->roleCheck(self::ROLE_MODERATOR, (integer) $userId);
1487
+		return $this->roleCheck(self::ROLE_MODERATOR, (integer)$userId);
1488 1488
 	}
1489 1489
 }
Please login to merge, or discard this patch.
nzedb/db/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
 			'unrarpath'          => '',
308 308
 			'yydecoderpath'      => '',
309 309
 		];
310
-		$fields += $defaults;    // Make sure keys exist to avoid error notices.
310
+		$fields += $defaults; // Make sure keys exist to avoid error notices.
311 311
 		ksort($fields);
312 312
 		// Validate settings
313 313
 		$fields['nzbpath'] = Text::trailingSlash($fields['nzbpath']);
Please login to merge, or discard this patch.
nzedb/processing/Videos.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 abstract class Videos
31 31
 {
32 32
 	// Video Type Identifiers
33
-	const TYPE_TV		= 0; // Type of video is a TV Programme/Show
33
+	const TYPE_TV = 0; // Type of video is a TV Programme/Show
34 34
 	const TYPE_FILM		= 1; // Type of video is a Film/Movie
35 35
 	const TYPE_ANIME	= 2; // Type of video is a Anime
36 36
 
Please login to merge, or discard this patch.