File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ public function __construct(Notion $notion)
34
34
}
35
35
36
36
/**
37
- * Resolve User
38
- *
37
+ * Resolve User.
38
+ *
39
39
* @param User $user
40
40
* @return User
41
41
*
@@ -48,26 +48,26 @@ public function user(User $user): User
48
48
}
49
49
50
50
/**
51
- * Resolve Parent of an entity
52
- *
51
+ * Resolve Parent of an entity.
52
+ *
53
53
* @param Entity $entity
54
54
* @return Page|Database|Block
55
- *
55
+ *
56
56
* @throws HandlingException
57
57
* @throws NotionException
58
58
*/
59
59
public function parentOf (Entity $ entity )
60
60
{
61
- if (!in_array (HasParent::class, class_uses_recursive (get_class ($ entity )))) {
61
+ if (! in_array (HasParent::class, class_uses_recursive (get_class ($ entity )))) {
62
62
throw new HandlingException ("The given entity ' {$ entity ->getObjectType ()}' does not have a parent. " );
63
63
}
64
64
65
65
return $ this ->parent ($ entity ->getParent ());
66
66
}
67
67
68
68
/**
69
- * Resolve Parent
70
- *
69
+ * Resolve Parent.
70
+ *
71
71
* @param NotionParent $parent
72
72
* @return Page|Database|Block
73
73
*
@@ -91,8 +91,8 @@ public function parent(NotionParent $parent): Page|Database|Block
91
91
}
92
92
93
93
/**
94
- * Resolve Relations
95
- *
94
+ * Resolve Relations.
95
+ *
96
96
* @param Relation $relation
97
97
* @return Collection<Page>
98
98
*
You can’t perform that action at this time.
0 commit comments