@@ -101,6 +101,9 @@ discard block |
||
| 101 | 101 | ->extractTo($this->StoragePath($this->local_path), [$file], \Chumper\Zipper\Zipper::WHITELIST); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param string $file |
|
| 106 | + */ |
|
| 104 | 107 | protected function ReadOpenXmlFile($file, $type = 'file') |
| 105 | 108 | { |
| 106 | 109 | $this->exctractOpenXmlFile($file); |
@@ -133,6 +136,10 @@ discard block |
||
| 133 | 136 | } |
| 134 | 137 | } |
| 135 | 138 | |
| 139 | + /** |
|
| 140 | + * @param string $file |
|
| 141 | + * @param false|string $folder |
|
| 142 | + */ |
|
| 136 | 143 | protected function SaveOpenXmlObjectToFile($xmlObject, $file, $folder) |
| 137 | 144 | { |
| 138 | 145 | if ($xmlString = $xmlObject->asXML()) { |
@@ -338,8 +338,7 @@ |
||
| 338 | 338 | } else { |
| 339 | 339 | throw new Exception('Cannot generate xml for word/document.xml.'); |
| 340 | 340 | } |
| 341 | - } |
|
| 342 | - else |
|
| 341 | + } else |
|
| 343 | 342 | { |
| 344 | 343 | $this->Log('Error: Could not load XML file.'); |
| 345 | 344 | } |