|
@@ 161-163 (lines=3) @@
|
| 158 |
|
throw new \InvalidArgumentException('$response of doRegister() method only accepts object.'); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
if( property_exists( $response, 'errorCode') && $response->errorCode !== 0 ) { |
| 162 |
|
throw new Error('User-agent returned error. Error code: ' . $response->errorCode, ERR_BAD_UA_RETURNING ); |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
if( !is_bool( $includeCert ) ) { |
| 166 |
|
throw new \InvalidArgumentException('$include_cert of doRegister() method only accepts boolean.'); |
|
@@ 284-286 (lines=3) @@
|
| 281 |
|
throw new \InvalidArgumentException('$response of doAuthenticate() method only accepts object.'); |
| 282 |
|
} |
| 283 |
|
|
| 284 |
|
if( property_exists( $response, 'errorCode') && $response->errorCode !== 0 ) { |
| 285 |
|
throw new Error('User-agent returned error. Error code: ' . $response->errorCode, ERR_BAD_UA_RETURNING ); |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
/** @var object|null $req */ |
| 289 |
|
$req = null; |