original_string: public function isPosted($key = null)
      {
          if (isset($key)) {
              $value = $this->request->post($key, null);
              return isset($value);
          }
  
          return $this->server->requestMethod() === 'POST';
      }
code: public function isPosted($key = null)
      {
          if (isset($key)) {
              $value = $this->request->post($key, null);
              return isset($value);
          }
  
          return $this->server->requestMethod() === 'POST';
      }
code_tokens: public function isPosted ( $ key = null ) { if ( isset ( $ key ) ) { $ value = $ this -> request -> post ( $ key , null ) ; return isset ( $ value ) ; } return $ this -> server -> requestMethod ( ) === 'POST' ; }
docstring: Whether the key exists in POST query or current query is POST type
  @param string|null $key
  @return boolean
docstring_tokens: Whether the key exists in POST query or current query is POST type