We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | public function buildBetaFunctionsProcessor(AbstractSmrPlayer $player): void { |
||
| 12 | $account_id = $player->getAccountID(); |
||
| 13 | $game_id = $player->getGameID(); |
||
| 14 | // delete all entries from the player_visited_sector/port table |
||
| 15 | $db = Database::getInstance(); |
||
| 16 | $db->write('DELETE FROM player_visited_sector WHERE ' . $player->getSQL()); |
||
| 17 | |||
| 18 | // add port infos |
||
| 19 | $dbResult = $db->read('SELECT * FROM port WHERE game_id = ' . $db->escapeNumber($game_id)); |
||
| 20 | foreach ($dbResult->records() as $dbRecord) { |
||
| 21 | $port = SmrPort::getPort($game_id, $dbRecord->getInt('sector_id'), false, $dbRecord); |
||
| 22 | $port->addCachePort($account_id); |
||
| 23 | } |
||
| 27 |