$source_content = preg_replace($search.'e', "'"
. $this->_quote_replace($this->left_delimiter) . 'php'
. "' . str_repeat(\"\n\", substr_count('\\0', \"\n\")) .'"
. $this->_quote_replace($this->right_delimiter)
. "'"
, $source_content);
$source_content = preg_replace_callback(
$search,
function ($matches) {
return str_repeat("\n", substr_count($matches[0], "\n"));
},
$source_content
);