We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
18 | public function build(SmrAccount $account): never { |
||
19 | //get our variables |
||
20 | $game_id = $this->gameID; |
||
21 | $hardware_id = $this->hardwareTypeID; |
||
22 | $max_amount = $this->maxAmount; |
||
23 | $account_id = $this->accountID; |
||
24 | |||
25 | //update it so they arent cheating |
||
26 | $db = Database::getInstance(); |
||
27 | $db->write('UPDATE ship_has_hardware ' . |
||
28 | 'SET amount = ' . $db->escapeNumber($max_amount) . ' ' . |
||
29 | 'WHERE game_id = ' . $db->escapeNumber($game_id) . ' AND ' . |
||
30 | 'account_id = ' . $db->escapeNumber($account_id) . ' AND ' . |
||
31 | 'hardware_type_id = ' . $db->escapeNumber($hardware_id)); |
||
32 | |||
33 | //now erdirect back to page |
||
34 | $container = new CheatingShipCheck(); |
||
35 | $container->go(); |
||
36 | } |
||
39 |