Code

Rating   Name Duplication Size Complexity CRAP Changes Bugs Features
C RedisLockStrategy::__construct() 0 24 8 8.11 2 0 0
C RedisLockStrategy\RedisLockStrategy::acquire() 0 14 7 8.81 2 0 0
A RedisLockStrategyTest::shouldThrowExceptionBecauseConfigHasNoDatabase() 8 4 1 ? 0 0 0
A RedisLockStrategy\RedisLockStrategy::wait() 0 4 2 6 0 0 0
A Tests\RedisLockStrategyTest::setUp() 0 6 1 ? 3 0 1
A RedisLockStrategyTest::shouldConnectAndAcquireAExistingLock() 0 4 1 ? 3 1 0
A RedisLockStrategy::unlockAndSignal() 0 3 1 1 0 0 0
A RedisLockStrategyTest::tearDown() 0 3 1 ? 3 0 0
A RedisLockStrategyTest::shouldConnectAndAcquireALock() 13 7 1 ? 4 1 1
A RedisLockStrategyTest::getRedisClient() 0 5 1 ? 3 0 1
A RedisLockStrategyTest::shouldConnectAndCheckIfLockIsAcquired() 0 5 1 ? 3 1 1
A RedisLockStrategyTest::shouldThrowExceptionBecauseConfigIsNotAnArray() 0 3 1 ? 0 0 0
A RedisLockStrategy\RedisLockStrategy::release() 0 6 2 2 2 0 0
A RedisLockStrategyTest::shouldConnectAndDestroyALock() 13 7 1 ? 3 1 0
A RedisLockStrategyTest::shouldThrowExceptionBecauseConfigHasNoHost() 0 3 1 ? 0 0 0