src/Provider/Http/UdgerCom.php 1 location
|
@@ 150-152 (lines=3) @@
|
| 147 |
|
/* |
| 148 |
|
* Missing data? |
| 149 |
|
*/ |
| 150 |
|
if (! $content instanceof stdClass || ! isset($content->info)) { |
| 151 |
|
throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
return $content; |
| 155 |
|
} |
src/Provider/Http/UserAgentApiCom.php 1 location
|
@@ 145-147 (lines=3) @@
|
| 142 |
|
/* |
| 143 |
|
* Missing data? |
| 144 |
|
*/ |
| 145 |
|
if (! $content instanceof stdClass || ! isset($content->data)) { |
| 146 |
|
throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Data is missing "' . $response->getBody()->getContents() . '"'); |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
return $content->data; |
| 150 |
|
} |
src/Provider/Http/WhatIsMyBrowserCom.php 1 location
|
@@ 141-143 (lines=3) @@
|
| 138 |
|
throw new Exception\InvalidCredentialsException('Your API key "' . $this->apiKey . '" is not valid for ' . $this->getName()); |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
if (!isset($content->result) || $content->result !== 'success') { |
| 142 |
|
throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
/* |
| 146 |
|
* Missing data? |