| Percentage | Lines | ||
|---|---|---|---|
| GuestIdentity |
|
100 % | 5 |
| GuestIdentityFactory |
|
100 % | 5 |
| AfterLogout |
|
100 % | 9 |
| BeforeLogin |
|
100 % | 21 |
| AfterLogin |
|
100 % | 9 |
| UserAuth |
|
100 % | 39 |
| BeforeLogout |
|
100 % | 21 |
| CurrentUser |
|
100 % | 352 |
| LoginMiddleware |
|
100 % | 37 |
| CookieLoginMiddleware |
|
100 % | 112 |
| CRAP Score | Lines | ||
|---|---|---|---|
| CurrentUser::getSavedId() | 11 | 24 | |
| CookieLoginMiddleware::authenticateUserByCookieFromRequest() | 10 | 54 | |
| CookieLoginMiddleware::process() | 8 | 23 | |
| CurrentUser::saveId() | 5 | 24 | |
| LoginMiddleware::process() | 4 | 19 | |
| CurrentUser::logout() | 3 | 14 | |
| CurrentUser::getIdentity() | 3 | 16 | |
| CurrentUser::getExpire() | 3 | 13 | |
| CurrentUser::getExpireAbsolute() | 3 | 13 | |
| CookieLogin::addCookie() | 3 | 20 | |