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')]);
}
});
}