Class: PHP_CodeSniffer_Reporting
Source Location: /PHP_CodeSniffer-2.0.0a1/CodeSniffer/Reporting.php
A class to manage reporting.
Author(s):
Version:
Copyright:
- 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line 36]
A class to manage reporting.
Class Variables
$totalErrors = 0
[line 51]
Total number of errors found during the run.
$totalFiles = 0
[line 44]
Total number of files that contain errors or warnings.
$totalFixable = 0
[line 65]
Total number of errors/warnings that can be fixed.
$totalWarnings = 0
[line 58]
Total number of warnings found during the run.
Method Detail
cacheFileReport [line 134]
Actually generates the report.
Parameters:
array
$cliValues
—
An array of command line arguments.
factory [line 90]
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 259]
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 197]
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.
Documentation generated on 2019年3月11日 15:56:33 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.