Property | Type | Description | |
---|---|---|---|
$reportName | string | The name of the report we want in the output. |
Method | Description | |
---|---|---|
generate ( string $cachedData, integer $totalFiles, integer $totalErrors, integer $totalWarnings, integer $totalFixable, boolean $showSources = false, integer $width = 80, boolean $toScreen = true ) : void | Prints the author of all errors and warnings, as given by "version control blame". | |
generateFileReport ( array $report, PHP_CodeSniffer_File $phpcsFile, boolean $showSources = false, integer $width = 80 ) : boolean | Generate a partial report for a single processed file. |
Method | Description | |
---|---|---|
getAuthor ( string $line ) : mixed | Extract the author from a blame line. | |
getBlameContent ( string $filename ) : array | Gets the blame output. |
public generate ( string $cachedData, integer $totalFiles, integer $totalErrors, integer $totalWarnings, integer $totalFixable, boolean $showSources = false, integer $width = 80, boolean $toScreen = true ) : void | ||
$cachedData | string | Any partial report data that was returned from generateFileReport during the run. |
$totalFiles | integer | Total number of files processed during the run. |
$totalErrors | integer | Total number of errors found during the run. |
$totalWarnings | integer | Total number of warnings found during the run. |
$totalFixable | integer | Total number of problems that can be fixed. |
$showSources | boolean | Show sources? |
$width | integer | Maximum allowed line width. |
$toScreen | boolean | Is the report being printed to screen? |
return | void |
public generateFileReport ( array $report, PHP_CodeSniffer_File $phpcsFile, boolean $showSources = false, integer $width = 80 ) : boolean | ||
$report | array | Prepared report data. |
$phpcsFile | PHP_CodeSniffer_File | The file being reported on. |
$showSources | boolean | Show sources? |
$width | integer | Maximum allowed line width. |
return | boolean |
abstract protected getBlameContent ( string $filename ) : array | ||
$filename | string | File to blame. |
return | array |
protected string $reportName | ||
return | string |