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 (#1004)
by Dan
06:40
created
src/lib/Default/bar.inc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	// Delete all tickets and re-insert the winning ticket
33 33
 	$db->query('DELETE FROM player_has_ticket WHERE game_id = ' . $db->escapeNumber($gameID));
34 34
 	$db->query('INSERT INTO player_has_ticket (game_id, account_id, time, prize) '
35
-	           .'VALUES (' . $db->escapeNumber($gameID) . ',' . $db->escapeNumber($winner_id) . ',\'0\',' . $db->escapeNumber($lottoInfo['Prize']) . ')');
35
+			   .'VALUES (' . $db->escapeNumber($gameID) . ',' . $db->escapeNumber($winner_id) . ',\'0\',' . $db->escapeNumber($lottoInfo['Prize']) . ')');
36 36
 
37 37
 	$db->unlock();
38 38
 
Please login to merge, or discard this patch.
src/lib/Default/DummyShip.class.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	}
17 17
 
18 18
 	protected function doFullUNO() {
19
-		foreach($this->getMaxHardware() as $hardwareTypeID => $max) {
19
+		foreach ($this->getMaxHardware() as $hardwareTypeID => $max) {
20 20
 			$this->hardware[$hardwareTypeID] = $max;
21 21
 			$this->oldHardware[$hardwareTypeID] = $max;
22 22
 		}
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	public function getIllusionShip() {
49
-		if(!isset($this->illusionShip)) {
50
-			$this->illusionShip=false;
49
+		if (!isset($this->illusionShip)) {
50
+			$this->illusionShip = false;
51 51
 		}
52 52
 		return $this->illusionShip;
53 53
 	}
@@ -57,20 +57,20 @@  discard block
 block discarded – undo
57 57
 		$db = MySqlDatabase::getInstance();
58 58
 		$db->query('REPLACE INTO cached_dummys ' .
59 59
 					'(type, id, info) ' .
60
-					'VALUES (\'DummyShip\', '.$db->escapeString($this->getPlayer()->getPlayerName()).', '.$db->escapeString($cache).')');
60
+					'VALUES (\'DummyShip\', ' . $db->escapeString($this->getPlayer()->getPlayerName()) . ', ' . $db->escapeString($cache) . ')');
61 61
 		unserialize($cache);
62 62
 	}
63 63
 
64 64
 	public static function getCachedDummyShip(AbstractSmrPlayer $player) {
65
-		if(!isset(self::$CACHED_DUMMY_SHIPS[$player->getPlayerName()])) {
65
+		if (!isset(self::$CACHED_DUMMY_SHIPS[$player->getPlayerName()])) {
66 66
 			$db = MySqlDatabase::getInstance();
67 67
 			$db->query('SELECT info FROM cached_dummys
68 68
 						WHERE type = \'DummyShip\'
69 69
 						AND id = ' . $db->escapeString($player->getPlayerName()) . ' LIMIT 1');
70
-			if($db->nextRecord()) {
70
+			if ($db->nextRecord()) {
71 71
 				$return = unserialize($db->getField('info'));
72 72
 				$return->regenerate($player);
73
-				self::$CACHED_DUMMY_SHIPS[$player->getPlayerName()] =& $return;
73
+				self::$CACHED_DUMMY_SHIPS[$player->getPlayerName()] = & $return;
74 74
 			} else {
75 75
 				self::$CACHED_DUMMY_SHIPS[$player->getPlayerName()] = new DummyShip($player);
76 76
 			}
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		$db->query('SELECT id FROM cached_dummys
84 84
 					WHERE type = \'DummyShip\'');
85 85
 		$dummyNames = array();
86
-		while($db->nextRecord()) {
86
+		while ($db->nextRecord()) {
87 87
 			$dummyNames[] = $db->getField('id');
88 88
 		}
89 89
 		return $dummyNames;
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
 
94 94
 	public function __sleep() {
95
-		return array('gameID','weapons');
95
+		return array('gameID', 'weapons');
96 96
 	}
97 97
 
98 98
 	public function __wakeup() {
Please login to merge, or discard this patch.