Skip to content

Commit

Permalink
Fixed styling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Haddo Vervest committed Sep 9, 2019
1 parent b3f32cc commit a112a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Webflow/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ public function createItem(string $collectionId, array $fields, bool $live = fal
"_draft" => false,
];

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

public function updateItem(string $collectionId, string $itemId, array $fields, bool $live = false)
{
return $this->put("/collections/{$collectionId}/items/{$itemId}" . ($live ? "?live=true": ""), [
return $this->put("/collections/{$collectionId}/items/{$itemId}" . ($live ? "?live=true" : ""), [
'fields' => $fields,
]);
}
Expand Down

0 comments on commit a112a1f

Please sign in to comment.