Свойство | Тип | Описание | |
---|---|---|---|
$score | * @var float | ||
$tokens | * @var Array |
Метод | Описание | |
---|---|---|
__construct ( $file, |
----------------------------------------------------------------------+ | |
lint ( ) : Array | ----------------------------------------------------------------------+ | |
nodes ( ) : Array | ----------------------------------------------------------------------+ | |
penalty ( ) : float | ----------------------------------------------------------------------+ | |
score ( ) : float | ----------------------------------------------------------------------+ |
Метод | Описание | |
---|---|---|
close_scope ( $pos, |
----------------------------------------------------------------------+ | |
debug ( $out, $depth, $mode = OPT_DEBUG, $smap = false ) | ----------------------------------------------------------------------+ | |
determine_type ( $pos, |
----------------------------------------------------------------------+ | |
find ( $pos, $token, $limit = 10 ) : Int | ----------------------------------------------------------------------+ | |
gather ( &$pos, $tokens ) : Int | ----------------------------------------------------------------------+ | |
last_newline ( $pos ) : Int | ----------------------------------------------------------------------+ | |
measure ( $pos, |
----------------------------------------------------------------------+ | |
measure_comment ( $pos, $depth, &$ret ) : integer | ----------------------------------------------------------------------+ | |
measure_file ( ) | ----------------------------------------------------------------------+ | |
next ( $pos ) : Int | ----------------------------------------------------------------------+ | |
open_scope ( $pos, |
----------------------------------------------------------------------+ | |
prev ( $pos ) : Int | ----------------------------------------------------------------------+ | |
profile ( $flushmsg = false ) | ----------------------------------------------------------------------+ |
public __construct ( $file, |
||
$config |
protected close_scope ( $pos, |
||
$node |
protected debug ( $out, $depth, $mode = OPT_DEBUG, $smap = false ) | ||
$out | String | |
$depth | int ----------------------------------------------------------------------+ |
protected determine_type ( $pos, |
||
$node | ||
$next_node | ||
Результат | Array | ----------------------------------------------------------------------+ |
protected find ( $pos, $token, $limit = 10 ) : Int | ||
Результат | Int | ----------------------------------------------------------------------+ |
protected gather ( &$pos, $tokens ) : Int | ||
Результат | Int | ----------------------------------------------------------------------+ |
protected last_newline ( $pos ) : Int | ||
$pos | Int | |
Результат | Int | ----------------------------------------------------------------------+ |
public lint ( ) : Array | ||
Результат | Array | ----------------------------------------------------------------------+ |
protected measure_comment ( $pos, $depth, &$ret ) : integer | ||
$pos | int | |
$depth | int | |
Результат | integer | ----------------------------------------------------------------------+ |
protected measure_file ( ) |
protected next ( $pos ) : Int | ||
Результат | Int | ----------------------------------------------------------------------+ |
public nodes ( ) : Array | ||
Результат | Array | ----------------------------------------------------------------------+ |
protected open_scope ( $pos, |
||
$node |
protected prev ( $pos ) : Int | ||
Результат | Int | ----------------------------------------------------------------------+ |
protected profile ( $flushmsg = false ) |