Passed
Pull Request — master (#25)
by
unknown
02:03
created
code/HTML5Value.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
tests/HTML5ValueTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.