Skip to content

Commit 093fc3b

Browse files
committed
cs fix
1 parent aad73db commit 093fc3b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/HTML5/Parser/DOMTreeBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public function endTag($name)
475475
$lname = $this->normalizeTagName($name);
476476

477477
// Special case within 12.2.6.4.7: An end tag whose tag name is "br" should be treated as an opening tag
478-
if ($name === 'br') {
478+
if ('br' === $name) {
479479
$this->parseError('Closing tag encountered for void element br.');
480480

481481
$this->startTag('br');

test/HTML5/Parser/DOMTreeBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ public function testIAudioInParagraph()
718718

719719
public function testClosingBr()
720720
{
721-
$html = <<<EOM
721+
$html = <<<EOM
722722
<!DOCTYPE html>
723723
<html>
724724
<head>

0 commit comments

Comments
 (0)