kahlan\cli\Kahlan::_reporting PHP Method

_reporting() protected method

The default 'reporting' filter.
protected _reporting ( )
    protected function _reporting()
    {
        return Filter::on($this, 'reporting', [], function ($chain) {
            $reporter = $this->reporters()->get('coverage');
            if (!$reporter) {
                return;
            }
            if ($this->commandLine()->exists('clover')) {
                Clover::write(['collector' => $reporter, 'file' => $this->commandLine()->get('clover')]);
            }
            if ($this->commandLine()->exists('istanbul')) {
                Istanbul::write(['collector' => $reporter, 'file' => $this->commandLine()->get('istanbul')]);
            }
            if ($this->commandLine()->exists('lcov')) {
                Lcov::write(['collector' => $reporter, 'file' => $this->commandLine()->get('lcov')]);
            }
        });
    }