for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HnrAzevedo\Viewer;
use Exception;
trait CheckTrait{
protected function check_viewExist(string $viewfile){
if(!file_exists($this->path . $viewfile . '.view.php')){
$v = $this->path . $viewfile;
throw new Exception("Preview file {$v} not found");
}