| Percentage | Lines | ||
|---|---|---|---|
| UserRepository |
|
48 % | 62 |
| Authentication |
|
85 % | 58 |
| User |
|
94 % | 47 |
| AuthorizationTrait |
|
100 % | 21 |
| UnauthorizedException |
|
100 % | 8 |
| CRAP Score | Lines | ||
|---|---|---|---|
| UserRepository::read() | 6 | 7 | |
| Authentication::login() | 3 | 17 | |
| AuthorizationTrait::checkLogin() | 3 | 7 | |
| UserRepository::save() | 2 | 15 | |
| Authentication::logout() | 2 | 4 | |
| Authentication::register() | 2 | 9 | |
| User::setId() | 2 | 7 | |
| UserRepository::readAll() | 2 | 9 | |
| UserRepository::remove() | 2 | 5 | |
| UnauthorizedException::__construct() | 2 | 6 | |