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 ApiAuthControllerTest::setUpBeforeClass() 0 4 1 ? 2 1 0
A ApiAuthServiceTest::testGenerateKeyShouldReturnRandomKey() 0 5 1 ? 2 0 0
A ApiAuth_UserKeyRecord::defineAttributes() 8 5 1 ? 1 0 0
A ApiAuthServiceTest::setMockUserSessionService() 15 10 1 ? 2 0 0
A Craft\ApiAuthController::init() 0 4 2 6 2 0 1
A ApiAuthControllerTest::testApiAuthControllerResetPasswordShouldReturnSuccessMessageWhenUserNotFound() 0 8 1 ? 1 0 1
A ApiAuthServiceTest::testIsOptionsRequestShouldReturnFalseByDefault() 0 4 1 ? 1 0 1
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