Skip to content

Commit 4bb2981

Browse files
committed
Bereinige den Code durch Entfernen überflüssiger Leerzeilen und verbessere die URL-Bauweise in der Client-Klasse.
1 parent 269f5e3 commit 4bb2981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Syntax/SteamApi/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ protected function sendRequest(Request $request): stdClass
208208
} catch (Exception $e) {
209209
throw new ApiCallFailedException($e->getMessage(), $e->getCode(), $e);
210210
}
211-
211+
212212
// For some resources, the Steam API responds with an empty response
213213
if (empty($result->body)) {
214214
throw new ApiCallFailedException('API call failed due to empty response', $result->code);
@@ -229,7 +229,7 @@ private function buildUrl($version = false): string
229229

230230
// If we have a version, add it
231231
if ($version) {
232-
return $url . $this->version . '/';
232+
return "{$url}{$this->version}/";
233233
}
234234

235235
return $url;

0 commit comments

Comments
 (0)