class Linter

The linter itself.

Methods

static array
getLines(string $str)

Gets the starting position of each line.

static array
findLineNumberAndColumn(array $lines, int $pos)

Computes the number of the line and column given an absolute position.

static array
lint(string $query)

Runs the linting process.

Details

at line 30
static array getLines(string $str)

Gets the starting position of each line.

Parameters

string $str String to be analyzed.

Return Value

array

at line 74
static array findLineNumberAndColumn(array $lines, int $pos)

Computes the number of the line and column given an absolute position.

Parameters

array $lines The starting position of each line.
int $pos The absolute position

Return Value

array

at line 96
static array lint(string $query)

Runs the linting process.

Parameters

string $query The query to be checked.

Return Value

array