Scan fails with “Unknown word” on several PHP files. The line number always points to an echo statement with a partial CSS statement that is enclosed in a PHP if statement.
All those spots are of the form:
echo “<th”;
if ($inv[“abgeschlossen”]==‘nein’) {
echo " style=‘font-style: italic;’";
}
echo “>”.db_date_to_human_date($inv[“datum”])."";
or
echo "
“.$wochentage[$w].” “.date(“d.m.”, $date).”
\n";
i.e. a HTML tag or style attribute that spans over several lines with a condition in between.
I tried to create a minimal example, but sonar-scanner never failed on those.