We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -20,8 +20,7 @@ |
||
| 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 | } |
@@ -4,8 +4,7 @@ |
||
| 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']); |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | AND receiver_delete = ' . $db->escapeBoolean(false) . ' |
| 129 | 129 | ORDER BY send_time DESC'); |
| 130 | 130 | foreach ($dbResult->records() as $dbRecord) { |
| 131 | - $groupBox =& $messageBox['GroupedMessages'][$dbRecord->getInt('sender_id')]; |
|
| 131 | + $groupBox = & $messageBox['GroupedMessages'][$dbRecord->getInt('sender_id')]; |
|
| 132 | 132 | // Limit the number of messages in each group |
| 133 | 133 | if (!isset($groupBox['Messages']) || count($groupBox['Messages']) < MESSAGE_SCOUT_GROUP_LIMIT) { |
| 134 | 134 | $groupBox['Messages'][] = displayMessage($dbRecord->getInt('message_id'), $dbRecord->getInt('account_id'), $dbRecord->getInt('sender_id'), $player->getGameID(), $dbRecord->getString('message_text'), $dbRecord->getInt('send_time'), $dbRecord->getBoolean('msg_read'), MSG_SCOUT, $player->getAccount()); |
@@ -229,13 +229,13 @@ |
||
| 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 { |