| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 56 | protected function getAuthModelName() | ||
| 57 |     { | ||
| 58 |         if (config('comments.user_model')) { | ||
| 59 |             return config('comments.user_model'); | ||
| 60 | } | ||
| 61 | |||
| 62 |         if (!is_null(config('auth.providers.users.model'))) { | ||
| 63 |             return config('auth.providers.users.model'); | ||
| 64 | } | ||
| 65 | |||
| 66 |         throw new Exception('Could not determine the commentator model name.'); | ||
| 67 | } | ||
| 68 | |||
| 70 |