Ignore unreachable code

This commit is contained in:
Pig Fang 2019-07-02 11:36:43 +08:00
parent 0bbeaa7246
commit 8fa8c6173e

View File

@ -9,8 +9,10 @@ if (! function_exists('webpack_assets')) {
function webpack_assets($relativeUri)
{
if (app()->environment('development')) {
// @codeCoverageIgnoreStart
$host = parse_url(url('/'), PHP_URL_HOST);
return "http://$host:8080/$relativeUri"; // @codeCoverageIgnore
return "http://$host:8080/$relativeUri";
// @codeCoverageIgnoreEnd
} else {
$path = app('webpack')->$relativeUri;
$cdn = option('cdn_address');