@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function __construct(Invoice $invoice, $settings) |
62 | 62 | { |
63 | 63 | $this->invoice($invoice); |
64 | - $this->settings= (object) $settings; |
|
64 | + $this->settings = (object) $settings; |
|
65 | 65 | $this->client = new Client(); |
66 | 66 | $this->oauthToken = $this->oauth(); |
67 | 67 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | RequestOptions::HEADERS => [ |
114 | 114 | 'Agent' => $this->invoice->getDetail('agent') ?? 'WEB', |
115 | 115 | 'Content-Type' => 'application/json', |
116 | - 'Authorization' => 'Bearer ' . $this->oauthToken, |
|
116 | + 'Authorization' => 'Bearer '.$this->oauthToken, |
|
117 | 117 | 'Digipay-Version' => '2022-02-02', |
118 | 118 | ], |
119 | 119 | RequestOptions::HTTP_ERRORS => false, |
@@ -148,12 +148,12 @@ discard block |
||
148 | 148 | |
149 | 149 | $response = $this->client->request( |
150 | 150 | 'POST', |
151 | - $this->settings->apiVerificationUrl . $tracingId, |
|
151 | + $this->settings->apiVerificationUrl.$tracingId, |
|
152 | 152 | [ |
153 | 153 | RequestOptions::BODY => '{}', |
154 | 154 | RequestOptions::HEADERS => [ |
155 | 155 | "Accept" => "application/json", |
156 | - "Authorization" => "Bearer " . $this->oauthToken, |
|
156 | + "Authorization" => "Bearer ".$this->oauthToken, |
|
157 | 157 | ], |
158 | 158 | RequestOptions::HTTP_ERRORS => false, |
159 | 159 | ] |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $this->settings->apiOauthUrl, |
183 | 183 | [ |
184 | 184 | RequestOptions::HEADERS => [ |
185 | - 'Authorization' => 'Basic ' . base64_encode("{$this->settings->client_id}:{$this->settings->client_secret}"), |
|
185 | + 'Authorization' => 'Basic '.base64_encode("{$this->settings->client_id}:{$this->settings->client_secret}"), |
|
186 | 186 | ], |
187 | 187 | RequestOptions::MULTIPART => [ |
188 | 188 | [ |