library/Odesk/Phystrix/CircuitBreaker.php
public function allowRequest()
    {
        if ($this->config->get('circuitBreaker')->get('forceOpen')) {
            return false;
        }
        if ($this->config->get('circuitBreaker')->get('forceClosed')) {
            return true;
        }

        return !$this->isOpen() || $this->allowSingleTest();
    }
public function allowRequest()
    {
        if ($this->config->get('circuitBreaker')->get('forceOpen')) {
            return false;
        }
        if ($this->config->get('circuitBreaker')->get('forceClosed')) {
            return true;
        }

        return !$this->isOpen() || $this->allowSingleTest();
    }
public function allowRequest ( ) { if ( $ this -> config -> get ( 'circuitBreaker' ) -> get ( 'forceOpen' ) ) { return false ; } if ( $ this -> config -> get ( 'circuitBreaker' ) -> get ( 'forceClosed' ) ) { return true ; } return ! $ this -> isOpen ( ) || $ this -> allowSingleTest ( ) ; }
Whether the request is allowed

@return boolean
Whether the request is allowed