Passed
Push — master ( a7c576...53cc76 )
by Tobias
02:30
created
src/WrkLst/DocxMustache/DocxMustache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
             ->extractTo($this->storagePath($this->local_path), array($file), \Chumper\Zipper\Zipper::WHITELIST);
102 102
     }
103 103
 
104
-    protected function ReadOpenXmlFile($file, $type="file")
104
+    protected function ReadOpenXmlFile($file, $type = "file")
105 105
     {
106 106
         $this->exctractOpenXmlFile($file);
107 107
 
108
-        if($type=="file")
108
+        if ($type == "file")
109 109
         {
110 110
             if ($file_contents = \Storage::disk($this->storageDisk)->get($this->local_path.$file))
111 111
             {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $this->log('Analyze Template');
141 141
         //get the main document out of the docx archive
142
-        $this->word_doc = $this->ReadOpenXmlFile('word/document.xml','file');
142
+        $this->word_doc = $this->ReadOpenXmlFile('word/document.xml', 'file');
143 143
 
144 144
         $this->log('Merge Data into Template');
145 145
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
     protected function AddContentType($imageCt = "jpeg")
159 159
     {
160
-        $ct_file = $this->ReadOpenXmlFile('[Content_Types].xml','object');
160
+        $ct_file = $this->ReadOpenXmlFile('[Content_Types].xml', 'object');
161 161
 
162 162
         if (!($ct_file instanceof \Traversable)) {
163 163
             throw new Exception('Cannot traverse through [Content_Types].xml.');
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         $imgs = $replaceableImage['imgs'];
331 331
         $imgs_replaced = $replaceableImage['imgs_replaced'];
332 332
 
333
-        $rels_file = $this->ReadOpenXmlFile('word/_rels/document.xml.rels','object');
333
+        $rels_file = $this->ReadOpenXmlFile('word/_rels/document.xml.rels', 'object');
334 334
 
335 335
         $this->RemoveReplaceImages($imgs_replaced, $rels_file);
336 336
 
Please login to merge, or discard this patch.