Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
ColonSpacingSniff Class Reference
Inheritance diagram for ColonSpacingSniff:

Public Member Functions

 register ()
 
 process (File $phpcsFile, $stackPtr)
 

Data Fields

 $supportedTokenizers = [TokenizerSymbolsInterface::TOKENIZER_CSS]
 

Detailed Description

Class ColonSpacingSniff

Ensure that single quotes are used

http://devdocs.magento.com/guides/v2.0/coding-standards/code-standard-less.html#properties-colon-indents

Definition at line 20 of file ColonSpacingSniff.php.

Member Function Documentation

◆ process()

process ( File  $phpcsFile,
  $stackPtr 
)

{}

Definition at line 40 of file ColonSpacingSniff.php.

41  {
42  $tokens = $phpcsFile->getTokens();
43 
44  if ($this->needValidateSpaces($phpcsFile, $stackPtr, $tokens)) {
45  $this->validateSpaces($phpcsFile, $stackPtr, $tokens);
46  }
47  }
$tokens
Definition: cards_list.phtml:9

◆ register()

register ( )

{}

Definition at line 32 of file ColonSpacingSniff.php.

33  {
34  return [T_COLON];
35  }

Field Documentation

◆ $supportedTokenizers

$supportedTokenizers = [TokenizerSymbolsInterface::TOKENIZER_CSS]

Definition at line 27 of file ColonSpacingSniff.php.


The documentation for this class was generated from the following file: