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

Class: CSS

Source Location: /PHP_CodeSniffer-3.1.1/src/Tokenizers/CSS.php

Class Overview

Tokenizer
   |
   --PHP
      |
      --CSS

Tokenizes CSS code.


Author(s):

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: PHP

PHP::processAdditional()
Performs additional processing after main tokenizing.
PHP::resolveSimpleToken()
Converts simple tokens into a format that conforms to complex tokens produced by token_get_all().
PHP::standardiseToken()
Takes a token produced from
  1. token_get_all()
and produces a more uniform token.
PHP::tokenize()
Creates an array of tokens when given some PHP code.

Class: Tokenizer

Tokenizer::__construct()
Initialise and run the tokenizer.
Tokenizer::getTokens()
Gets the array of tokens.
Tokenizer::isMinifiedContent()
Checks the content to see if it looks minified.
Tokenizer::processAdditional()
Performs additional processing after main tokenizing.
Tokenizer::replaceTabsInToken()
Replaces tabs in original token content with spaces.
Tokenizer::tokenize()
Creates an array of tokens when given some content.

Class Details

[line 16]
Tokenizes CSS code.


[ Top ]


Method Detail

__construct (Constructor)   [line 32]

void __construct( string $content, Config $config, [string $eolChar = '\n'])

Initialise the tokenizer.

Pre-checks the content to see if it looks minified.

  • Throws: TokenizerException If the file appears to be minified.
  • Access: public

Overrides Tokenizer::__construct() (Initialise and run the tokenizer.)

Parameters:

string   $content   —  The content to tokenize,
\PHP_CodeSniffer\Config   $config   —  The config data for the run.
string   $eolChar   —  The EOL char used in the content.

[ Top ]

processAdditional   [line 525]

void processAdditional( )

Performs additional processing after main tokenizing.
  • Access: public

Overrides PHP::processAdditional() (Performs additional processing after main tokenizing.)
[ Top ]

tokenize   [line 52]

array tokenize( string $string)

Creates an array of tokens when given some CSS code.

Uses the PHP tokenizer to do all the tricky work

  • Access: public

Overrides PHP::tokenize() (Creates an array of tokens when given some PHP code.)

Parameters:

string   $string   —  The string to tokenize.

[ Top ]


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