@@ -152,7 +152,7 @@ |
||
| 152 | 152 | $preparsed = midcom_helper_formatter::compile($style); |
| 153 | 153 | |
| 154 | 154 | if (midcom_core_context::get()->has_custom_key('request_data')) { |
| 155 | - $data =& midcom_core_context::get()->get_custom_key('request_data'); |
|
| 155 | + $data = & midcom_core_context::get()->get_custom_key('request_data'); |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | try { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public static function compile(string $content) : string |
| 54 | 54 | { |
| 55 | - return preg_replace_callback("%&\(([^)]*)\);%i", function ($variable) |
|
| 55 | + return preg_replace_callback("%&\(([^)]*)\);%i", function($variable) |
|
| 56 | 56 | { |
| 57 | 57 | $variable_parts = explode(':', $variable[1]); |
| 58 | 58 | $variable = '$' . $variable_parts[0]; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $variable = $parts[0] . '->' . $parts[1]; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - if ( isset($variable_parts[1]) |
|
| 65 | + if (isset($variable_parts[1]) |
|
| 66 | 66 | && array_key_exists($variable_parts[1], self::$_filters)) { |
| 67 | 67 | switch ($variable_parts[1]) { |
| 68 | 68 | case 's': |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | |
| 197 | 197 | private function resolve_includes(string $content) : string |
| 198 | 198 | { |
| 199 | - return preg_replace_callback("/<\\(([a-zA-Z0-9 _-]+)\\)>/", function (array $matches) { |
|
| 199 | + return preg_replace_callback("/<\\(([a-zA-Z0-9 _-]+)\\)>/", function(array $matches) { |
|
| 200 | 200 | $element = $matches[1]; |
| 201 | 201 | |
| 202 | 202 | switch ($element) { |