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

Class: PEAR_Sniffs_Methods_OpeningMethodBraceSniff

Source Location: /PHP_CodeSniffer-0.1.0/CodeSniffer/Standards/PEAR/Sniffs/Methods/OpeningMethodBraceSniff.php

Class Overview


PEAR_Sniffs_Methods_OpeningMethodBraceSniff.


Author(s):

  • Squiz Pty Ltd

Methods


Inherited Variables

Inherited Methods


Class Details

[line 46]
PEAR_Sniffs_Methods_OpeningMethodBraceSniff.

Checks that the opening brace of a function is on the line after the function declaration.

  • Author: Squiz Pty Ltd


[ Top ]


Method Detail

process   [line 71]

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 ]

register   [line 55]

void register( )

Registers the tokens that this sniff wants to listen for.
  • Access: public

[ Top ]


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