@@ -125,12 +125,19 @@ discard block |
||
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string $content |
|
| 130 | + */ |
|
| 128 | 131 | protected function MustacheTagCleaner($content) |
| 129 | 132 | { |
| 130 | 133 | //kills all xml tags within curly mustache brackets |
| 131 | 134 | //this is necessary, as word might produce unnecesary xml tage inbetween curly backets. |
| 132 | 135 | return preg_replace_callback( |
| 133 | 136 | '/{{(.*?)}}/', |
| 137 | + |
|
| 138 | + /** |
|
| 139 | + * @param string $treffer |
|
| 140 | + */ |
|
| 134 | 141 | function($treffer) { |
| 135 | 142 | return strip_tags($treffer[0]); |
| 136 | 143 | }, |
@@ -187,6 +194,9 @@ discard block |
||
| 187 | 194 | } |
| 188 | 195 | } |
| 189 | 196 | |
| 197 | + /** |
|
| 198 | + * @param \SimpleXMLElement $main_file |
|
| 199 | + */ |
|
| 190 | 200 | protected function ImageReplacerFetchReplaceableImages(&$main_file, $ns) |
| 191 | 201 | { |
| 192 | 202 | //set up basic arrays to keep track of imgs |
@@ -239,6 +249,9 @@ discard block |
||
| 239 | 249 | ); |
| 240 | 250 | } |
| 241 | 251 | |
| 252 | + /** |
|
| 253 | + * @param \SimpleXMLElement $rels_file |
|
| 254 | + */ |
|
| 242 | 255 | protected function RemoveReplaceImages($imgs_replaced, &$rels_file) |
| 243 | 256 | { |
| 244 | 257 | //iterate through replaced images and clean rels files from them |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | //introduce logging method here to keep track of process |
| 62 | 62 | // can be overwritten in extended class to log with custom preocess logger |
| 63 | - if($this->verbose) |
|
| 63 | + if ($this->verbose) |
|
| 64 | 64 | Log::error($msg); |
| 65 | 65 | } |
| 66 | 66 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | - protected function AddContentType($imageCt="jpeg") |
|
| 152 | + protected function AddContentType($imageCt = "jpeg") |
|
| 153 | 153 | { |
| 154 | 154 | //get content type file from archive |
| 155 | 155 | $this->zipper->make($this->storagePath($this->local_path.$this->template_file_name)) |