Skip to content

Commit a112a1f

Browse files
author
Haddo Vervest
committed
Fixed styling issue
1 parent b3f32cc commit a112a1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Webflow/Api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ public function createItem(string $collectionId, array $fields, bool $live = fal
167167
"_draft" => false,
168168
];
169169

170-
return $this->post("/collections/{$collectionId}/items" . ($live ? "?live=true": ""), [
170+
return $this->post("/collections/{$collectionId}/items" . ($live ? "?live=true" : ""), [
171171
'fields' => array_merge($defaults, $fields),
172172
]);
173173
}
174174

175175
public function updateItem(string $collectionId, string $itemId, array $fields, bool $live = false)
176176
{
177-
return $this->put("/collections/{$collectionId}/items/{$itemId}" . ($live ? "?live=true": ""), [
177+
return $this->put("/collections/{$collectionId}/items/{$itemId}" . ($live ? "?live=true" : ""), [
178178
'fields' => $fields,
179179
]);
180180
}

0 commit comments

Comments
 (0)