@@ -19,8 +19,7 @@ discard block |
||
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 |
||
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 |