code: private function createDiffElement(\DOMDocument $dom, array $fixResult)
      {
          $diffXML = $dom->createElement('diff');
          $diffXML->appendChild($dom->createCDATASection($fixResult['diff']));
  
          return $diffXML;
      }
docs: @param \DOMDocument $dom
  @param array        $fixResult
  
  @return \DOMElement