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/composer/phpstan/ph... ( 0da3cc )
by
unknown
06:12
created
test/SmrTest/lib/DefaultGame/SmrPlanetIntegrationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,13 +229,13 @@
 block discarded – undo
229 229
 		$planet->increaseBuilding(PLANET_HANGAR, 4);
230 230
 		$this->assertTrue($planet->hasBuilding(PLANET_HANGAR));
231 231
 		$this->assertSame(4, $planet->getBuilding(PLANET_HANGAR));
232
-		$this->assertSame(4/3, $planet->getLevel());
232
+		$this->assertSame(4 / 3, $planet->getLevel());
233 233
 
234 234
 		// Destroy some hangars
235 235
 		$planet->destroyBuilding(PLANET_HANGAR, 2);
236 236
 		$this->assertTrue($planet->hasBuilding(PLANET_HANGAR));
237 237
 		$this->assertSame(2, $planet->getBuilding(PLANET_HANGAR));
238
-		$this->assertSame(2/3, $planet->getLevel());
238
+		$this->assertSame(2 / 3, $planet->getLevel());
239 239
 	}
240 240
 
241 241
 	public function test_defenses() : void {
Please login to merge, or discard this patch.
src/lib/Default/AbstractSmrPlayer.class.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1678,7 +1678,7 @@  discard block
 block discarded – undo
1678 1678
 			throw new Smr\Exceptions\UserError('The saved sector must be in the box!');
1679 1679
 		}
1680 1680
 
1681
-		$storedDestinations =& $this->getStoredDestinations();
1681
+		$storedDestinations = & $this->getStoredDestinations();
1682 1682
 		foreach ($storedDestinations as &$sd) {
1683 1683
 			if ($sd['SectorID'] == $sectorID) {
1684 1684
 				$sd['OffsetTop'] = $offsetTop;
@@ -2005,13 +2005,13 @@  discard block
 block discarded – undo
2005 2005
 			$dbResult = $this->db->read('SELECT type,amount FROM player_hof WHERE ' . $this->SQL);
2006 2006
 			$this->HOF = array();
2007 2007
 			foreach ($dbResult->records() as $dbRecord) {
2008
-				$hof =& $this->HOF;
2008
+				$hof = & $this->HOF;
2009 2009
 				$typeList = explode(':', $dbRecord->getString('type'));
2010 2010
 				foreach ($typeList as $type) {
2011 2011
 					if (!isset($hof[$type])) {
2012 2012
 						$hof[$type] = array();
2013 2013
 					}
2014
-					$hof =& $hof[$type];
2014
+					$hof = & $hof[$type];
2015 2015
 				}
2016 2016
 				$hof = $dbRecord->getFloat('amount');
2017 2017
 			}
@@ -2090,8 +2090,8 @@  discard block
 block discarded – undo
2090 2090
 		}
2091 2091
 		self::$HOFVis[$hofType] = $visibility;
2092 2092
 
2093
-		$hof =& $this->HOF;
2094
-		$hofChanged =& $this->hasHOFChanged;
2093
+		$hof = & $this->HOF;
2094
+		$hofChanged = & $this->hasHOFChanged;
2095 2095
 		$new = false;
2096 2096
 		foreach ($typeList as $type) {
2097 2097
 			if (!isset($hofChanged[$type])) {
@@ -2101,8 +2101,8 @@  discard block
 block discarded – undo
2101 2101
 				$hof[$type] = array();
2102 2102
 				$new = true;
2103 2103
 			}
2104
-			$hof =& $hof[$type];
2105
-			$hofChanged =& $hofChanged[$type];
2104
+			$hof = & $hof[$type];
2105
+			$hofChanged = & $hofChanged[$type];
2106 2106
 		}
2107 2107
 		if ($hofChanged == null) {
2108 2108
 			$hofChanged = self::HOF_CHANGED;
@@ -2741,7 +2741,7 @@  discard block
 block discarded – undo
2741 2741
 			'Starting Sector' => $this->getSectorID()
2742 2742
 		);
2743 2743
 
2744
-		$this->missions[$missionID] =& $mission;
2744
+		$this->missions[$missionID] = & $mission;
2745 2745
 		$this->setupMissionStep($missionID);
2746 2746
 		$this->rebuildMission($missionID);
2747 2747
 
@@ -2791,7 +2791,7 @@  discard block
 block discarded – undo
2791 2791
 
2792 2792
 	public function claimMissionReward(int $missionID) : string {
2793 2793
 		$this->getMissions();
2794
-		$mission =& $this->missions[$missionID];
2794
+		$mission = & $this->missions[$missionID];
2795 2795
 		if ($mission === false) {
2796 2796
 			throw new Exception('Unknown mission: ' . $missionID);
2797 2797
 		}
Please login to merge, or discard this patch.
src/lib/Smr/VoteSite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  */
10 10
 class VoteSite {
11 11
 
12
-	private static ?array $CACHE_TIMEOUTS = null;
12
+	private static ? array $CACHE_TIMEOUTS = null;
13 13
 
14 14
 	// NOTE: link IDs should never be changed!
15 15
 	const LINK_ID_TWG = 3;
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/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
  * Can be used to convert any type of notice into an exception.
120 120
  */
121 121
 function exception_error_handler($errno, $errstr, $errfile, $errline) : bool {
122
-	if (!(error_reporting() & $errno)) {
122
+	if (!(error_reporting()&$errno)) {
123 123
 		return false; // error is suppressed
124 124
 	}
125 125
 	throw new ErrorException($errstr, $errno, E_ERROR, $errfile, $errline);
Please login to merge, or discard this patch.