private function prepareDefaultFilePath(string $file, bool $fileCheck = true): string
    {
        $file = sprintf('%s/app/service/_default/view/%s.php', APP_DIR, $file);
        if ($fileCheck && !file_exists($file)) {
            throw new ViewException("View file '{$file}' not found");
        }

        return $file;
    }
private function prepareDefaultFilePath(string $file, bool $fileCheck = true): string
    {
        $file = sprintf('%s/app/service/_default/view/%s.php', APP_DIR, $file);
        if ($fileCheck && !file_exists($file)) {
            throw new ViewException("View file '{$file}' not found");
        }

        return $file;
    }
private function prepareDefaultFilePath ( string $ file , bool $ fileCheck = true ) : string { $ file = sprintf ( '%s/app/service/_default/view/%s.php' , APP_DIR , $ file ) ; if ( $ fileCheck && ! file_exists ( $ file ) ) { throw new ViewException ( "View file '{$file}' not found" ) ; } return $ file ; }
Prepare default file path.
@param  string $file
@param  bool   $fileCheck
@return string
@throws froq\view\ViewException
Prepare default file path .