for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Yii\Debug\Collector;
use Yiisoft\View\Event\WebView\AfterRender;
final class WebViewCollector implements CollectorInterface
{
use CollectorTrait;
private array $view = [];
public function getCollected(): array
return $this->view;
}
public function collect(AfterRender $event): void
if (!$this->isActive()) {
return;
$this->view[] = [
'output' => $event->getResult(),
'file' => $event->getFile(),
'parameters' => $event->getParameters(),
];
private function reset(): void
reset()
This check looks for private methods that have been defined, but are not used inside the class.
$this->view = [];
This check looks for private methods that have been defined, but are not used inside the class.