PHP Class phplinter\Report

Show file Open project: robotis/PHPLinter

Protected Properties

Property Type Description
$options * @var int
$output_dir * @var String

Public Methods

Method Description
__construct ( $output_dir = null, $OPTIONS = null ) ----------------------------------------------------------------------+
average ( $penalty, $num ) ----------------------------------------------------------------------+
color ( $msg, $color = "black", $nl = false ) : String ----------------------------------------------------------------------+
score ( $penalty, $num = null ) ----------------------------------------------------------------------+
toCli ( $report, $format = "| {F} | {M} | `{W}` Line: {L} " ) ----------------------------------------------------------------------+
toHtml ( $root, $report, $penaltys ) ----------------------------------------------------------------------+

Protected Methods

Method Description
css ( ) : String ----------------------------------------------------------------------+
get_score_class ( $score ) : String ----------------------------------------------------------------------+
html ( $content, $depth ) : HTML ----------------------------------------------------------------------+
output_indexes ( $urls, $penaltys, $path = '', $depth ) : Array ----------------------------------------------------------------------+
parts ( $parts, $url, &$urls ) ----------------------------------------------------------------------+
sort ( $urls ) : Array ----------------------------------------------------------------------+

Method Details

__construct() public method

----------------------------------------------------------------------+
public __construct ( $output_dir = null, $OPTIONS = null )
$output_dir String (Path) ----------------------------------------------------------------------+

average() public method

----------------------------------------------------------------------+
public average ( $penalty, $num )
$penalty Float ----------------------------------------------------------------------+

color() public method

----------------------------------------------------------------------+
public color ( $msg, $color = "black", $nl = false ) : String
return String ----------------------------------------------------------------------+

css() protected method

----------------------------------------------------------------------+
protected css ( ) : String
return String ----------------------------------------------------------------------+

get_score_class() protected method

----------------------------------------------------------------------+
protected get_score_class ( $score ) : String
$score float
return String ----------------------------------------------------------------------+

html() protected method

----------------------------------------------------------------------+
protected html ( $content, $depth ) : HTML
$content HTML
$depth int
return HTML ----------------------------------------------------------------------+

output_indexes() protected method

----------------------------------------------------------------------+
protected output_indexes ( $urls, $penaltys, $path = '', $depth ) : Array
$urls Array
$penaltys Array
$path String
$depth int
return Array ----------------------------------------------------------------------+

parts() protected method

----------------------------------------------------------------------+
protected parts ( $parts, $url, &$urls )
$parts Array
$url Array
$urls Reference (Array) ----------------------------------------------------------------------+

score() public method

----------------------------------------------------------------------+
public score ( $penalty, $num = null )
$penalty Float ----------------------------------------------------------------------+

sort() protected method

----------------------------------------------------------------------+
protected sort ( $urls ) : Array
return Array ----------------------------------------------------------------------+

toCli() public method

----------------------------------------------------------------------+
public toCli ( $report, $format = "| {F} | {M} | `{W}` Line: {L} " )
$report Array ----------------------------------------------------------------------+

toHtml() public method

----------------------------------------------------------------------+
public toHtml ( $root, $report, $penaltys )
$report Array
$penaltys Array ----------------------------------------------------------------------+

Property Details

$options protected property

* @var int
protected $options

$output_dir protected property

* @var String
protected $output_dir