@@ -64,7 +64,7 @@ public function __construct($strFilename)
64
64
if ($ this ->_tempFileName !== false ) {
65
65
// Copy the source File to the temp File
66
66
if (!copy ($ strFilename , $ this ->_tempFileName )) {
67
- throw new PHPWord_Exception (' Could not copy the template from ' . $ strFilename . ' to ' . $ this ->_tempFileName . ' . ' );
67
+ throw new PHPWord_Exception (" Could not copy the template from { $ strFilename} to { $ this ->_tempFileName } . " );
68
68
}
69
69
70
70
$ this ->_objZip = new ZipArchive ();
@@ -85,25 +85,25 @@ public function __construct($strFilename)
85
85
*/
86
86
public function applyXslStyleSheet (&$ xslDOMDocument , $ xslOptions = array (), $ xslOptionsURI = '' )
87
87
{
88
- $ processor = new \XSLTProcessor ();
88
+ $ processor = new \XSLTProcessor ();
89
89
90
- $ processor ->importStylesheet ($ xslDOMDocument );
90
+ $ processor ->importStylesheet ($ xslDOMDocument );
91
91
92
- if ($ processor ->setParameter ($ xslOptionsURI , $ xslOptions ) === false ) {
93
- throw new \Exception ('Could not set values for the given XSL style sheet parameters. ' );
94
- }
92
+ if ($ processor ->setParameter ($ xslOptionsURI , $ xslOptions ) === false ) {
93
+ throw new \Exception ('Could not set values for the given XSL style sheet parameters. ' );
94
+ }
95
95
96
- $ xmlDOMDocument = new \DOMDocument ();
97
- if ($ xmlDOMDocument ->loadXML ($ this ->_documentXML ) === false ) {
98
- throw new \Exception ('Could not load XML from the given template. ' );
99
- }
96
+ $ xmlDOMDocument = new \DOMDocument ();
97
+ if ($ xmlDOMDocument ->loadXML ($ this ->_documentXML ) === false ) {
98
+ throw new \Exception ('Could not load XML from the given template. ' );
99
+ }
100
100
101
- $ xmlTransformed = $ processor ->transformToXml ($ xmlDOMDocument );
102
- if ($ xmlTransformed === false ) {
103
- throw new \Exception ('Could not transform the given XML document. ' );
104
- }
101
+ $ xmlTransformed = $ processor ->transformToXml ($ xmlDOMDocument );
102
+ if ($ xmlTransformed === false ) {
103
+ throw new \Exception ('Could not transform the given XML document. ' );
104
+ }
105
105
106
- $ this ->_documentXML = $ xmlTransformed ;
106
+ $ this ->_documentXML = $ xmlTransformed ;
107
107
}
108
108
109
109
/**
0 commit comments