| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function build(): void |
||
| 30 | { |
||
| 31 | $this->user->loginCount = $this->user->logins()->count(); |
||
|
|
|||
| 32 | $this->user->actionLogCount = $this->user->actionLogs()->count(); |
||
| 33 | $this->user->daysSinceMember = max(Carbon::parse($this->user->created_at)->diffInDays(), 1); |
||
| 34 | $this->user->rating = $this->rating(); |
||
| 35 | } |
||
| 48 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.