Passed
Push — master ( bbdf50...dbee39 )
by Tobias
03:38 queued 23s
created
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.