Code Scanner Output
Summary
Found ' . count( $faults ) . ' faults in ' . count( $files ) . ' files
Faults by file
'
);
$current_file = '';
foreach( $faults as $id => $fault ) {
$svn = serialize( $fault['svn'] );
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'],
isset( $fault['svn']['author'] ) ? $fault['svn']['author'] : 'Unknown',
isset( $fault['svn']['revision'] ) ? $fault['svn']['revision'] : 'Unknown',
$fault['object']['context']
);
}
fwrite( $output,
'