public function isPatch() {
		if ( isset( $_SERVER['REQUEST_METHOD'] ) ) {

			if ( $_SERVER['REQUEST_METHOD'] == 'PATCH' || ( isset( $_POST['_METHOD'] ) && $_POST['_METHOD'] == 'PATCH' ) ) {
				parse_str( file_get_contents( "php://input" ), $vars );

				if ( isset( $vars['_METHOD'] ) ) {
					unset( $vars['_METHOD'] );
				}

				$GLOBALS['_PATCH'] = $_PATCH = $vars;

				return TRUE;
			} else {
				return FALSE;
			}

		} else {
			return FALSE;
		}

	}
public function isPatch() {
		if ( isset( $_SERVER['REQUEST_METHOD'] ) ) {

			if ( $_SERVER['REQUEST_METHOD'] == 'PATCH' || ( isset( $_POST['_METHOD'] ) && $_POST['_METHOD'] == 'PATCH' ) ) {
				parse_str( file_get_contents( "php://input" ), $vars );

				if ( isset( $vars['_METHOD'] ) ) {
					unset( $vars['_METHOD'] );
				}

				$GLOBALS['_PATCH'] = $_PATCH = $vars;

				return TRUE;
			} else {
				return FALSE;
			}

		} else {
			return FALSE;
		}

	}
public function isPatch ( ) { if ( isset ( $ _SERVER [ 'REQUEST_METHOD' ] ) ) { if ( $ _SERVER [ 'REQUEST_METHOD' ] == 'PATCH' || ( isset ( $ _POST [ '_METHOD' ] ) && $ _POST [ '_METHOD' ] == 'PATCH' ) ) { parse_str ( file_get_contents ( "php://input" ) , $ vars ) ; if ( isset ( $ vars [ '_METHOD' ] ) ) { unset ( $ vars [ '_METHOD' ] ) ; } $ GLOBALS [ '_PATCH' ] = $ _PATCH = $ vars ; return TRUE ; } else { return FALSE ; } } else { return FALSE ; } }
Check request of Patch method

@return bool
Check request of Patch method