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

Passed
Push — dependabot/github_actions/dock... ( 47a8cd )
by
unknown
31:21 queued 22:05
created
src/tools/npc/chess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 		1 => ['pipe', 'w'], // stdout is a pipe that the child will write to
15 15
 	];
16 16
 	$engine = proc_open(UCI_CHESS_ENGINE, $descriptorSpec, $pipes);
17
-	$toEngine =& $pipes[0];
18
-	$fromEngine =& $pipes[1];
17
+	$toEngine = & $pipes[0];
18
+	$fromEngine = & $pipes[1];
19 19
 
20 20
 	function readFromEngine(bool $block = true): void {
21 21
 		global $fromEngine;
Please login to merge, or discard this patch.
src/engine/Default/shop_goods.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
 			//get base for ports that dont happen to trade that good
54 54
 			$GOODS = Globals::getGoods();
55 55
 			$fine = $totalFine = $port->getLevel() *
56
-			    (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) +
57
-			     ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) +
58
-			     ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice']));
56
+				(($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) +
57
+				 ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) +
58
+				 ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice']));
59 59
 			$player->increaseHOF($ship->getCargo(GOODS_SLAVES) + $ship->getCargo(GOODS_WEAPONS) + $ship->getCargo(GOODS_NARCOTICS), ['Trade', 'Search', 'Caught', 'Goods Confiscated'], HOF_PUBLIC);
60 60
 			$player->increaseHOF($totalFine, ['Trade', 'Search', 'Caught', 'Amount Fined'], HOF_PUBLIC);
61 61
 			$template->assign('TotalFine', $totalFine);
Please login to merge, or discard this patch.
src/engine/Default/hall_of_fame_player_detail.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.
src/engine/Default/admin/unigen/game_create_processing.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
 if ($join === false) {
21 21
 	create_error('Join Date is not valid!');
22 22
 }
23
-$start = empty(Smr\Request::get('game_start')) ? $join :
24
-	DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start'));
23
+$start = empty(Smr\Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start'));
25 24
 if ($start === false) {
26 25
 	create_error('Start Date is not valid!');
27 26
 }
Please login to merge, or discard this patch.
src/engine/Default/admin/unigen/game_edit_processing.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 // Get the dates ("|" sets hr/min/sec to 0)
6 6
 $join = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_join'));
7
-$start = empty(Smr\Request::get('game_start')) ? $join :
8
-	DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start'));
7
+$start = empty(Smr\Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start'));
9 8
 $end = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_end'));
10 9
 
11 10
 $game = SmrGame::getGame($var['game_id']);
Please login to merge, or discard this patch.
src/engine/Default/chat_sharing.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 	$shareFrom[$fromAccountId] = [
27 27
 		'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(),
28 28
 		'Player Name' => $otherPlayer == null ?
29
-		                 '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() :
30
-		                 $otherPlayer->getDisplayName(),
29
+						 '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() :
30
+						 $otherPlayer->getDisplayName(),
31 31
 		'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>',
32 32
 		'Game ID' => $gameId,
33 33
 	];
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 	$shareTo[$toAccountId] = [
48 48
 		'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(),
49 49
 		'Player Name' => $otherPlayer == null ?
50
-		                 '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() :
51
-		                 $otherPlayer->getDisplayName(),
50
+						 '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() :
51
+						 $otherPlayer->getDisplayName(),
52 52
 		'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>',
53 53
 		'Game ID' => $gameId,
54 54
 	];
Please login to merge, or discard this patch.
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
 	$shareFrom[$fromAccountId] = [
27 27
 		'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(),
28 28
 		'Player Name' => $otherPlayer == null ?
29
-		                 '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() :
30
-		                 $otherPlayer->getDisplayName(),
29
+		                 '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : $otherPlayer->getDisplayName(),
31 30
 		'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>',
32 31
 		'Game ID' => $gameId,
33 32
 	];
@@ -47,8 +46,7 @@  discard block
 block discarded – undo
47 46
 	$shareTo[$toAccountId] = [
48 47
 		'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(),
49 48
 		'Player Name' => $otherPlayer == null ?
50
-		                 '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() :
51
-		                 $otherPlayer->getDisplayName(),
49
+		                 '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : $otherPlayer->getDisplayName(),
52 50
 		'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>',
53 51
 		'Game ID' => $gameId,
54 52
 	];
Please login to merge, or discard this patch.
src/lib/Default/AbstractMenu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		$menuItems[] = ['Link' => Globals::getPlanetListHREF($alliance_id), 'Text' => 'Defense'];
39 39
 		$menuItems[] = ['Link' => Globals::getPlanetListFinancialHREF($alliance_id), 'Text' => 'Financial'];
40 40
 		// make the selected index bold
41
-		$boldItem =& $menuItems[$selected_index]['Text'];
41
+		$boldItem = & $menuItems[$selected_index]['Text'];
42 42
 		$boldItem = '<span class="bold">' . $boldItem . '</span>';
43 43
 
44 44
 		$template = Smr\Template::getInstance();
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 			'Text' => 'Game News',
146 146
 		];
147 147
 		// make the selected index bold
148
-		$boldItem =& $menuItems[$selected_index]['Text'];
148
+		$boldItem = & $menuItems[$selected_index]['Text'];
149 149
 		$boldItem = '<b>' . $boldItem . '</b>';
150 150
 
151 151
 		$template = Smr\Template::getInstance();
Please login to merge, or discard this patch.
src/lib/Default/SmrSector.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -555,7 +555,7 @@
 block discarded – undo
555 555
 	 */
556 556
 	public function setWarp(SmrSector $warp): void {
557 557
 		if ($this->getWarp() == $warp->getSectorID() &&
558
-		    $warp->getWarp() == $this->getSectorID()) {
558
+			$warp->getWarp() == $this->getSectorID()) {
559 559
 			// Warps are already set correctly!
560 560
 			return;
561 561
 		}
Please login to merge, or discard this patch.
src/lib/Default/AbstractSmrShip.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -735,14 +735,14 @@
 block discarded – undo
735 735
 
736 736
 	public function isFederal(): bool {
737 737
 		return $this->getTypeID() === SHIP_TYPE_FEDERAL_DISCOVERY ||
738
-		       $this->getTypeID() === SHIP_TYPE_FEDERAL_WARRANT ||
739
-		       $this->getTypeID() === SHIP_TYPE_FEDERAL_ULTIMATUM;
738
+			   $this->getTypeID() === SHIP_TYPE_FEDERAL_WARRANT ||
739
+			   $this->getTypeID() === SHIP_TYPE_FEDERAL_ULTIMATUM;
740 740
 	}
741 741
 
742 742
 	public function isUnderground(): bool {
743 743
 		return $this->getTypeID() === SHIP_TYPE_THIEF ||
744
-		       $this->getTypeID() === SHIP_TYPE_ASSASSIN ||
745
-		       $this->getTypeID() === SHIP_TYPE_DEATH_CRUISER;
744
+			   $this->getTypeID() === SHIP_TYPE_ASSASSIN ||
745
+			   $this->getTypeID() === SHIP_TYPE_DEATH_CRUISER;
746 746
 	}
747 747
 
748 748
 	public function shootPlayers(array $targetPlayers): array {
Please login to merge, or discard this patch.