@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | { |
12 | 12 | // Convert any errors to exceptions |
13 | 13 | set_error_handler( |
14 | - function ($no, $str) { |
|
14 | + function($no, $str) { |
|
15 | 15 | throw new Exception("HTML Parse Error: ".$str); |
16 | 16 | }, |
17 | 17 | error_reporting() |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | ); |
34 | 34 | require_once $parserPath; |
35 | 35 | $document = \HTML5_Parser::parse( |
36 | - "<!DOCTYPE html>\n" . |
|
37 | - '<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>' . |
|
36 | + "<!DOCTYPE html>\n". |
|
37 | + '<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>'. |
|
38 | 38 | "<body>$content</body></html>" |
39 | 39 | ); |
40 | 40 | } catch (Exception $e) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | ShortcodeParser::get('default')->register( |
84 | 84 | 'test_shortcode', |
85 | - function () { |
|
85 | + function() { |
|
86 | 86 | return 'bit of test shortcode output'; |
87 | 87 | } |
88 | 88 | ); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | ShortcodeParser::get('default')->register( |
113 | 113 | 'sitetree_link_test', |
114 | 114 | // A mildly stubbed copy from SilverStripe\CMS\Model\SiteTree::link_shortcode_handler |
115 | - function ($arguments, $content = null, $parser = null) { |
|
115 | + function($arguments, $content = null, $parser = null) { |
|
116 | 116 | $link = Convert::raw2att('https://google.com/search?q=unit&test'); |
117 | 117 | if ($content) { |
118 | 118 | $link = sprintf('<a href="%s">%s</a>', $link, $parser->parse($content)); |