Skip to content

Commit

Permalink
remove code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
RokPopov committed Jan 19, 2024
1 parent 324bf49 commit cbbfab9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gateway/Http/Client/TransactionCancel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function placeRequest(TransferInterface $transferObject): array
$headers['idempotencyExtraData'] ?? null
);
$requestOptions['idempotencyKey'] = $idempotencyKey;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();
$this->adyenHelper->logRequest($requests, Client::API_CHECKOUT_VERSION, '/cancels');
try {
$responses = $service->cancels($requests, $requestOptions);
Expand Down
2 changes: 1 addition & 1 deletion Gateway/Http/Client/TransactionCapture.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function placeRequest(TransferInterface $transferObject): array
);

$requestOptions['idempotencyKey'] = $idempotencyKey;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();

if (array_key_exists(self::MULTIPLE_AUTHORIZATIONS, $request)) {
return $this->placeMultipleCaptureRequests($service, $request, $requestOptions);
Expand Down
2 changes: 1 addition & 1 deletion Gateway/Http/Client/TransactionDonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function placeRequest(TransferInterface $transferObject)
);

$requestOptions['idempotencyKey'] = $idempotencyKey;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();

$this->adyenHelper->logRequest($request, Client::API_CHECKOUT_VERSION, 'donations');
try {
Expand Down
2 changes: 1 addition & 1 deletion Gateway/Http/Client/TransactionPaymentLinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function placeRequest(TransferInterface $transferObject): array
);

$requestOptions['idempotencyKey'] = $idempotencyKey;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();;
$requestOptions['headers'] = $this->adyenHelper->buildRequestHeaders();

$this->adyenHelper->logRequest($request, Client::API_CHECKOUT_VERSION, '/paymentLinks');
try {
Expand Down

0 comments on commit cbbfab9

Please sign in to comment.