Passed
Push — master ( f4d0e8...419ebb )
by Tobias
02:35
created
src/WrkLst/DocxMustache/DocxMustache.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -364,8 +364,7 @@
 block discarded – undo
364 364
                  $len = strpos($string, $end, $ini + strlen($start)) + strlen($end);
365 365
                  $rest = substr($string, 0, $ini).substr($string, $len);
366 366
              }
367
-         }
368
-         else {
367
+         } else {
369 368
              $url = '';
370 369
              $rest = str_replace(array($start,$end),'',$string);
371 370
          }
Please login to merge, or discard this patch.
src/WrkLst/DocxMustache/DocImage.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,10 @@
 block discarded – undo
18 18
     {
19 19
         $allowed_imgs = $this->AllowedContentTypeImages();
20 20
 
21
-        if (trim($url))
22
-        if ($img_file_handle = @fopen($url.$manipulation, 'rb')) {
21
+        if (trim($url)) {
22
+                if ($img_file_handle = @fopen($url.$manipulation, 'rb')) {
23 23
             $img_data = stream_get_contents($img_file_handle);
24
+        }
24 25
             fclose($img_file_handle);
25 26
             $fi = new \finfo(FILEINFO_MIME);
26 27
 
Please login to merge, or discard this patch.