Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 371bf54

Browse files
authored
inline if
1 parent 99c6c06 commit 371bf54

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Statistics/Logger/HttpStatisticsLogger.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ protected function storeStatisticsUrl(): string
9595

9696
$overridenUrl = config('websockets.statistics.base_url_override');
9797

98-
if ($overridenUrl) {
99-
return $overridenUrl.action($action, [], false);
100-
}
101-
102-
return action($action);
98+
return $overridentUrl
99+
? $overridenUrl.action($action, [], false)
100+
: action($action);
103101
}
104102
}

0 commit comments

Comments
 (0)