Passed
Push — master ( 6464d5...03fcd4 )
by Tobias
02:17
created
src/WrkLst/DocxMustache/DocxMustache.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -125,12 +125,19 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.