From e0e48938fa8dc6f52133c85466ee2cd6b1ca1cbd Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Sun, 2 Mar 2014 10:06:27 -0800 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/46 Boolean values now meet PHP-FIG. --- Classes/PHPWord/Template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/PHPWord/Template.php b/Classes/PHPWord/Template.php index 425bd413..039b350f 100755 --- a/Classes/PHPWord/Template.php +++ b/Classes/PHPWord/Template.php @@ -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.'); }