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
Pull Request — master (#931)
by
unknown
03:40
created
lib/Default/AbstractSmrPlayer.class.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 	/**
269 269
 	 * Insert a new player into the database. Returns the new player object.
270 270
 	 */
271
-	public static function createPlayer($accountID, $gameID, $playerName, $raceID, $isNewbie, $npc=false) {
271
+	public static function createPlayer($accountID, $gameID, $playerName, $raceID, $isNewbie, $npc = false) {
272 272
 		$db = new SmrMySqlDatabase();
273 273
 		$db->lockTable('player');
274 274
 
@@ -1512,7 +1512,7 @@  discard block
 block discarded – undo
1512 1512
 	public function decreaseRelationsByTrade($numGoods, $raceID) {
1513 1513
 		if ($raceID == RACE_NEUTRAL) {
1514 1514
 			$relations = ICeil(min($numGoods, 150) / 30);
1515
-		}else{
1515
+		} else {
1516 1516
 			$relations = ICeil(min($numGoods, 300) / 30);
1517 1517
 		}
1518 1518
 		$this->decreaseRelations($relations, $raceID);
@@ -1711,7 +1711,7 @@  discard block
 block discarded – undo
1711 1711
 			create_error('The saved sector must be in the box!');
1712 1712
 		}
1713 1713
 
1714
-		$storedDestinations =& $this->getStoredDestinations();
1714
+		$storedDestinations = & $this->getStoredDestinations();
1715 1715
 		foreach ($storedDestinations as &$sd) {
1716 1716
 			if ($sd['SectorID'] == $sectorID) {
1717 1717
 				$sd['OffsetTop'] = $offsetTop;
@@ -2038,13 +2038,13 @@  discard block
 block discarded – undo
2038 2038
 			$this->db->query('SELECT type,amount FROM player_hof WHERE ' . $this->SQL);
2039 2039
 			$this->HOF = array();
2040 2040
 			while ($this->db->nextRecord()) {
2041
-				$hof =& $this->HOF;
2041
+				$hof = & $this->HOF;
2042 2042
 				$typeList = explode(':', $this->db->getField('type'));
2043 2043
 				foreach ($typeList as $type) {
2044 2044
 					if (!isset($hof[$type])) {
2045 2045
 						$hof[$type] = array();
2046 2046
 					}
2047
-					$hof =& $hof[$type];
2047
+					$hof = & $hof[$type];
2048 2048
 				}
2049 2049
 				$hof = $this->db->getFloat('amount');
2050 2050
 			}
@@ -2123,8 +2123,8 @@  discard block
 block discarded – undo
2123 2123
 		}
2124 2124
 		self::$HOFVis[$hofType] = $visibility;
2125 2125
 
2126
-		$hof =& $this->HOF;
2127
-		$hofChanged =& $this->hasHOFChanged;
2126
+		$hof = & $this->HOF;
2127
+		$hofChanged = & $this->hasHOFChanged;
2128 2128
 		$new = false;
2129 2129
 		foreach ($typeList as $type) {
2130 2130
 			if (!isset($hofChanged[$type])) {
@@ -2134,8 +2134,8 @@  discard block
 block discarded – undo
2134 2134
 				$hof[$type] = array();
2135 2135
 				$new = true;
2136 2136
 			}
2137
-			$hof =& $hof[$type];
2138
-			$hofChanged =& $hofChanged[$type];
2137
+			$hof = & $hof[$type];
2138
+			$hofChanged = & $hofChanged[$type];
2139 2139
 		}
2140 2140
 		if ($hofChanged == null) {
2141 2141
 			$hofChanged = self::HOF_CHANGED;
@@ -2738,7 +2738,7 @@  discard block
 block discarded – undo
2738 2738
 	}
2739 2739
 
2740 2740
 	private function setupMissionStep($missionID) {
2741
-		$mission =& $this->missions[$missionID];
2741
+		$mission = & $this->missions[$missionID];
2742 2742
 		if ($mission['On Step'] >= count(MISSIONS[$missionID]['Steps'])) {
2743 2743
 			// Nothing to do if this mission is already completed
2744 2744
 			return;
@@ -2787,7 +2787,7 @@  discard block
 block discarded – undo
2787 2787
 			'Starting Sector' => $this->getSectorID()
2788 2788
 		);
2789 2789
 
2790
-		$this->missions[$missionID] =& $mission;
2790
+		$this->missions[$missionID] = & $mission;
2791 2791
 		$this->setupMissionStep($missionID);
2792 2792
 		$this->rebuildMission($missionID);
2793 2793
 
@@ -2837,7 +2837,7 @@  discard block
 block discarded – undo
2837 2837
 
2838 2838
 	public function claimMissionReward($missionID) {
2839 2839
 		$this->getMissions();
2840
-		$mission =& $this->missions[$missionID];
2840
+		$mission = & $this->missions[$missionID];
2841 2841
 		if ($mission === false) {
2842 2842
 			throw new Exception('Unknown mission: ' . $missionID);
2843 2843
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1512,7 +1512,7 @@
 block discarded – undo
1512 1512
 	public function decreaseRelationsByTrade($numGoods, $raceID) {
1513 1513
 		if ($raceID == RACE_NEUTRAL) {
1514 1514
 			$relations = ICeil(min($numGoods, 150) / 30);
1515
-		}else{
1515
+		} else{
1516 1516
 			$relations = ICeil(min($numGoods, 300) / 30);
1517 1517
 		}
1518 1518
 		$this->decreaseRelations($relations, $raceID);
Please login to merge, or discard this patch.