Code

Rating   Name Duplication Size Complexity CRAP Changes Bugs Features
B ApiAuthController::actionAuthenticate() 0 21 4 4 8 2 1
B ApiAuthControllerTest::testApiAuthControllerAuthenticateShouldReturnKey() 0 17 1 ? 2 1 0
A ApiAuthControllerTest::setMockRequestService() 0 15 3 ? 2 0 1
A AbstractAuthorizedApiController::authorizeApi() 0 10 4 20 1 0 1
A ApiAuthControllerTest::setMockUserSessionService() 0 14 2 ? 1 0 0
A ApiAuthService::authenticateKey() 0 5 3 3 4 0 0
A ApiAuthControllerTest::setMockApiAuthService() 0 10 1 ? 1 0 0
A ApiAuthServiceTest::getMockUser() 0 9 1 ? 3 0 0
A ApiAuthController::actionResetPassword() 0 11 3 3 2 1 1
A ApiAuthControllerTest::getMockApiAuthController() 0 10 1 ? 1 0 0
A ApiAuthServiceTest::testSetCorsHeaderShouldSetCorsHeaders() 0 8 1 ? 1 0 1
A ApiAuthControllerTest::testApiAuthControllerAuthenticateShouldReturnInternalServerErrorWhenKeyCannotBeSaved() 0 11 1 ? 1 0 0
A ApiAuthServiceTest::testAuthenticateKeyShouldLoginUserWhenKeyValid() 0 11 1 ? 3 0 0
A Craft\ApiAuthService::saveKey() 0 6 1 1 1 0 0
A ApiAuthControllerTest::setMockUsersService() 15 10 1 ? 1 0 1