inline if

This commit is contained in:
rennokki 2020-08-13 09:47:55 +03:00 committed by GitHub
parent 99c6c06897
commit 371bf5418c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -95,10 +95,8 @@ class HttpStatisticsLogger implements StatisticsLogger
$overridenUrl = config('websockets.statistics.base_url_override');
if ($overridenUrl) {
return $overridenUrl.action($action, [], false);
}
return action($action);
return $overridentUrl
? $overridenUrl.action($action, [], false)
: action($action);
}
}