Passed
Push — main ( ed62a2...2ff6d2 )
by Sammy
31:19 queued 23:14
created
tests/ElementTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
       if(in_array($tag, Element::VOID_ELEMENTS)){
31 31
         $this->assertEquals('<'.$tag.'/>', $e->__toString());
32
-      }
33
-      else {
32
+      } else {
34 33
         $this->assertEquals("<$tag></$tag>", $e->__toString());
35 34
       }
36 35
 
@@ -50,8 +49,7 @@  discard block
 block discarded – undo
50 49
 
51 50
         if(in_array($tag, Element::VOID_ELEMENTS)){
52 51
           $this->assertEquals('<'.$tag.'/>', $e->__toString());
53
-        }
54
-        else {
52
+        } else {
55 53
           $this->assertEquals("<$tag>$expected</$tag>", $e->__toString());
56 54
         }
57 55
 
@@ -121,8 +119,7 @@  discard block
 block discarded – undo
121 119
       $e = new Element($tag, $message,  $attributes);
122 120
       if(in_array($tag, Element::VOID_ELEMENTS)){
123 121
         $this->assertEquals(sprintf(Element::FORMAT_VOID, $tag, $attributes_expected_string), $e->__toString());
124
-      }
125
-      else {
122
+      } else {
126 123
         $this->assertEquals(sprintf(Element::FORMAT_ELEMENT, $tag, $attributes_expected_string, $message, $tag), $e->__toString());
127 124
       }
128 125
 
Please login to merge, or discard this patch.