@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | // Convert any errors to exceptions |
| 14 | 14 | set_error_handler( |
| 15 | - function ($no, $str) { |
|
| 15 | + function($no, $str) { |
|
| 16 | 16 | throw new Exception("HTML Parse Error: ".$str); |
| 17 | 17 | }, |
| 18 | 18 | error_reporting() |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | ShortcodeParser::get('default')->register( |
| 83 | 83 | 'test_shortcode', |
| 84 | - function () { |
|
| 84 | + function() { |
|
| 85 | 85 | return 'bit of test shortcode output'; |
| 86 | 86 | } |
| 87 | 87 | ); |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | ShortcodeParser::get('default')->register( |
| 112 | 112 | 'sitetree_link_test', |
| 113 | 113 | // A mildly stubbed copy from SilverStripe\CMS\Model\SiteTree::link_shortcode_handler |
| 114 | - function ($arguments, $content = null, $parser = null) |
|
| 114 | + function($arguments, $content = null, $parser = null) |
|
| 115 | 115 | { |
| 116 | 116 | $link = Convert::raw2att('https://google.com/search?q=unit&test'); |
| 117 | 117 | |