protected function getCleanHeaderFileContent($file)
{
$result = '';
$openComment = false;
foreach (file($file) as $line) {
// Skip comments
$trimLine = trim($line);
if ($trimLine == '/*' || $trimLine == '/**') {
$openComment = true;
continue;
}
if ($openComment) {
if ($trimLine == '*/' || $trimLine == '**/') {
$openComment = false;
}
continue;
}
// Add line to result
$result .= $this->cleanExtern($line);
}
return $result;
}