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

Class: PHP_CodeSniffer_Reports_VersionControl

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

Class Overview


Version control report base class for PHP_CodeSniffer.


Author(s):

Version:

  • Release: 1.2.2

Copyright:

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

Variables

Methods


Child classes:

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

Inherited Variables

Inherited Methods


Class Details

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

PHP version 5



[ Top ]


Class Variables

$reportName =  'VERSION CONTROL'

[line 38]

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

Type:   string


[ Top ]



Method Detail

generate   [line 51]

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

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

Parameters:

array   $report     Prepared report.
boolean   $showSources     Show sources?
integer   $width     Maximum allowed lne width.
boolean   $toScreen     Is the report being printed to screen?

[ 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_Hgblame::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_Hgblame::getBlameContent()
Gets the blame output.
PHP_CodeSniffer_Reports_Gitblame::getBlameContent()
Gets the blame output.

Parameters:

string   $filename     File to blame.

[ Top ]


Documentation generated on Thu, 17 May 2012 05:01:22 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.