@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $endpoint = 'sts.itau.com.br/seguranca/v1/certificado/solicitacao'; |
| 17 | 17 | $headers = [ |
| 18 | 18 | 'Content-Type: text/plain', |
| 19 | - 'Authorization: Bearer ' . $token |
|
| 19 | + 'Authorization: Bearer '.$token |
|
| 20 | 20 | ]; |
| 21 | 21 | |
| 22 | 22 | $curl = curl_init(); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | if ($response === false) { |
| 35 | 35 | $error = curl_error($curl); |
| 36 | 36 | curl_close($curl); |
| 37 | - throw new Exception('CURL Error: ' . $error, 100); |
|
| 37 | + throw new Exception('CURL Error: '.$error, 100); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | // Verify error |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | ]; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - if (! $response) { |
|
| 60 | + if (!$response) { |
|
| 61 | 61 | throw new Exception("Empty response, curl_error: $errorMessage", $statusCode); |
| 62 | 62 | } |
| 63 | 63 | return $response; |