Passed
Push — master ( 419ebb...c325db )
by Tobias
02:33
created
src/WrkLst/DocxMustache/DocImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $w = (($imgWidth / $imgHeight) * $h);
55 55
 
56 56
         //if height based resize has too large width, do width based resize
57
-        if($h>$availableHeight)
57
+        if ($h > $availableHeight)
58 58
         {
59 59
             $w = (($imgWidth / $imgHeight) * $availableHeight);
60 60
             $h = (($imgHeight / $imgWidth) * $w);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $h = null;
64 64
 
65
-        $img_rework->resize($w, $h, function ($constraint) {
65
+        $img_rework->resize($w, $h, function($constraint) {
66 66
             $constraint->aspectRatio();
67 67
             $constraint->upsize();
68 68
         });
Please login to merge, or discard this patch.