Class: PHP_CodeSniffer_Reporting
Source Location: /PHP_CodeSniffer-2.0.0RC1/CodeSniffer/Reporting.php
A class to manage reporting.
Author(s):
Version:
Copyright:
- 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line 30]
A class to manage reporting.
Class Variables
$startTime = 0
[line 66]
When the PHPCS run started.
$totalErrors = 0
[line 45]
Total number of errors found during the run.
$totalFiles = 0
[line 38]
Total number of files that contain errors or warnings.
$totalFixable = 0
[line 59]
Total number of errors/warnings that can be fixed.
$totalWarnings = 0
[line 52]
Total number of warnings found during the run.
Method Detail
cacheFileReport [line 142]
Actually generates the report.
Parameters:
array
$cliValues
—
An array of command line arguments.
factory [line 98]
Produce the appropriate report object based on $type parameter.
- Throws: PHP_CodeSniffer_Exception If report is not available.
- Access: public
Parameters:
string
$type
—
The type of the report.
prepareFileReport [line 288]
Pre-process and package violations for all files.
Used by error reports to get a packaged list of all errors in each file.
Parameters:
printReport [line 217]
integer printReport(
string
$report, boolean
$showSources, [string
$reportFile = ''], [integer
$reportWidth = 80])
Actually generates the report.
Parameters:
string
$report
—
Report type.
boolean
$showSources
—
Show sources?
string
$reportFile
—
Report file to generate.
integer
$reportWidth
—
Report max width.
printRunTime [line 388]
Print information about the run.
startTiming [line 375]
Start recording time for the run.
Documentation generated on 2019年3月11日 15:58:18 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.