@@ -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\\'; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * @return $result, escaped string. |
| 59 | 59 | */ |
| 60 | 60 | public function escapeHTMLattr($value) { |
| 61 | - $result = preg_replace_callback("/[\W]/", function ($matches) { |
|
| 61 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
| 62 | 62 | return "&#x" . bin2hex($matches[0]) . ";"; |
| 63 | 63 | }, |
| 64 | 64 | $value); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * @return $result, escaped string. |
| 73 | 73 | */ |
| 74 | 74 | public function escapeJs($value) { |
| 75 | - $result = preg_replace_callback("/[\W]/", function ($matches) { |
|
| 75 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
| 76 | 76 | return "\\x" . bin2hex($matches[0]); |
| 77 | 77 | }, |
| 78 | 78 | $value); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * @return $result, escaped string. |
| 88 | 88 | */ |
| 89 | 89 | public function escapeCSS($value) { |
| 90 | - $result = preg_replace_callback("/[\W]/", function ($matches) { |
|
| 90 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
| 91 | 91 | return "\\" . bin2hex($matches[0]) . " "; |
| 92 | 92 | }, |
| 93 | 93 | $value); |