public function fix($data)
{
$regex = '~(?P<group>^\\s*<\\?php(?:(?:(?:/\\*.*?\\*/)|(?:(?://|#).*?\\n{1})|(?:\\s*))*))(?P<other>.*)~s';
preg_match($regex, $data, $results);
if (!isset($results['group'])) {
return false;
}
$other = $results['other'];
return $this->header . ltrim($other);
}