Documentation

PHP_CodeSniffer_Tokenizers_CSS extends PHP_CodeSniffer_Tokenizers_PHP
in package

Tokenizes CSS code.

Tags
category

PHP

author

Greg Sherwood gsherwood@squiz.net

copyright

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

license

https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

version

Release: @package_version@

link
http://pear.php.net/package/PHP_CodeSniffer

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.

Return values
array<string|int, mixed>

Search results