Boolean values now meet PHP-FIG.
This commit is contained in:
Roman Syroeshko 2014-03-02 10:06:27 -08:00
parent 9f434c7fa8
commit e0e48938fa
1 changed files with 3 additions and 3 deletions

View File

@ -89,17 +89,17 @@ class PHPWord_Template
$processor->importStylesheet($xslDOMDocument);
if ($processor->setParameter($xslOptionsURI, $xslOptions) === \FALSE) {
if ($processor->setParameter($xslOptionsURI, $xslOptions) === false) {
throw new \Exception('Could not set values for the given XSL style sheet parameters.');
}
$xmlDOMDocument = new \DOMDocument();
if ($xmlDOMDocument->loadXML($this->_documentXML) === \FALSE) {
if ($xmlDOMDocument->loadXML($this->_documentXML) === false) {
throw new \Exception('Could not load XML from the given template.');
}
$xmlTransformed = $processor->transformToXml($xmlDOMDocument);
if ($xmlTransformed === \FALSE) {
if ($xmlTransformed === false) {
throw new \Exception('Could not transform the given XML document.');
}