| Conditions | 2 |
| Paths | 2 |
| Total Lines | 5 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public static function getUserHomePage() |
||
| 36 | { |
||
| 37 | if (! $user = Auth::user()) return; |
||
| 38 | |||
| 39 | return HomePage::whereIn('role', $user->roles()->pluck('name'))->orderBy('priority')->first(); |
||
|
1 ignored issue
–
show
|
|||
| 40 | } |
||
| 42 |