Skip to content

Commit

Permalink
Remove trailing comma from header generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevers committed Apr 24, 2021
1 parent 0d69ab6 commit 9c40085
Show file tree
Hide file tree
Showing 23 changed files with 129 additions and 129 deletions.
20 changes: 10 additions & 10 deletions lib/Api/AplusContentApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public function createContentDocumentRequest($marketplace_id, $post_content_docu
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down Expand Up @@ -967,7 +967,7 @@ public function getContentDocumentRequest($content_reference_key, $marketplace_i
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -1467,7 +1467,7 @@ public function listContentDocumentAsinRelationsRequest($content_reference_key,
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -1922,7 +1922,7 @@ public function postContentDocumentApprovalSubmissionRequest($content_reference_
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -2388,7 +2388,7 @@ public function postContentDocumentAsinRelationsRequest($content_reference_key,
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down Expand Up @@ -2849,7 +2849,7 @@ public function postContentDocumentSuspendSubmissionRequest($content_reference_k
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -3297,7 +3297,7 @@ public function searchContentDocumentsRequest($marketplace_id, $page_token = nul
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -3747,7 +3747,7 @@ public function searchContentPublishRecordsRequest($marketplace_id, $asin, $page
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -4213,7 +4213,7 @@ public function updateContentDocumentRequest($content_reference_key, $marketplac
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down Expand Up @@ -4655,7 +4655,7 @@ public function validateContentDocumentAsinRelationsRequest($marketplace_id, $po
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AuthorizationApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public function getAuthorizationCodeRequest($selling_partner_id, $developer_id,
$headers = $this->headerSelector->selectHeaders(
['application/json', 'payload', 'errors'],
[],
"sellingpartnerapi::migration",
"sellingpartnerapi::migration"
);
}

Expand Down
6 changes: 3 additions & 3 deletions lib/Api/CatalogApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public function getCatalogItemRequest($marketplace_id, $asin)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -920,7 +920,7 @@ public function listCatalogCategoriesRequest($marketplace_id, $asin = null, $sel
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -1412,7 +1412,7 @@ public function listCatalogItemsRequest($marketplace_id, $query = null, $query_c
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down
34 changes: 17 additions & 17 deletions lib/Api/FbaInboundApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public function confirmPreorderRequest($shipment_id, $need_by_date, $marketplace
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -915,7 +915,7 @@ public function confirmTransportRequest($shipment_id)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -1335,7 +1335,7 @@ public function createInboundShipmentRequest($shipment_id, $body)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down Expand Up @@ -1742,7 +1742,7 @@ public function createInboundShipmentPlanRequest($body)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down Expand Up @@ -2157,7 +2157,7 @@ public function estimateTransportRequest($shipment_id)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -2566,7 +2566,7 @@ public function getBillOfLadingRequest($shipment_id)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -3006,7 +3006,7 @@ public function getInboundGuidanceRequest($marketplace_id, $seller_sku_list = nu
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -3491,7 +3491,7 @@ public function getLabelsRequest($shipment_id, $page_type, $label_type, $number_
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -3918,7 +3918,7 @@ public function getPreorderInfoRequest($shipment_id, $marketplace_id)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -4358,7 +4358,7 @@ public function getPrepInstructionsRequest($ship_to_country_code, $seller_sku_li
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -4820,7 +4820,7 @@ public function getShipmentItemsRequest($query_type, $marketplace_id, $last_upda
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -5247,7 +5247,7 @@ public function getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_i
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -5733,7 +5733,7 @@ public function getShipmentsRequest($query_type, $marketplace_id, $shipment_stat
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -6142,7 +6142,7 @@ public function getTransportDetailsRequest($shipment_id)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down Expand Up @@ -6562,7 +6562,7 @@ public function putTransportDetailsRequest($shipment_id, $body)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down Expand Up @@ -6988,7 +6988,7 @@ public function updateInboundShipmentRequest($shipment_id, $body)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
['application/json'],
['application/json']
);
}

Expand Down Expand Up @@ -7403,7 +7403,7 @@ public function voidTransportRequest($shipment_id)
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Api/FbaInboundEligibilityApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public function getItemEligibilityPreviewRequest($asin, $program, $marketplace_i
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json', 'ItemEligibilityPreview'],
[],
[]
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Api/FbaInventoryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public function getInventorySummariesRequest($granularity_type, $granularity_id,
} else {
$headers = $this->headerSelector->selectHeaders(
['application/json'],
[],
[]
);
}

Expand Down
Loading

0 comments on commit 9c40085

Please sign in to comment.