diff --git a/dev/tools/apstats.php b/dev/tools/apstats.php index 752996bc6f4..0f0895a3ecc 100755 --- a/dev/tools/apstats.php +++ b/dev/tools/apstats.php @@ -174,9 +174,11 @@ foreach (array('proj', 'dep') as $source) { * View */ -$html = ''; -$html .= ''; -$html .= ''; +$html = ''."\n"; +$html .= ''."\n"; +$html .= ''."\n"; +$html .= ''."\n"; +$html .= ''."\n"; $html .= ' '; + +div.fiche>form>div.div-table-responsive { + min-height: 392px; +} +div.fiche>form>div.div-table-responsive, div.fiche>form>div.div-table-responsive-no-min { + overflow-x: auto; +} +.div-table-responsive { + line-height: 120%; +} +.div-table-responsive, .div-table-responsive-no-min { + overflow-x: auto; + min-height: 0.01%; +} + + +/* Force values for small screen 767 */ +@media only screen and (max-width: 767px) +{ + body { + margin: 5px; + margin-left: 5px; + margin-right: 5px; + } +} + + +'."\n"; $html .= ''."\n"; @@ -265,6 +297,8 @@ $html .= ''."\n"; $html .= '
'."\n"; $html .= '

Lines of code

'."\n"; + +$html .= '
'."\n"; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; if (!empty($arrayoflineofcode[$source])) { foreach ($arrayoflineofcode[$source] as $key => $val) { $html .= ''; $html .= ''; $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; + $html .= ''; + $html .= ''; + $html .= ''; + $html .= ''; + $html .= ''; //$html .= ''; - $html .= ''; + $html .= ''; $html .= ''; } } @@ -311,16 +345,17 @@ foreach (array('proj', 'dep') as $source) { $html .= ''; $html .= ''; -$html .= ''; -$html .= ''; -$html .= ''; -$html .= ''; -$html .= ''; -$html .= ''; +$html .= ''; +$html .= ''; +$html .= ''; +$html .= ''; +$html .= ''; +$html .= ''; //$html .= ''; $html .= ''; $html .= ''; $html .= '
Language'; @@ -290,20 +324,20 @@ foreach (array('proj', 'dep') as $source) { $html .= ''.formatNumber($arrayofmetrics[$source]['Blanks']).''.formatNumber($arrayofmetrics[$source]['Comments']).''.formatNumber($arrayofmetrics[$source]['Code']).'TODO graph here...
Total'.formatNumber($arrayofmetrics['proj']['Bytes'] + $arrayofmetrics['dep']['Bytes']).''.formatNumber($arrayofmetrics['proj']['Files'] + $arrayofmetrics['dep']['Files']).''.formatNumber($arrayofmetrics['proj']['Lines'] + $arrayofmetrics['dep']['Lines']).''.formatNumber($arrayofmetrics['proj']['Blanks'] + $arrayofmetrics['dep']['Blanks']).''.formatNumber($arrayofmetrics['proj']['Comments'] + $arrayofmetrics['dep']['Comments']).''.formatNumber($arrayofmetrics['proj']['Code'] + $arrayofmetrics['dep']['Code']).''.formatNumber($arrayofmetrics['proj']['Bytes'] + $arrayofmetrics['dep']['Bytes']).''.formatNumber($arrayofmetrics['proj']['Files'] + $arrayofmetrics['dep']['Files']).''.formatNumber($arrayofmetrics['proj']['Lines'] + $arrayofmetrics['dep']['Lines']).''.formatNumber($arrayofmetrics['proj']['Blanks'] + $arrayofmetrics['dep']['Blanks']).''.formatNumber($arrayofmetrics['proj']['Comments'] + $arrayofmetrics['dep']['Comments']).''.formatNumber($arrayofmetrics['proj']['Code'] + $arrayofmetrics['dep']['Code']).''.$arrayofmetrics['Complexity'].'
'; +$html .= '
'; $html .= '
'."\n"; @@ -338,7 +373,7 @@ $html .= ''."\n"; $html .= '
'."\n"; $html .= '

Technical debt ('.count($output_arrtd).')


'."\n"; -$html .= '
'."\n"; +$html .= '
'."\n"; $html .= ''."\n"; $html .= ''."\n"; foreach ($output_arrtd as $line) {
FileLineType