@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | protected function setCDataPlaceholder($contents, PlaceholderContainer $placeholderContainer) |
| 32 | 32 | { |
| 33 | - return preg_replace_callback('/<!\[CDATA\[((?!\]\]>).)*\]\]>/s', function ($match) use ($placeholderContainer) { |
|
| 33 | + return preg_replace_callback('/<!\[CDATA\[((?!\]\]>).)*\]\]>/s', function($match) use ($placeholderContainer) { |
|
| 34 | 34 | return $placeholderContainer->createPlaceholder($match[0]); |
| 35 | 35 | }, $contents); |
| 36 | 36 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | > # Match the endif with the captured dashes |
| 67 | 67 | ) |
| 68 | 68 | /xis', |
| 69 | - function ($match) use ($placeholderContainer) { |
|
| 69 | + function($match) use ($placeholderContainer) { |
|
| 70 | 70 | if (!empty(preg_replace('/\s*/', '', $match[3]))) { |
| 71 | 71 | return $placeholderContainer->createPlaceholder($match[1]).$match[3].$placeholderContainer->createPlaceholder($match[4]); |
| 72 | 72 | } else { |
@@ -16,10 +16,10 @@ |
||
| 16 | 16 | public function process($context) |
| 17 | 17 | { |
| 18 | 18 | $contents = $context->getContents(); |
| 19 | - $contents = preg_replace_callback('/<\?=((?!\?>).)*\?>/s', function ($match) use ($context) { |
|
| 19 | + $contents = preg_replace_callback('/<\?=((?!\?>).)*\?>/s', function($match) use ($context) { |
|
| 20 | 20 | return $context->getPlaceholderContainer()->createPlaceholder($match[0]); |
| 21 | 21 | }, $contents); |
| 22 | - $contents = preg_replace_callback('/<\?php((?!\?>).)*(\?>)?/s', function ($match) use ($context) { |
|
| 22 | + $contents = preg_replace_callback('/<\?php((?!\?>).)*(\?>)?/s', function($match) use ($context) { |
|
| 23 | 23 | return $context->getPlaceholderContainer()->createPlaceholder($match[0]); |
| 24 | 24 | }, $contents); |
| 25 | 25 | |