@@ -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, |
@@ -152,12 +152,12 @@ discard block |
||
152 | 152 | |
153 | 153 | $response = $this->client->request( |
154 | 154 | 'POST', |
155 | - $this->settings->apiVerificationUrl . $tracingId, |
|
155 | + $this->settings->apiVerificationUrl.$tracingId, |
|
156 | 156 | [ |
157 | 157 | RequestOptions::QUERY => ['type' => $digipayTicketType], |
158 | 158 | RequestOptions::HEADERS => [ |
159 | 159 | "Accept" => "application/json", |
160 | - "Authorization" => "Bearer " . $this->oauthToken, |
|
160 | + "Authorization" => "Bearer ".$this->oauthToken, |
|
161 | 161 | ], |
162 | 162 | RequestOptions::HTTP_ERRORS => false, |
163 | 163 | ] |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $this->settings->apiOauthUrl, |
187 | 187 | [ |
188 | 188 | RequestOptions::HEADERS => [ |
189 | - 'Authorization' => 'Basic ' . base64_encode("{$this->settings->client_id}:{$this->settings->client_secret}"), |
|
189 | + 'Authorization' => 'Basic '.base64_encode("{$this->settings->client_id}:{$this->settings->client_secret}"), |
|
190 | 190 | ], |
191 | 191 | RequestOptions::MULTIPART => [ |
192 | 192 | [ |