Passed
Push — master ( a88242...a4fce3 )
by Tobias
02:53
created
src/WrkLst/DocxMustache/DocxMustache.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,8 +341,7 @@
 block discarded – undo
341 341
             } else {
342 342
                 throw new Exception('Cannot generate xml for word/document.xml.');
343 343
             }
344
-        }
345
-        else
344
+        } else
346 345
         {
347 346
             $xmlerror = '';
348 347
             $errors = libxml_get_errors();
Please login to merge, or discard this patch.
src/WrkLst/DocxMustache/DocImage.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,9 @@  discard block
 block discarded – undo
44 44
 
45 45
         //rework img to new size and jpg format
46 46
         $img_rework = \Image::make($parent->StoragePath($parent->local_path.'word/media/'.$imgs[$k]['img_file_src']));
47
-        if($dpi!=72) $img_rework2 = \Image::make($parent->StoragePath($parent->local_path.'word/media/'.$imgs[$k]['img_file_src']));
47
+        if($dpi!=72) {
48
+            $img_rework2 = \Image::make($parent->StoragePath($parent->local_path.'word/media/'.$imgs[$k]['img_file_src']));
49
+        }
48 50
 
49 51
         $imgWidth = $img_rework->width();
50 52
         $imgHeight = $img_rework->height();
@@ -97,8 +99,7 @@  discard block
 block discarded – undo
97 99
             $im->clear();
98 100
             $im->destroy();
99 101
             */
100
-        }
101
-        else {
102
+        } else {
102 103
             $img_rework->save($parent->StoragePath($parent->local_path.'word/media/'.$imgs[$k]['img_file_dest']));
103 104
         }
104 105
 
Please login to merge, or discard this patch.