In other parts of the file there is no blank line between and the
assignment and check for the return value of a function call.
Use the same style everywhere.
     }
 
     $output = $xsltProcessor->transformToXML($xmlDoc);
     }
 
     $output = $xsltProcessor->transformToXML($xmlDoc);
     if (FALSE === $output) {
       trigger_error('XSL transformation failed.', E_USER_ERROR);
       return NULL;
     }
     if (FALSE === $output) {
       trigger_error('XSL transformation failed.', E_USER_ERROR);
       return NULL;
     }