ImportCharLinter
in package
implements
CharLinter
Table of Contents
Interfaces
Properties
- $IMPORT_RULE : string
Methods
- lintChar() : bool|null
- Performs lint for a given char, check @import rules
- isImportContext() : bool
- isImportStart() : bool
Properties
$IMPORT_RULE
private
static string
$IMPORT_RULE
= '@import'
Methods
lintChar()
Performs lint for a given char, check @import rules
public
lintChar(string $charValue, LintContext $lintContext) : bool|null
Parameters
- $charValue : string
- $lintContext : LintContext
Return values
bool|null —: true if the process should continue, else false, null if this char is not an @import rule
isImportContext()
private
isImportContext(LintContext $lintContext) : bool
Parameters
- $lintContext : LintContext
Return values
boolisImportStart()
private
isImportStart(string $charValue, LintContext $lintContext) : bool
Parameters
- $charValue : string
- $lintContext : LintContext