src/Control/CwpBasicAuthMiddleware.php
protected function ipMatchesWhitelist()
    {
        $whitelist = $this->getWhitelistedIps();
        // Continue if no whitelist is defined
        if (empty($whitelist)) {
            return false;
        }

        $userIp = $_SERVER['REMOTE_ADDR'];
        if (in_array($userIp, $whitelist)) {
            return true;
        }

        return false;
    }
protected function ipMatchesWhitelist()
    {
        $whitelist = $this->getWhitelistedIps();
        // Continue if no whitelist is defined
        if (empty($whitelist)) {
            return false;
        }

        $userIp = $_SERVER['REMOTE_ADDR'];
        if (in_array($userIp, $whitelist)) {
            return true;
        }

        return false;
    }
protected function ipMatchesWhitelist ( ) { $ whitelist = $ this -> getWhitelistedIps ( ) ; // Continue if no whitelist is defined if ( empty ( $ whitelist ) ) { return false ; } $ userIp = $ _SERVER [ 'REMOTE_ADDR' ] ; if ( in_array ( $ userIp , $ whitelist ) ) { return true ; } return false ; }
Check whether the current user's IP address is in the IP whitelist

@return bool
Check whether the current user s IP address is in the IP whitelist