Passed
Push — master ( 907685...ae691f )
by Brian
11:42 queued 10:29
created
src/Image/Cache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
             list($width, $height, $type) = Helpers::dompdf_getimagesize($resolved_url, $options->getHttpContext());
133 133
 
134
-            if (($width && $height && in_array($type, ["gif", "png", "jpeg", "bmp", "svg","webp"], true)) === false) {
134
+            if (($width && $height && in_array($type, ["gif", "png", "jpeg", "bmp", "svg", "webp"], true)) === false) {
135 135
                 throw new ImageException("Image type unknown", E_WARNING);
136 136
             }
137 137
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, false);
141 141
                 xml_set_element_handler(
142 142
                     $parser,
143
-                    function ($parser, $name, $attributes) use ($options, $parsed_url, $full_url) {
143
+                    function($parser, $name, $attributes) use ($options, $parsed_url, $full_url) {
144 144
                         if (strtolower($name) === "image") {
145 145
                             if (!\array_key_exists($full_url, self::$svgRefs)) {
146 146
                                 self::$svgRefs[$full_url] = [];
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
     static function detect_type($file, $context = null)
275 275
     {
276
-        list(, , $type) = Helpers::dompdf_getimagesize($file, $context);
276
+        list(,, $type) = Helpers::dompdf_getimagesize($file, $context);
277 277
 
278 278
         return $type;
279 279
     }
Please login to merge, or discard this patch.