いい加減push前にフォーマットする習慣をつけろ
This commit is contained in:
parent
9306a4376c
commit
fbecd97c03
@ -26,7 +26,7 @@ class SteamResolver implements Resolver
|
||||
$res = $this->client->get('https://store.steampowered.com/api/appdetails/?l=japanese&appids=' . $appid);
|
||||
if ($res->getStatusCode() === 200) {
|
||||
$json = json_decode($res->getBody()->getContents(), true);
|
||||
if($json[$appid]['success'] === false){
|
||||
if ($json[$appid]['success'] === false) {
|
||||
throw new \RuntimeException("API response [$appid][success] is false: $url");
|
||||
}
|
||||
$data = $json[$appid]['data'];
|
||||
|
Loading…
Reference in New Issue
Block a user