いい加減push前にフォーマットする習慣をつけろ

This commit is contained in:
eai04191 2019-06-15 07:35:33 +09:00
parent 9306a4376c
commit fbecd97c03

View File

@ -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'];