original_string: 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;
  		}
  
  	}
code: 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;
  		}
  
  	}
code_tokens: 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 ; } }
docstring: Check request of Patch method
  
  @return bool
docstring_tokens: Check request of Patch method