src/Http/Filter.php
public function rules() {
		$args = array();

		foreach ( $this->rules as $arg => $validation ) {
			if ( ! $validation || ! is_string( $validation ) ) {
				continue;
			}

			$args[ $arg ] = $this->parse_validation( $validation );
		}

		return $args;
	}
public function rules() {
		$args = array();

		foreach ( $this->rules as $arg => $validation ) {
			if ( ! $validation || ! is_string( $validation ) ) {
				continue;
			}

			$args[ $arg ] = $this->parse_validation( $validation );
		}

		return $args;
	}
public function rules ( ) { $ args = array ( ) ; foreach ( $ this -> rules as $ arg => $ validation ) { if ( ! $ validation || ! is_string ( $ validation ) ) { continue ; } $ args [ $ arg ] = $ this -> parse_validation ( $ validation ) ; } return $ args ; }
Generates argument rules.

Returns an array matching the WP-API format for argument rules,
including sanitization, validation, required, or defaults.

@return array
Generates argument rules .