Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
41 | public function shouldNotifyChange(Status $current, Status $newStatus): bool |
||
42 | 1 | { |
|
43 | $current = (int) ceil(round($current->getRatio(), $this->precision) / $this->ratio); |
||
44 | 1 | $new = (int) ceil(round($newStatus->getRatio(), $this->precision) / $this->ratio); |
|
45 | 1 | return $current !== $new; |
|
46 | 1 | } |
|
58 |