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

Class: Squiz_Sniffs_CodeAnalysis_EmptyStatementSniff

Source Location: /PHP_CodeSniffer-1.5.2/CodeSniffer/Standards/Squiz/Sniffs/CodeAnalysis/EmptyStatementSniff.php

Class Overview

Generic_Sniffs_CodeAnalysis_EmptyStatementSniff
   |
   --Squiz_Sniffs_CodeAnalysis_EmptyStatementSniff

This sniff class detects empty statement.


Author(s):

Version:

  • Release: 1.5.2

Copyright:

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

Variables


Inherited Variables

Inherited Methods

Class: Generic_Sniffs_CodeAnalysis_EmptyStatementSniff

Generic_Sniffs_CodeAnalysis_EmptyStatementSniff::process()
Processes this test, when one of its tokens is encountered.
Generic_Sniffs_CodeAnalysis_EmptyStatementSniff::register()
Registers the tokens that this sniff wants to listen for.

Class Details

[line 30]
This sniff class detects empty statement.


[ Top ]


Class Variables

$checkedTokens = array(
                                T_DO      => true,
                                T_ELSE    => true,
                                T_ELSEIF  => true,
                                T_FOR     => true,
                                T_FOREACH => true,
                                T_IF      => true,
                                T_SWITCH  => true,
                                T_WHILE   => true,
                               )

[line 41]

List of block tokens that this sniff covers.

The key of this hash identifies the required token while the boolean value says mark an error or mark a warning.

  • Access: protected

Type:   array
Overrides:   Array


[ Top ]



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