Skip to content

Commit e0e4893

Browse files
Roman SyroeshkoRoman Syroeshko
authored andcommitted
https://github.com/PHPOffice/PHPWord/issues/46
Boolean values now meet PHP-FIG.
1 parent 9f434c7 commit e0e4893

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Classes/PHPWord/Template.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ public function applyXslStyleSheet(&$xslDOMDocument, $xslOptions = array(), $xsl
8989

9090
$processor->importStylesheet($xslDOMDocument);
9191

92-
if ($processor->setParameter($xslOptionsURI, $xslOptions) === \FALSE) {
92+
if ($processor->setParameter($xslOptionsURI, $xslOptions) === false) {
9393
throw new \Exception('Could not set values for the given XSL style sheet parameters.');
9494
}
9595

9696
$xmlDOMDocument = new \DOMDocument();
97-
if ($xmlDOMDocument->loadXML($this->_documentXML) === \FALSE) {
97+
if ($xmlDOMDocument->loadXML($this->_documentXML) === false) {
9898
throw new \Exception('Could not load XML from the given template.');
9999
}
100100

101101
$xmlTransformed = $processor->transformToXml($xmlDOMDocument);
102-
if ($xmlTransformed === \FALSE) {
102+
if ($xmlTransformed === false) {
103103
throw new \Exception('Could not transform the given XML document.');
104104
}
105105

0 commit comments

Comments
 (0)