PHP_CodeSniffer_Tokenizers_CSS
extends PHP_CodeSniffer_Tokenizers_PHP
in package
Tokenizes CSS code.
Tags
Table of Contents
- $skipMinified : bool
- If TRUE, files that appear to be minified will not be processed.
- processAdditional() : void
- Performs additional processing after main tokenizing.
- tokenizeString() : array<string|int, mixed>
- Creates an array of tokens when given some CSS code.
Properties
$skipMinified
If TRUE, files that appear to be minified will not be processed.
public
bool
$skipMinified
= rue
Methods
processAdditional()
Performs additional processing after main tokenizing.
public
processAdditional(array<string|int, mixed> &$tokens, string $eolChar) : void
Parameters
- $tokens : array<string|int, mixed>
-
The array of tokens to process.
- $eolChar : string
-
The EOL character to use for splitting strings.
Return values
void —tokenizeString()
Creates an array of tokens when given some CSS code.
public
tokenizeString(string $string[, string $eolChar = '\n' ]) : array<string|int, mixed>
Uses the PHP tokenizer to do all the tricky work
Parameters
- $string : string
-
The string to tokenize.
- $eolChar : string = '\n'
-
The EOL character to use for splitting strings.