phplinter\Report\JSON::_out PHP Method

_out() protected method

----------------------------------------------------------------------+
protected _out ( $out )
    protected function _out($out)
    {
        if (!empty($this->json['out'])) {
            if (is_dir($this->json['out'])) {
                $filename = rtrim('/', $this->json['out']) . '/phplinter.report.json';
            } else {
                $filename = $this->json['out'];
            }
            $this->write($filename, $out);
        } else {
            echo $out;
        }
    }