diff --git a/dev/tools/apstats.php b/dev/tools/apstats.php index 44283bbc226..28c1f84badb 100755 --- a/dev/tools/apstats.php +++ b/dev/tools/apstats.php @@ -669,12 +669,13 @@ if (!empty($output_arrtd)) { $tmp .= ''; $tmp .= ''.dolPrintHTML($reg[4]).''; $tmp .= ''."\n"; + $nblines++; } } } - +$tmpphan = ''; $phan_nblines = 0; if (count($output_phan_json) != 0) { $phan_notices = json_decode($output_phan_json[count($output_phan_json) - 1], true); @@ -695,18 +696,17 @@ if (count($output_phan_json) != 0) { } $code_url_attr = dol_escape_htmltag($urlgit.$path.$line_range); if ($phan_nblines < 20) { - $tmp = ''; + $tmpphan = ''; } else { - $tmp = ''; + $tmpphan = ''; } - $tmp .= ''.dolPrintHTML($path).''; - $tmp .= ''; - $tmp .= ''.$line_range_txt.''; - $tmp .= ''; - $tmp .= ''.dolPrintHTML($notice['description']).''; - $tmp .= ''; + $tmpphan .= ''.dolPrintHTML($path).''; + $tmpphan .= ''; + $tmpphan .= ''.$line_range_txt.''; + $tmpphan .= ''; + $tmpphan .= ''.dolPrintHTML($notice['description']).''; + $tmpphan .= ''; - $phan_items[] = $tmp; $phan_nblines++; } } @@ -813,7 +813,7 @@ if ($phan_nblines != 0) { $html .= '
'."\n"; $html .= ''."\n"; $html .= ''."\n"; - $html .= implode("\n", $phan_items); + $html .= $tmpphan; $html .= '
FileLineDetail
'; // Disabled, no more required as list is managed with datatable //$html .= '
Show all...
';