Code Scanner Output
Summary
Found ' . count( $faults ) . ' faults in ' . count( $files ) . ' files
Faults by file
'
);
$current_file = '';
foreach( $faults as $id => $fault ) {
if( $current_file != $fault['object']['file'] ) {
if( $current_file != '' ) {
fwrite( $output, '' );
}
$current_file = $fault['object']['file'];
fwrite( $output, "- $current_file
" );
}
fprintf( $output,
'-
- %s: %s
-
Line: %d
Author: %s
Revision: %s
Code:
%s
',
$fault['level'],
$fault['module'],
$fault['reason'],
$fault['object']['line'],
!empty( $fault['author'] ) ? $fault['author'] : 'Unknown',
!empty( $fault['revision'] ) ? $fault['revision'] : 'Unknown',
$fault['object']['context']
);
}
fwrite( $output,
'