@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function escapeHTMLattr($value) |
66 | 66 | { |
67 | - $result = preg_replace_callback("/[\W]/", function ($matches){ |
|
67 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
68 | 68 | return "&#x" . bin2hex($matches[0]) . ";"; |
69 | 69 | }, |
70 | 70 | $value); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function escapeJs($value) |
82 | 82 | { |
83 | - $result = preg_replace_callback("/[\W]/", function ($matches){ |
|
83 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
84 | 84 | return "\\x" . bin2hex($matches[0]); |
85 | 85 | }, |
86 | 86 | $value); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function escapeCSS($value) |
98 | 98 | { |
99 | - $result = preg_replace_callback("/[\W]/", function ($matches){ |
|
99 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
100 | 100 | return "\\" . bin2hex($matches[0]) . " "; |
101 | 101 | }, |
102 | 102 | $value); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * @param string $class The fully-qualified class name. |
12 | 12 | * @return void |
13 | 13 | */ |
14 | -spl_autoload_register(function ($class) { |
|
14 | +spl_autoload_register(function($class) { |
|
15 | 15 | |
16 | 16 | // project-specific namespace prefix |
17 | 17 | //$prefix = 'Foo\\Bar\\'; |