PHP Class phplinter\Linter

Show file Open project: robotis/PHPLinter

Protected Properties

Property Type Description
$score * @var float
$tokens * @var Array

Public Methods

Method Description
__construct ( $file, Config $config ) ----------------------------------------------------------------------+
lint ( ) : Array ----------------------------------------------------------------------+
nodes ( ) : Array ----------------------------------------------------------------------+
penalty ( ) : float ----------------------------------------------------------------------+
score ( ) : float ----------------------------------------------------------------------+

Protected Methods

Method Description
close_scope ( $pos, Node $node ) ----------------------------------------------------------------------+
debug ( $out, $depth, $mode = OPT_DEBUG, $smap = false ) ----------------------------------------------------------------------+
determine_type ( $pos, Node $node, Node &$next_node ) : Array ----------------------------------------------------------------------+
find ( $pos, $token, $limit = 10 ) : Int ----------------------------------------------------------------------+
gather ( &$pos, $tokens ) : Int ----------------------------------------------------------------------+
last_newline ( $pos ) : Int ----------------------------------------------------------------------+
measure ( $pos, Node $node, &$ret ) : integer ----------------------------------------------------------------------+
measure_comment ( $pos, $depth, &$ret ) : integer ----------------------------------------------------------------------+
measure_file ( ) ----------------------------------------------------------------------+
next ( $pos ) : Int ----------------------------------------------------------------------+
open_scope ( $pos, Node $node ) ----------------------------------------------------------------------+
prev ( $pos ) : Int ----------------------------------------------------------------------+
profile ( $flushmsg = false ) ----------------------------------------------------------------------+

Method Details

__construct() public method

----------------------------------------------------------------------+
public __construct ( $file, Config $config )
$config Config

close_scope() protected method

----------------------------------------------------------------------+
protected close_scope ( $pos, Node $node )
$node phplinter\Lint\Node

debug() protected method

----------------------------------------------------------------------+
protected debug ( $out, $depth, $mode = OPT_DEBUG, $smap = false )
$out String
$depth int ----------------------------------------------------------------------+

determine_type() protected method

----------------------------------------------------------------------+
protected determine_type ( $pos, Node $node, Node &$next_node ) : Array
$node phplinter\Lint\Node
$next_node phplinter\Lint\Node
return Array ----------------------------------------------------------------------+

find() protected method

----------------------------------------------------------------------+
protected find ( $pos, $token, $limit = 10 ) : Int
return Int ----------------------------------------------------------------------+

gather() protected method

----------------------------------------------------------------------+
protected gather ( &$pos, $tokens ) : Int
return Int ----------------------------------------------------------------------+

last_newline() protected method

----------------------------------------------------------------------+
protected last_newline ( $pos ) : Int
$pos Int
return Int ----------------------------------------------------------------------+

lint() public method

----------------------------------------------------------------------+
public lint ( ) : Array
return Array ----------------------------------------------------------------------+

measure() protected method

----------------------------------------------------------------------+
protected measure ( $pos, Node $node, &$ret ) : integer
$node phplinter\Lint\Node
return integer ----------------------------------------------------------------------+

measure_comment() protected method

----------------------------------------------------------------------+
protected measure_comment ( $pos, $depth, &$ret ) : integer
$pos int
$depth int
return integer ----------------------------------------------------------------------+

measure_file() protected method

----------------------------------------------------------------------+
protected measure_file ( )

next() protected method

----------------------------------------------------------------------+
protected next ( $pos ) : Int
return Int ----------------------------------------------------------------------+

nodes() public method

----------------------------------------------------------------------+
public nodes ( ) : Array
return Array ----------------------------------------------------------------------+

open_scope() protected method

----------------------------------------------------------------------+
protected open_scope ( $pos, Node $node )
$node phplinter\Lint\Node

penalty() public method

----------------------------------------------------------------------+
public penalty ( ) : float
return float ----------------------------------------------------------------------+

prev() protected method

----------------------------------------------------------------------+
protected prev ( $pos ) : Int
return Int ----------------------------------------------------------------------+

profile() protected method

----------------------------------------------------------------------+
protected profile ( $flushmsg = false )

score() public method

----------------------------------------------------------------------+
public score ( ) : float
return float ----------------------------------------------------------------------+

Property Details

$score protected property

* @var float
protected $score

$tokens protected property

* @var Array
protected $tokens