Code

Rating   Name Duplication Size Complexity CRAP Changes Bugs Features
B Adapters\GuzzleMiddleware::__invoke() 0 14 4 4 0 0 0
A AvailabilityStrategy\TimeBackoff::isAvailable() 0 10 4 4 0 0 0
A FactoryTest::it_creates_a_default_circuit_breaker() 0 13 1 ? 0 0 0
A CircuitBreaker\CircuitBreaker::__construct() 0 2 1 1 0 0 0
A APCuStorage::keyForStrategyData() 0 1 1 1 0 0 0
A CircuitBreakerTest::it_throw_custom_exceptions_from_storage_increment_failures() 0 12 1 ? 0 0 0
A GuzzleMiddlewareTest::it_reports_failed_request() 0 10 1 ? 0 0 0
A InMemoryStorage::numberOfFailures() 0 3 2 2 0 0 0
A AvailabilityStrategy\TimeBackoff::__construct() 0 5 1 1 0 0 0
A Adapters\APCuStorage::getStrategyData() 0 1 1 1 0 0 0
A CircuitBreakerTest::it_delegates_to_storage_counter_for_successes() 0 7 1 ? 0 0 0
A AvailabilityStrategy\TimeBackoffTest::setUp() 0 9 1 ? 0 0 0
A TimeBackoffTest::it_no_wait_longer_than_max_wait_time() 0 5 1 ? 0 0 0
A AvailabilityStrategy\TimeBackoff::saveAttempt() 0 11 1 1 0 0 0
A GuzzleMiddlewareTest::it_reports_successes() 0 10 1 ? 0 0 0