Skip to content

Commit 66f4492

Browse files
committed
fix: updated php-sdk
1 parent 45c1ef6 commit 66f4492

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/Api/BillingCatalogApi.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,13 @@ public function getCatalogItemListV1(?string $category = null, ?string $name = n
5959
$query = http_build_query(
6060
array_filter([
6161
'category' => $category,
62-
])
63-
);
64-
65-
$query = http_build_query(
66-
array_filter([
67-
', '
6862
'name' => $name,
6963
])
7064
);
7165

7266
$request = new Request(
7367
method: 'GET',
74-
uri: '/api/billing/v1/catalog' . $query . $query,
68+
uri: '/api/billing/v1/catalog' . $query,
7569
headers: $this->getHeaders(),
7670
);
7771

src/Api/VPSVirtualMachineApi.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,13 @@ public function getMetricsV1(int $virtualMachineId, \DateTime $dateFrom, \DateTi
8989
$query = http_build_query(
9090
array_filter([
9191
'date_from' => $dateFrom,
92-
])
93-
);
94-
95-
$query = http_build_query(
96-
array_filter([
97-
', '
9892
'date_to' => $dateTo,
9993
])
10094
);
10195

10296
$request = new Request(
10397
method: 'GET',
104-
uri: $this->buildResourcePath('/api/vps/v1/virtual-machines/{virtualMachineId}/metrics', $virtualMachineId) . $query . $query,
98+
uri: $this->buildResourcePath('/api/vps/v1/virtual-machines/{virtualMachineId}/metrics', $virtualMachineId) . $query,
10599
headers: $this->getHeaders(),
106100
);
107101

0 commit comments

Comments
 (0)