| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | private function rating(): int |
||
| 38 | { |
||
| 39 | $loginRatio = Decimals::div($this->user->loginCount, $this->user->daysSinceMember); |
||
| 40 | $loginRating = Decimals::mul(self::LoginRating, $loginRatio); |
||
| 41 | $actionRatio = Decimals::div($this->user->actionLogCount, $this->user->daysSinceMember); |
||
| 42 | $actionRating = Decimals::mul(self::ActionRating, $actionRatio); |
||
| 43 | $total = Decimals::add($loginRating, $actionRating); |
||
| 44 | |||
| 45 | return (int) Decimals::div($total, 100); |
||
| 46 | } |
||
| 48 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.