Class: Generic_Sniffs_Files_ByteOrderMarkSniff
Source Location: /PHP_CodeSniffer-2.5.0/CodeSniffer/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php
Generic_Sniffs_Files_ByteOrderMarkSniff.
Author(s):
Version:
Copyright:
- 2010-2014 mediaSELF Sp. z o.o.
Inherited Variables
Inherited Methods
Class Details
[line 30]
Generic_Sniffs_Files_ByteOrderMarkSniff.
A simple sniff for detecting BOMs that may corrupt application work.
Class Variables
$bomDefinitions = array(
'UTF-8' => 'efbbbf',
'UTF-16 (BE)' => 'feff',
'UTF-16 (LE)' => 'fffe',
)
[line 40]
List of supported BOM definitions.
Use encoding names as keys and hex BOM representations as values.
Method Detail
process [line 68]
Processes this sniff, when one of its tokens is encountered.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
register [line 52]
Returns an array of tokens this test wants to listen for.
Documentation generated on 2019年3月11日 15:10:29 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.