Passed
Pull Request — main (#23)
by
unknown
01:46
created
src/Node/Block/MediaSingle.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,9 @@
 block discarded – undo
50 50
         parent::__construct($parent);
51 51
         $this->layout = $layout;
52 52
 
53
-        if (is_float($width))
54
-            $width = round($width, 2);
53
+        if (is_float($width)) {
54
+                    $width = round($width, 2);
55
+        }
55 56
         $this->width = $width;
56 57
     }
57 58
 
Please login to merge, or discard this patch.
src/Node/Child/Media.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,12 +36,14 @@
 block discarded – undo
36 36
         $this->collection = $collection;
37 37
         $this->occurrenceKey = $occurrenceKey;
38 38
 
39
-        if (is_float($width))
40
-            $width = round($width, 2);
39
+        if (is_float($width)) {
40
+                    $width = round($width, 2);
41
+        }
41 42
         $this->width = $width;
42 43
 
43
-        if (is_float($height))
44
-            $height = round($height, 2);
44
+        if (is_float($height)) {
45
+                    $height = round($height, 2);
46
+        }
45 47
         $this->height = $height;
46 48
     }
47 49
 
Please login to merge, or discard this patch.