apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: Reporter

Source Location: /PHP_CodeSniffer-3.0.0/src/Reporter.php

Class Overview


Manages reporting of errors and warnings.


Author(s):

Copyright:

  • 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 17]
Manages reporting of errors and warnings.


[ Top ]


Class Variables

$config =  null

[line 25]

The config data for the run.
  • Access: public

Type:   \PHP_CodeSniffer\Config


[ Top ]

$startTime =  0

[line 67]

When the PHPCS run started.
  • Access: public

Type:   float


[ Top ]

$totalErrors =  0

[line 39]

Total number of errors found during the run.
  • Access: public

Type:   integer


[ Top ]

$totalFiles =  0

[line 32]

Total number of files that contain errors or warnings.
  • Access: public

Type:   integer


[ Top ]

$totalFixable =  0

[line 53]

Total number of errors/warnings that can be fixed.
  • Access: public

Type:   integer


[ Top ]

$totalFixed =  0

[line 60]

Total number of errors/warnings that were fixed.
  • Access: public

Type:   integer


[ Top ]

$totalWarnings =  0

[line 46]

Total number of warnings found during the run.
  • Access: public

Type:   integer


[ Top ]



Method Detail

__construct (Constructor)   [line 96]

void __construct( Config $config)

Initialise the reporter.

All reports specified in the config will be created and their output file (or a temp file if none is specified) initialised by clearing the current contents.

  • Throws: RuntimeException If a report is not available.
  • Access: public

Parameters:

\PHP_CodeSniffer\Config   $config   —  The config data for the run.

[ Top ]

cacheFileReport   [line 243]

void cacheFileReport( File $phpcsFile)

Caches the result of a single processed file for all reports.

The report content that is generated is appended to the output file assigned to each report. This content may be an intermediate report format and not reflect the final report output.

  • Access: public

Parameters:

\PHP_CodeSniffer\Files\File   $phpcsFile   —  The file that has been processed.

[ Top ]

prepareFileReport   [line 300]

array prepareFileReport( File $phpcsFile)

Generate summary information to be used during report generation.
  • Access: public

Parameters:

\PHP_CodeSniffer\Files\File   $phpcsFile   —  The file that has been processed.

[ Top ]

printReport   [line 173]

void printReport( string $report)

Generates and prints a single final report.
  • Access: public

Parameters:

string   $report   —  The report type to print.

[ Top ]

printReports   [line 150]

bool printReports( )

Generates and prints final versions of all reports.

Returns TRUE if any of the reports output content to the screen or FALSE if all reports were silently printed to a file.

  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:23:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.