Property | Type | Description | |
---|---|---|---|
$score | * @var float | ||
$tokens | * @var Array |
Method | Description | |
---|---|---|
__construct ( $file, |
----------------------------------------------------------------------+ | |
lint ( ) : Array | ----------------------------------------------------------------------+ | |
nodes ( ) : Array | ----------------------------------------------------------------------+ | |
penalty ( ) : float | ----------------------------------------------------------------------+ | |
score ( ) : float | ----------------------------------------------------------------------+ |
Method | Description | |
---|---|---|
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 | ||
return | Array | ----------------------------------------------------------------------+ |
protected find ( $pos, $token, $limit = 10 ) : Int | ||
return | Int | ----------------------------------------------------------------------+ |
protected gather ( &$pos, $tokens ) : Int | ||
return | Int | ----------------------------------------------------------------------+ |
protected last_newline ( $pos ) : Int | ||
$pos | Int | |
return | Int | ----------------------------------------------------------------------+ |
public lint ( ) : Array | ||
return | Array | ----------------------------------------------------------------------+ |
protected measure_comment ( $pos, $depth, &$ret ) : integer | ||
$pos | int | |
$depth | int | |
return | integer | ----------------------------------------------------------------------+ |
protected measure_file ( ) |
protected next ( $pos ) : Int | ||
return | Int | ----------------------------------------------------------------------+ |
public nodes ( ) : Array | ||
return | Array | ----------------------------------------------------------------------+ |
protected open_scope ( $pos, |
||
$node |
protected prev ( $pos ) : Int | ||
return | Int | ----------------------------------------------------------------------+ |
protected profile ( $flushmsg = false ) |