From a5c3645717f0ab2905426cb28ac5310047e251c7 Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Sat, 11 Apr 2015 21:41:58 +0400 Subject: [PATCH] Performance improvement for #513. --- src/PhpWord/TemplateProcessor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PhpWord/TemplateProcessor.php b/src/PhpWord/TemplateProcessor.php index 624ef8977c..321abe7e09 100644 --- a/src/PhpWord/TemplateProcessor.php +++ b/src/PhpWord/TemplateProcessor.php @@ -352,7 +352,8 @@ public function saveAs($fileName) * * @return string */ - protected function fixBrokenMacros($documentPart) { + protected function fixBrokenMacros($documentPart) + { $fixedDocumentPart = $documentPart; $pattern = '|\$\{([^\}]+)\}|U';