Property | Type | Description | |
---|---|---|---|
$locals | * @var Array | ||
$node | * @var Object | ||
$penalty | * @var Float | ||
$reports | * @var Array |
Method | Description | |
---|---|---|
__construct ( $node, $config ) | ----------------------------------------------------------------------+ __construct | |
bind ( |
----------------------------------------------------------------------+ Bind parent node to current node | |
common_tokens ( $pos ) | ----------------------------------------------------------------------+ Tokens common to all scopes. | |
lint ( ) : Array | ----------------------------------------------------------------------+ Analyse node | |
penalty ( ) : Float | ----------------------------------------------------------------------+ Penalty |
Method | Description | |
---|---|---|
add_parent_data ( $name, $type ) | ----------------------------------------------------------------------+ Add data to node parent | |
find ( $pos, $token, $limit = 10 ) : Int | ----------------------------------------------------------------------+ Find the next token. | |
next ( $pos ) : Int | ----------------------------------------------------------------------+ Return the next meaningfull token | |
parse_args ( &$i ) : Array | ----------------------------------------------------------------------+ Parse argument-list | |
parse_string ( $pos ) | ----------------------------------------------------------------------+ Parse a string token | |
prev ( $pos ) : Int | ----------------------------------------------------------------------+ Return the previous meaningfull token | |
process_args ( $locals, $args ) | ----------------------------------------------------------------------+ Process argument list to function | |
process_locals ( $locals, $_locals, $args ) | ----------------------------------------------------------------------+ Count and process locals at function scope | |
profile ( $flushmsg = false ) | ----------------------------------------------------------------------+ Internal profiling | |
recurse ( ) | ----------------------------------------------------------------------+ Analyse nodes owned by current node ----------------------------------------------------------------------+ | |
report ( $flag, $extra = null, $line = null ) : FIXME | ----------------------------------------------------------------------+ FIXME | |
sec_backtick ( $pos ) | ----------------------------------------------------------------------+ Search for security infractions in backticks | |
sec_callbacks ( $pos ) | ----------------------------------------------------------------------+ Search for security infractions in callback positions | |
sec_includes ( $pos ) | ----------------------------------------------------------------------+ Search for security infractions in includes | |
sec_strings ( $pos ) | ----------------------------------------------------------------------+ Search for security infractions in strings | |
security ( $pos ) | ----------------------------------------------------------------------+ Search for security infractions |
public __construct ( $node, $config ) |
protected add_parent_data ( $name, $type ) |
public bind ( |
||
$parent | ||
return | this | ----------------------------------------------------------------------+ |
public common_tokens ( $pos ) |
protected find ( $pos, $token, $limit = 10 ) : Int | ||
return | Int | ----------------------------------------------------------------------+ |
public lint ( ) : Array | ||
return | Array | Reports ----------------------------------------------------------------------+ |
protected next ( $pos ) : Int | ||
return | Int | ----------------------------------------------------------------------+ |
protected parse_args ( &$i ) : Array | ||
return | Array | ----------------------------------------------------------------------+ |
protected parse_string ( $pos ) |
public penalty ( ) : Float | ||
return | Float | ----------------------------------------------------------------------+ |
protected prev ( $pos ) : Int | ||
return | Int | ----------------------------------------------------------------------+ |
protected process_args ( $locals, $args ) |
protected process_locals ( $locals, $_locals, $args ) |
protected profile ( $flushmsg = false ) |
protected recurse ( ) |
protected report ( $flag, $extra = null, $line = null ) : FIXME | ||
return | FIXME | ----------------------------------------------------------------------+ |
protected sec_backtick ( $pos ) |
protected sec_callbacks ( $pos ) |
protected sec_includes ( $pos ) |
protected sec_strings ( $pos ) |
protected security ( $pos ) |