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

Class: Squiz_Sniffs_Objects_ObjectInstantiationSniff

Source Location: /PHP_CodeSniffer-2.7.1/CodeSniffer/Standards/Squiz/Sniffs/Objects/ObjectInstantiationSniff.php

Class Overview


Squiz_Sniffs_Objects_ObjectInstantiationSniff.


Author(s):

Version:

  • Release: 2.7.1

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

[line 30]
Squiz_Sniffs_Objects_ObjectInstantiationSniff.

Ensures objects are assigned to a variable when instantiated.



[ Top ]


Method Detail

process   [line 55]

void process( PHP_CodeSniffer_File $phpcsFile, int $stackPtr)

Process the tokens that this sniff is listening for.
  • Access: public

Parameters:

PHP_CodeSniffer_File   $phpcsFile   —  The file where the token was found.
int   $stackPtr   —  The position in the stack where the token was found.

[ Top ]

register   [line 39]

array register( )

Registers the token types that this sniff wishes to listen to.
  • Access: public

[ Top ]


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