public function process($context)
    {
        $contents = $context->getContents();
        $contents = preg_replace_callback('/<\?=((?!\?>).)*\?>/s', function ($match) use ($context) {
            return $context->getPlaceholderContainer()->createPlaceholder($match[0]);
        }, $contents);
        $contents = preg_replace_callback('/<\?php((?!\?>).)*(\?>)?/s', function ($match) use ($context) {
            return $context->getPlaceholderContainer()->createPlaceholder($match[0]);
        }, $contents);

        return $context->setContents($contents);
    }
public function process($context)
    {
        $contents = $context->getContents();
        $contents = preg_replace_callback('/<\?=((?!\?>).)*\?>/s', function ($match) use ($context) {
            return $context->getPlaceholderContainer()->createPlaceholder($match[0]);
        }, $contents);
        $contents = preg_replace_callback('/<\?php((?!\?>).)*(\?>)?/s', function ($match) use ($context) {
            return $context->getPlaceholderContainer()->createPlaceholder($match[0]);
        }, $contents);

        return $context->setContents($contents);
    }
public function process ( $ context ) { $ contents = $ context -> getContents ( ) ; $ contents = preg_replace_callback ( '/<\?=((?!\?>).)*\?>/s' , function ( $ match ) use ( $ context ) { return $ context -> getPlaceholderContainer ( ) -> createPlaceholder ( $ match [ 0 ] ) ; } , $ contents ) ; $ contents = preg_replace_callback ( '/<\?php((?!\?>).)*(\?>)?/s' , function ( $ match ) use ( $ context ) { return $ context -> getPlaceholderContainer ( ) -> createPlaceholder ( $ match [ 0 ] ) ; } , $ contents ) ; return $ context -> setContents ( $ contents ) ; }
Replace PHP tags with a temporary placeholder.

@param \ArjanSchouten\HtmlMinifier\MinifyContext $context

@return \ArjanSchouten\HtmlMinifier\MinifyContext
Replace PHP tags with a temporary placeholder .