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

Class: Generic_Sniffs_VersionControl_SubversionPropertiesSniff

Source Location: /PHP_CodeSniffer-1.2.0RC2/CodeSniffer/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php

Class Overview


Generic_Sniffs_VersionControl_SubversionPropertiesSniff.


Author(s):

Version:

  • Release: 1.2.0RC2

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]
Generic_Sniffs_VersionControl_SubversionPropertiesSniff.

Tests that the correct Subversion properties are set.



[ Top ]


Class Variables

$properties = array(
                             'svn:keywords'  => 'Author Id Revision',
                             'svn:eol-style' => 'native',
                            )

[line 37]

The Subversion properties that should be set.
  • Access: protected

Type:   array


[ Top ]



Method Detail

process   [line 66]

void process( PHP_CodeSniffer_File $phpcsFile, int $stackPtr)

Processes this test, when one of its tokens is encountered.
  • Access: public

Parameters:

PHP_CodeSniffer_File   $phpcsFile   —  The file being scanned.
int   $stackPtr   —  The position of the current token in the stack passed in $tokens.

[ Top ]

properties   [line 115]

array properties( string $path)

Returns the Subversion properties which are actually set on a path.
  • Throws: PHP_CodeSniffer_Exception If Subversion properties file could not be opened.
  • Access: protected

Parameters:

string   $path   —  The path to return Subversion properties on.

[ Top ]

register   [line 48]

array register( )

Returns an array of tokens this test wants to listen for.
  • Access: public

[ Top ]


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