src/Aviat/AnimeClient/Model/Manga.php 1 location
|
@@ 160-166 (lines=7) @@
|
157 |
|
|
158 |
|
$response = $this->get('search.json', $config); |
159 |
|
|
160 |
|
if ($response->getStatusCode() != 200) |
161 |
|
{ |
162 |
|
$logger->warning("Non 200 response for search api call"); |
163 |
|
$logger->warning($response->getBody()); |
164 |
|
|
165 |
|
throw new RuntimeException($response->getEffectiveUrl()); |
166 |
|
} |
167 |
|
|
168 |
|
return Json::decode($response->getBody(), TRUE); |
169 |
|
} |
src/Aviat/AnimeClient/Model/Anime.php 1 location
|
@@ 190-196 (lines=7) @@
|
187 |
|
|
188 |
|
$response = $this->get('search/anime', $config); |
189 |
|
|
190 |
|
if ($response->getStatusCode() != 200) |
191 |
|
{ |
192 |
|
$logger->warning("Non 200 response for search api call"); |
193 |
|
$logger->warning($response->getBody()); |
194 |
|
|
195 |
|
throw new RuntimeException($response->getEffectiveUrl()); |
196 |
|
} |
197 |
|
|
198 |
|
return Json::decode($response->getBody(), TRUE); |
199 |
|
} |