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

Class: PHP_CodeSniffer_Reports_VersionControl

Source Location: /PHP_CodeSniffer-1.3.0/CodeSniffer/Reports/VersionControl.php

Class Overview


Version control report base class for PHP_CodeSniffer.


Author(s):

Version:

  • Release: 1.2.2

Copyright:

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

Variables

Methods


Child classes:

PHP_CodeSniffer_Reports_Svnblame
Svnblame report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Gitblame
Gitblame report for PHP_CodeSniffer.

Inherited Variables

Inherited Methods


Class Details

[line 31]
Version control report base class for PHP_CodeSniffer.

PHP version 5



[ Top ]


Class Variables

$reportName =  'VERSION CONTROL'

[line 39]

The name of the report we want in the output.
  • Access: protected

Type:   string


[ Top ]



Method Detail

generate   [line 52]

string generate( array $report, [boolean $showWarnings = true], [boolean $showSources = false], [integer $width = 80])

Prints the author of all errors and warnings, as given by "version control blame".
  • Access: public

Parameters:

array   $report   —  Prepared report.
boolean   $showWarnings   —  Show warnings?
boolean   $showSources   —  Show sources?
integer   $width   —  Maximum allowed lne width.

[ Top ]

getAuthor   [line 201]

mixed getAuthor( string $line)

Extract the author from a blame line.
  • Return: string or false if impossible to recover.
  • Abstract:
  • Access: protected

Overridden in child classes as:

PHP_CodeSniffer_Reports_Svnblame::getAuthor()
Extract the author from a blame line.
PHP_CodeSniffer_Reports_Gitblame::getAuthor()
Extract the author from a blame line.

Parameters:

string   $line   —  Line to parse.

[ Top ]

getBlameContent   [line 211]

array getBlameContent( string $filename)

Gets the blame output.
  • Abstract:
  • Access: protected

Overridden in child classes as:

PHP_CodeSniffer_Reports_Svnblame::getBlameContent()
Gets the blame output.
PHP_CodeSniffer_Reports_Gitblame::getBlameContent()
Gets the blame output.

Parameters:

string   $filename   —  File to blame.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:43:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.