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