Squiz_Sniffs_Objects_ObjectMemberCommaSniff
in package
implements
PHP_CodeSniffer_Sniff
Squiz_Sniffs_Objects_ObjectMemberCommaSniff.
Ensures the last member of an object is not followed by a comma.
Tags
Interfaces, Classes and Traits
- PHP_CodeSniffer_Sniff
- Represents a PHP_CodeSniffer sniff for sniffing coding standards.
Table of Contents
- $supportedTokenizers : array<string|int, mixed>
- A list of tokenizers this sniff supports.
- process() : void
- Process the tokens that this sniff is listening for.
- register() : array<string|int, mixed>
- Registers the token types that this sniff wishes to listen to.
Properties
$supportedTokenizers
A list of tokenizers this sniff supports.
public
array<string|int, mixed>
$supportedTokenizers
= array('JS')
Methods
process()
Process the tokens that this sniff is listening for.
public
process(PHP_CodeSniffer_File $phpcsFile, int $stackPtr) : void
Parameters
- $phpcsFile : PHP_CodeSniffer_File
-
The file where the token was found.
- $stackPtr : int
-
The position in the stack where the token was found.
Return values
void —register()
Registers the token types that this sniff wishes to listen to.
public
register() : array<string|int, mixed>