Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Failed Conditions
Push — dependabot/composer/phpunit/ph... ( 7173cc...f8df30 )
by
unknown
12:14 queued 06:41
created
src/lib/Smr/Chess/ChessGame.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 				$blanks = 0;
267 267
 			}
268 268
 		}
269
-		$fen .= match ($this->getCurrentTurnColour()) {
269
+		$fen .= match($this->getCurrentTurnColour()) {
270 270
 			self::PLAYER_WHITE => ' w ',
271 271
 			self::PLAYER_BLACK => ' b ',
272 272
 		};
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
 		if ($this->hasMoved[ChessPiece::PAWN][0] != -1) {
298 298
 			$fen .= chr(ord('a') + $this->hasMoved[ChessPiece::PAWN][0]);
299
-			$fen .= match ($this->hasMoved[ChessPiece::PAWN][1]) {
299
+			$fen .= match($this->hasMoved[ChessPiece::PAWN][1]) {
300 300
 				3 => '6',
301 301
 				4 => '3',
302 302
 			};
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 
465 465
 	public static function isCastling(int $x, int $toX): array|false {
466 466
 		$movement = $toX - $x;
467
-		return match ($movement) {
467
+		return match($movement) {
468 468
 			-2 => ['Type' => 'Queen', 'X' => 0, 'ToX' => 3],
469 469
 			2 => ['Type' => 'King', 'X' => 7, 'ToX' => 5],
470 470
 			default => false,
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
 	}
773 773
 
774 774
 	public function getColourID(string $colour): int {
775
-		return match ($colour) {
775
+		return match($colour) {
776 776
 			self::PLAYER_WHITE => $this->getWhiteID(),
777 777
 			self::PLAYER_BLACK => $this->getBlackID(),
778 778
 		};
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
 	}
784 784
 
785 785
 	public function getColourForAccountID(int $accountID): string {
786
-		return match ($accountID) {
786
+		return match($accountID) {
787 787
 			$this->getWhiteID() => self::PLAYER_WHITE,
788 788
 			$this->getBlackID() => self::PLAYER_BLACK,
789 789
 		};
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
 	}
861 861
 
862 862
 	public static function getOtherColour(string $colour): string {
863
-		return match ($colour) {
863
+		return match($colour) {
864 864
 			self::PLAYER_WHITE => self::PLAYER_BLACK,
865 865
 			self::PLAYER_BLACK => self::PLAYER_WHITE,
866 866
 		};
Please login to merge, or discard this patch.
src/lib/Smr/VoteSite.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 class VoteSite {
12 12
 
13
-	private static ?array $CACHE_TIMEOUTS = null;
13
+	private static ? array $CACHE_TIMEOUTS = null;
14 14
 
15 15
 	// NOTE: link IDs should never be changed!
16 16
 	public const LINK_ID_TWG = 3;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 	private static function getSiteData(int $linkID): array {
32 32
 		// This can't be a static/constant attribute due to `url_func` closures.
33
-		return match ($linkID) {
33
+		return match($linkID) {
34 34
 			self::LINK_ID_TWG => [
35 35
 				'img_default' => 'twg.png',
36 36
 				'img_star' => 'twg_vote.png',
Please login to merge, or discard this patch.
src/lib/Smr/DatabaseRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	}
29 29
 
30 30
 	public function getBoolean(string $name): bool {
31
-		return match ($this->dbRecord[$name]) {
31
+		return match($this->dbRecord[$name]) {
32 32
 			'TRUE' => true,
33 33
 			'FALSE' => false,
34 34
 		};
Please login to merge, or discard this patch.
src/engine/Default/hall_of_fame_new.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@
 block discarded – undo
35 35
 const USER_SCORE_NAME = 'User Score';
36 36
 $hofTypes = [DONATION_NAME => true, USER_SCORE_NAME => true];
37 37
 foreach ($dbResult->records() as $dbRecord) {
38
-	$hof =& $hofTypes;
38
+	$hof = & $hofTypes;
39 39
 	$typeList = explode(':', $dbRecord->getString('type'));
40 40
 	foreach ($typeList as $type) {
41 41
 		if (!isset($hof[$type])) {
42 42
 			$hof[$type] = [];
43 43
 		}
44
-		$hof =& $hof[$type];
44
+		$hof = & $hof[$type];
45 45
 	}
46 46
 	$hof = true;
47 47
 }
Please login to merge, or discard this patch.