src/Router/RouterRequest.php
public static function validMethod($data, $method)
    {
        $valid = false;
        if (strstr($data, '|')) {
            foreach (explode('|', $data) as $value) {
                $valid = self::checkMethods($value, $method);
                if ($valid) {
                    break;
                }
            }
        } else {
            $valid = self::checkMethods($data, $method);
        }

        return $valid;
    }
public static function validMethod($data, $method)
    {
        $valid = false;
        if (strstr($data, '|')) {
            foreach (explode('|', $data) as $value) {
                $valid = self::checkMethods($value, $method);
                if ($valid) {
                    break;
                }
            }
        } else {
            $valid = self::checkMethods($data, $method);
        }

        return $valid;
    }
public static function validMethod ( $ data , $ method ) { $ valid = false ; if ( strstr ( $ data , '|' ) ) { foreach ( explode ( '|' , $ data ) as $ value ) { $ valid = self :: checkMethods ( $ value , $ method ) ; if ( $ valid ) { break ; } } } else { $ valid = self :: checkMethods ( $ data , $ method ) ; } return $ valid ; }
Request method validation

@param string $data
@param string $method

@return bool
Request method validation