@@ -4,12 +4,12 @@ discard block |
||
4 | 4 | { |
5 | 5 | public function setContent($content) |
6 | 6 | { |
7 | - require_once(HTML5LIB_PATH.'/HTML5/Parser.php'); |
|
7 | + require_once(HTML5LIB_PATH . '/HTML5/Parser.php'); |
|
8 | 8 | |
9 | 9 | // Convert any errors to exceptions |
10 | 10 | set_error_handler( |
11 | - function ($no, $str) { |
|
12 | - throw new Exception("HTML Parse Error: ".$str); |
|
11 | + function($no, $str) { |
|
12 | + throw new Exception("HTML Parse Error: " . $str); |
|
13 | 13 | }, |
14 | 14 | error_reporting() |
15 | 15 | ); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | // Use HTML5lib to parse the HTML fragment |
18 | 18 | try { |
19 | 19 | $document = HTML5_Parser::parse( |
20 | - '<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>'. |
|
20 | + '<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>' . |
|
21 | 21 | "<body>$content</body></html>" |
22 | 22 | ); |
23 | 23 | } catch (Exception $e) { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package framework |
|
4 | - * @subpackage tests |
|
5 | - */ |
|
3 | + * @package framework |
|
4 | + * @subpackage tests |
|
5 | + */ |
|
6 | 6 | class SS_HTML5ValueTest extends SapphireTest |
7 | 7 | { |
8 | 8 | public function testInvalidHTMLParsing() |