phplinter\Report\JSON::_parse PHP Method

_parse() protected method

----------------------------------------------------------------------+
protected _parse ( $report ) : Array
return Array output ----------------------------------------------------------------------+
    protected function _parse($report)
    {
        $out = array();
        foreach ($report as $_) {
            $t = array('message' => $_['message'], 'line' => $_['line'], 'flag' => $_['flag']);
            if ($_['where'] != 'commment') {
                $t['where'] = $_['where'];
            }
            $out[] = $t;
        }
        return $out;
    }