8000 Apply fixes from StyleCI (#115) · 5am-code/laravel-notion-api@31bd869 · GitHub
[go: up one dir, main page]

Skip to content

Commit 31bd869

Browse files
authored
Apply fixes from StyleCI (#115)
1 parent c3d4b48 commit 31bd869

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/Endpoints/Resolve.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
namespace FiveamCode\LaravelNotionApi\Endpoints;
44

55
use FiveamCode\LaravelNotionApi\Entities\Blocks\Block;
6-
use FiveamCode\LaravelNotionApi\Entities\Collections\CommentCollection;
7-
use FiveamCode\LaravelNotionApi\Entities\Comment;
86
use FiveamCode\LaravelNotionApi\Entities\Database;
97
use FiveamCode\LaravelNotionApi\Entities\NotionParent;
108
use FiveamCode\LaravelNotionApi\Entities\Page;
11-
use FiveamCode\LaravelNotionApi\Entities\Properties\Relation;
129
use FiveamCode\LaravelNotionApi\Entities\User;
1310
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
1411
use FiveamCode\LaravelNotionApi\Exceptions\NotionException;
@@ -34,8 +31,8 @@ public function __construct(Notion $notion)
3431

3532
/**
3633
* @param User $user
37-
*
3834
* @return User
35+
*
3936
* @throws HandlingException
4037
* @throws NotionException
4138
*/
@@ -46,8 +43,8 @@ public function user(User $user): User
4643

4744
/**
4845
* @param NotionParent $parent
49-
*
5046
* @return Page|Database|Block
47+
*
5148
* @throws HandlingException
5249
* @throws NotionException
5350
*/

src/Notion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function getConnection(): ?PendingRequest
227227
*/
228228
public function checkValidVersion(string $version): void
229229
{
230-
if (!$this->validVersions->contains($version)) {
230+
if (! $this->validVersions->contains($version)) {
231231
throw HandlingException::instance('Invalid version for Notion-API endpoint', ['invalidVersion' => $version]);
232232
}
233233
}

src/Traits/HasParent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getParent()
6363
{
6464
return new NotionParent([
6565
'id' => $this->getParentId(),
66-
'object' => $this->getParentType()
66+
'object' => $this->getParentType(),
6767
]);
6868
}
6969
}

0 commit comments

Comments
 (0)
0