src/Whip.php
private function isMethodUsable($key, $ipAddress)
    {
        if (!($key & $this->enabled)) {
            return false;
        }
        if (!isset($this->whitelist[$key])) {
            return true;
        }
        return $this->whitelist[$key]->isIpWhitelisted($ipAddress);
    }
private function isMethodUsable($key, $ipAddress)
    {
        if (!($key & $this->enabled)) {
            return false;
        }
        if (!isset($this->whitelist[$key])) {
            return true;
        }
        return $this->whitelist[$key]->isIpWhitelisted($ipAddress);
    }
private function isMethodUsable ( $ key , $ ipAddress ) { if ( ! ( $ key & $ this -> enabled ) ) { return false ; } if ( ! isset ( $ this -> whitelist [ $ key ] ) ) { return true ; } return $ this -> whitelist [ $ key ] -> isIpWhitelisted ( $ ipAddress ) ; }
Returns whether or not the given method is enabled and usable.

This method checks if the method is enabled and whether the method's data
is usable given it's IP whitelist.

@param string $key The source key.
@param string $ipAddress The IP address.
@return boolean Returns true if the IP address is whitelisted and false
otherwise. Returns true if the source does not have a whitelist
specified.
Returns whether or not the given method is enabled and usable .