Passed
Pull Request — master (#29)
by
unknown
01:53
created
src/WrkLst/DocxMustache/DocxMustache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $this->CopyTmplate();
54 54
         $this->getAllFilesFromDocx();
55
-        foreach($this->filelist as $file) {
55
+        foreach ($this->filelist as $file) {
56 56
             $this->doInplaceMustache($file);
57 57
         }
58 58
         $this->ReadTeamplate($dpi);
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
         $fileWhitelist = $this->fileWhitelist;
107 107
         $this->zipper
108 108
             ->make($this->StoragePath($this->local_path.$this->template_file_name))
109
-            ->getRepository()->each(function ($file, $stats) use ($fileWhitelist, &$filelist) {
110
-                foreach($fileWhitelist as $pattern) {
111
-                    if(fnmatch($pattern, $file)) {
109
+            ->getRepository()->each(function($file, $stats) use ($fileWhitelist, &$filelist) {
110
+                foreach ($fileWhitelist as $pattern) {
111
+                    if (fnmatch($pattern, $file)) {
112 112
                         $filelist[] = $file;
113 113
                     }
114 114
                 }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                             ->getFileContent($file);
123 123
         $tempFileContent = MustacheRender::render($this->items, $tempFileContent);
124 124
         $tempFileContent = HtmlConversion::convert($tempFileContent);
125
-        $this->zipper->addString($file,$tempFileContent);
125
+        $this->zipper->addString($file, $tempFileContent);
126 126
         $this->zipper->close();
127 127
     }
128 128
     
Please login to merge, or discard this patch.