Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Endpoints/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public function __construct(Notion $notion)
* Retrieve a list of comments
* url: https://api.notion.com/{version}/comments?block_id=* [get]
* notion-api-docs: https://developers.notion.com/reference/retrieve-a-comment.
* @param string $blockId
*
* @param string $blockId
* @return CommentCollection
*
* @throws HandlingException
Expand All @@ -51,7 +51,7 @@ public function __construct(Notion $notion)
public function ofBlock(string $blockId): CommentCollection
{
$response = $this->get(
$this->url(Endpoint::COMMENTS . "?block_id={$blockId}&{$this->buildPaginationQuery()}")
$this->url(Endpoint::COMMENTS."?block_id={$blockId}&{$this->buildPaginationQuery()}")
);

return new CommentCollection($response->json());
Expand Down Expand Up @@ -91,8 +91,8 @@ public function onPage(string $pageId): self
* Create a comment
* url: https://api.notion.com/{version}/comments [post]
* notion-api-docs: https://developers.notion.com/reference/create-a-comment.
* @param CommentEntity $comment
*
* @param CommentEntity $comment
* @return CommentEntity
*
* @throws HandlingException
Expand Down