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 ApiAuthServiceTest::testAuthenticateKeyShouldReturnFalseWhenKeyExpired() 0 9 1 ? 3 0 0
A ApiAuth_UserKeyRecord::defineRelations() 0 3 1 ? 2 1 0
A ApiAuthControllerTest::setSimpleMockApiAuthService() 0 6 1 ? 1 1 0
A ApiAuthServiceTest::getMockUserKeyModel() 0 5 1 ? 3 0 0
A ApiAuthControllerTest::testApiAuthControllerResetPasswordShouldSendMailWhenUserFound() 0 12 1 ? 1 0 1
A ApiAuthServiceTest::testIsOptionsRequestShouldReturnTrueWhenOptionsRequest() 0 5 1 ? 1 0 1
A ApiAuthControllerTest::testApiAuthControllerAuthenticateShouldReturnBadCredentialsWhenLoginFails() 0 9 1 ? 2 1 0
A ApiAuthServiceTest::testAuthenticateKeyShouldReturnFalseWhenKeyNotFound() 0 4 1 ? 3 0 0
A ApiAuthService::authenticateKey() 0 5 3 3 4 0 0
A ApiAuthControllerTest::setMockApiAuthService() 0 10 1 ? 1 0 0