@@ -408,7 +408,7 @@ |
||
| 408 | 408 | * Fixes a certificate where the signature contains unused bits. |
| 409 | 409 | * |
| 410 | 410 | * @param string $cert |
| 411 | - * @return mixed |
|
| 411 | + * @return string |
|
| 412 | 412 | */ |
| 413 | 413 | private function fixSignatureUnusedBits($cert) |
| 414 | 414 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | public function __construct($appId, $attestDir = null) |
| 99 | 99 | { |
| 100 | 100 | if (OPENSSL_VERSION_NUMBER < 0x10000000) { |
| 101 | - throw new Error('OpenSSL has to be at least version 1.0.0, this is ' . OPENSSL_VERSION_TEXT, ERR_OLD_OPENSSL); |
|
| 101 | + throw new Error('OpenSSL has to be at least version 1.0.0, this is '.OPENSSL_VERSION_TEXT, ERR_OLD_OPENSSL); |
|
| 102 | 102 | } |
| 103 | 103 | $this->appId = $appId; |
| 104 | 104 | $this->attestDir = $attestDir; |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | if (property_exists($response, 'errorCode') && $response->errorCode !== 0) { |
| 147 | - throw new Error('User-agent returned error. Error code: ' . $response->errorCode, ERR_BAD_UA_RETURNING); |
|
| 147 | + throw new Error('User-agent returned error. Error code: '.$response->errorCode, ERR_BAD_UA_RETURNING); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | if (!is_bool($includeCert)) { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | if (property_exists($response, 'errorCode') && $response->errorCode !== 0) { |
| 260 | - throw new Error('User-agent returned error. Error code: ' . $response->errorCode, ERR_BAD_UA_RETURNING); |
|
| 260 | + throw new Error('User-agent returned error. Error code: '.$response->errorCode, ERR_BAD_UA_RETURNING); |
|
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 | /** @var object|null $req */ |