Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function hasBeenAlreadyProcessed($isPlayer, $isFaction) |
||
10 | { |
||
11 | $statement = $this->connection->prepare( |
||
12 | 'SELECT * FROM ranking WHERE player = :is_player AND faction = :is_faction AND dRanking >= CURDATE()' |
||
13 | ); |
||
14 | $statement->execute([ |
||
15 | 'is_player' => (int) $isPlayer, |
||
16 | 'is_faction' => (int) $isFaction |
||
17 | ]); |
||
18 | return $statement->rowCount() > 0; |
||
19 | } |
||
20 | |||
43 | } |