original_string: public function partialFormat($data, $nodeName = null)
      {
          if (!$nodeName) {
              $nodeName = $this->getNodeName($data);
          }
          $data = $this->parseData($data);
  
          if (is_scalar($data)) {
              return "<$nodeName>" . $this->parseScalarData($data) . "</$nodeName>";
          }
          return "<$nodeName>".$this->parseNonScalarData($data, $nodeName)."</$nodeName>";
      }
code: public function partialFormat($data, $nodeName = null)
      {
          if (!$nodeName) {
              $nodeName = $this->getNodeName($data);
          }
          $data = $this->parseData($data);
  
          if (is_scalar($data)) {
              return "<$nodeName>" . $this->parseScalarData($data) . "</$nodeName>";
          }
          return "<$nodeName>".$this->parseNonScalarData($data, $nodeName)."</$nodeName>";
      }
code_tokens: public function partialFormat ( $ data , $ nodeName = null ) { if ( ! $ nodeName ) { $ nodeName = $ this -> getNodeName ( $ data ) ; } $ data = $ this -> parseData ( $ data ) ; if ( is_scalar ( $ data ) ) { return "<$nodeName>" . $ this -> parseScalarData ( $ data ) . "</$nodeName>" ; } return "<$nodeName>" . $ this -> parseNonScalarData ( $ data , $ nodeName ) . "</$nodeName>" ; }
docstring: Format part of the data
  @param mixed $data The data to be serialised into xml
  @param string|null $nodeName The node currently being worked on
  @return string
docstring_tokens: Format part of the data