. */ use Fisharebest\Webtrees\Html; /** * Dump the passed variables and end the script. * * @param mixed * * @return void */ function dd(...$args): void { foreach ($args as $x) { var_dump($x); } die(1); } /** * Generate a URL for a named route. * * @param string $route * @param array $parameters * * @return string */ function route(string $route, array $parameters = []): string { $parameters = ['route' => $route] + $parameters; return Html::url('index.php', $parameters); }