File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 3
3
namespace FiveamCode \LaravelNotionApi \Endpoints ;
4
4
5
5
use FiveamCode \LaravelNotionApi \Entities \Blocks \Block ;
6
- use FiveamCode \LaravelNotionApi \Entities \Collections \CommentCollection ;
7
- use FiveamCode \LaravelNotionApi \Entities \Comment ;
8
6
use FiveamCode \LaravelNotionApi \Entities \Database ;
9
7
use FiveamCode \LaravelNotionApi \Entities \NotionParent ;
10
8
use FiveamCode \LaravelNotionApi \Entities \Page ;
11
- use FiveamCode \LaravelNotionApi \Entities \Properties \Relation ;
12
9
use FiveamCode \LaravelNotionApi \Entities \User ;
13
10
use FiveamCode \LaravelNotionApi \Exceptions \HandlingException ;
14
11
use FiveamCode \LaravelNotionApi \Exceptions \NotionException ;
@@ -34,8 +31,8 @@ public function __construct(Notion $notion)
34
31
35
32
/**
36
33
* @param User $user
37
- *
38
34
* @return User
35
+ *
39
36
* @throws HandlingException
40
37
* @throws NotionException
41
38
*/
@@ -46,8 +43,8 @@ public function user(User $user): User
46
43
47
44
/**
48
45
* @param NotionParent $parent
49
- *
50
46
* @return Page|Database|Block
47
+ *
51
48
* @throws HandlingException
52
49
* @throws NotionException
53
50
*/
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ public function getConnection(): ?PendingRequest
227
227
*/
228
228
public function checkValidVersion (string $ version ): void
229
229
{
230
- if (!$ this ->validVersions ->contains ($ version )) {
230
+ if (! $ this ->validVersions ->contains ($ version )) {
231
231
throw HandlingException::instance ('Invalid version for Notion-API endpoint ' , ['invalidVersion ' => $ version ]);
232
232
}
233
233
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function getParent()
63
63
{
64
64
return new NotionParent ([
65
65
'id ' => $ this ->getParentId (),
66
- 'object ' => $ this ->getParentType ()
66
+ 'object ' => $ this ->getParentType (),
67
67
]);
68
68
}
69
69
}
You can’t perform that action at this time.
0 commit comments