src/Router/RouterRequest.php
protected static function checkMethods($value, $method)
    {
        $valid = false;
        if ($value === 'AJAX' && self::isAjax() && $value === $method) {
            $valid = true;
        } elseif ($value === 'AJAXP' && self::isAjax() && $method === 'POST') {
            $valid = true;
        } elseif (in_array($value, explode('|', self::$validMethods)) && ($value === $method || $value === 'ANY')) {
            $valid = true;
        }

        return $valid;
    }
protected static function checkMethods($value, $method)
    {
        $valid = false;
        if ($value === 'AJAX' && self::isAjax() && $value === $method) {
            $valid = true;
        } elseif ($value === 'AJAXP' && self::isAjax() && $method === 'POST') {
            $valid = true;
        } elseif (in_array($value, explode('|', self::$validMethods)) && ($value === $method || $value === 'ANY')) {
            $valid = true;
        }

        return $valid;
    }
protected static function checkMethods ( $ value , $ method ) { $ valid = false ; if ( $ value === 'AJAX' && self :: isAjax ( ) && $ value === $ method ) { $ valid = true ; } elseif ( $ value === 'AJAXP' && self :: isAjax ( ) && $ method === 'POST' ) { $ valid = true ; } elseif ( in_array ( $ value , explode ( '|' , self :: $ validMethods ) ) && ( $ value === $ method || $ value === 'ANY' ) ) { $ valid = true ; } return $ valid ; }
check method valid

@param string $value
@param string $method

@return bool
check method valid