Completed
Pull Request — master (#3)
by Helpful
02:06
created
code/HTML5Value.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
 				'<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>'.
20 20
 				"<body>$content</body></html>"
21 21
 			);
22
-		}
23
-		catch (Exception $e) {
22
+		} catch (Exception $e) {
24 23
 			$document = false;
25 24
 		}
26 25
 
@@ -28,8 +27,11 @@  discard block
 block discarded – undo
28 27
 		restore_error_handler();
29 28
 
30 29
 		// If we couldn't parse the HTML, set the error state
31
-		if ($document) $this->setDocument($document);
32
-		else $this->setInvalid();
30
+		if ($document) {
31
+		    $this->setDocument($document);
32
+		} else {
33
+		    $this->setInvalid();
34
+		}
33 35
 	}
34 36
 
35 37
 }
36 38
\ No newline at end of file
Please login to merge, or discard this patch.