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

Class: Squiz_Sniffs_Functions_FunctionDeclarationSniff

Source Location: /PHP_CodeSniffer-0.7.0/CodeSniffer/Standards/Squiz/Sniffs/Functions/FunctionDeclarationSniff.php

Class Overview

PHP_CodeSniffer_Standards_AbstractPatternSniff
   |
   --Squiz_Sniffs_Functions_FunctionDeclarationSniff

Squiz_Sniffs_Functions_FunctionDeclarationSniff.


Author(s):

Version:

  • Release: 0.7.0

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: PHP_CodeSniffer_Standards_AbstractPatternSniff

PHP_CodeSniffer_Standards_AbstractPatternSniff::__construct()
Constructs a PHP_CodeSniffer_Standards_AbstractPatternSniff.
PHP_CodeSniffer_Standards_AbstractPatternSniff::getPatterns()
Returns the patterns that should be checked.
PHP_CodeSniffer_Standards_AbstractPatternSniff::prepareError()
Prepares an error for the specified patternCode.
PHP_CodeSniffer_Standards_AbstractPatternSniff::process()
Processes the test.
PHP_CodeSniffer_Standards_AbstractPatternSniff::processPattern()
Processes the pattern and varifies the code at $stackPtr.
PHP_CodeSniffer_Standards_AbstractPatternSniff::processSupplementary()
Processes any tokens registered with registerSupplementary().
PHP_CodeSniffer_Standards_AbstractPatternSniff::register()
Registers the tokens to listen to.
PHP_CodeSniffer_Standards_AbstractPatternSniff::registerSupplementary()
Registers any supplementary tokens that this test might wish to process.

Class Details

[line 33]
Squiz_Sniffs_Functions_FunctionDeclarationSniff.

Checks the function declaration is correct.



[ Top ]


Method Detail

getPatterns   [line 42]

array getPatterns( )

Returns an array of patterns to check are correct.
  • Access: protected

Overrides PHP_CodeSniffer_Standards_AbstractPatternSniff::getPatterns() (Returns the patterns that should be checked.)
[ Top ]


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