Skip to content

Commit 69d305d

Browse files
committed
Merge branch 'dev' into feature/refactor-collections
2 parents a162814 + ffa4145 commit 69d305d

24 files changed

+3
-83
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ Head over to the [Documentation](https://5amco.de/docs) of this package.
3737
### 🔥 Code Examples to jumpstart your Notion API Project
3838

3939
#### Basic Setup
40+
4041
```php
4142
use FiveamCode\LaravelNotionApi\Notion;
42-
use Illuminate\Support\Collection;
43-
use FiveamCode\LaravelNotionApi\Query\Sorting;
44-
use FiveamCode\LaravelNotionApi\Query\Filter;
4543

4644
// Setup basic API connection
4745
$notion = new Notion();

src/Endpoints/Database.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use FiveamCode\LaravelNotionApi\Notion;
88
use FiveamCode\LaravelNotionApi\Query\Filter;
99
use FiveamCode\LaravelNotionApi\Query\Sorting;
10-
use FiveamCode\LaravelNotionApi\Query\StartCursor;
11-
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
12-
use Symfony\Component\VarDumper\Cloner\Data;
1310

1411
class Database extends Endpoint
1512
{

src/Endpoints/Search.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22

33
namespace FiveamCode\LaravelNotionApi\Endpoints;
44

5-
use FiveamCode\LaravelNotionApi\Entities\Collections\EntityCollection;
6-
use FiveamCode\LaravelNotionApi\Entities\Collections\PageCollection;
75
use Illuminate\Support\Collection;
86
use FiveamCode\LaravelNotionApi\Notion;
9-
use FiveamCode\LaravelNotionApi\Query\Filter;
107
use FiveamCode\LaravelNotionApi\Query\Sorting;
11-
use FiveamCode\LaravelNotionApi\Query\StartCursor;
12-
use FiveamCode\LaravelNotionApi\Exceptions\WrapperException;
13-
use Symfony\Component\VarDumper\Cloner\Data;
8+
use FiveamCode\LaravelNotionApi\Entities\Collections\EntityCollection;
149

1510
class Search extends Endpoint
1611
{
@@ -43,7 +38,7 @@ public function query(): EntityCollection
4338

4439
if ($this->searchText !== null)
4540
$postData['query'] = $this->searchText;
46-
41+
4742
$response = $this
4843
->post(
4944
$this->url(Endpoint::SEARCH),

src/Endpoints/Users.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
use FiveamCode\LaravelNotionApi\Entities\User;
66
use FiveamCode\LaravelNotionApi\Entities\Collections\UserCollection;
77
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
8-
use FiveamCode\LaravelNotionApi\Exceptions\NotionException;
9-
use FiveamCode\LaravelNotionApi\Notion;
10-
use FiveamCode\LaravelNotionApi\Query\StartCursor;
118
use Illuminate\Support\Collection;
129

1310
class Users extends Endpoint implements EndpointInterface

src/Entities/Collections/DatabaseCollection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
namespace FiveamCode\LaravelNotionApi\Entities\Collections;
44

55
use FiveamCode\LaravelNotionApi\Entities\Database;
6-
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
7-
use FiveamCode\LaravelNotionApi\Notion;
8-
use Illuminate\Support\Arr;
96
use Illuminate\Support\Collection;
107

118

src/Entities/Collections/PageCollection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
namespace FiveamCode\LaravelNotionApi\Entities\Collections;
44

55
use FiveamCode\LaravelNotionApi\Entities\Page;
6-
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
7-
use FiveamCode\LaravelNotionApi\Notion;
8-
use Illuminate\Support\Arr;
96
use Illuminate\Support\Collection;
107

118

src/Entities/Collections/UserCollection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
namespace FiveamCode\LaravelNotionApi\Entities\Collections;
44

55
use FiveamCode\LaravelNotionApi\Entities\User;
6-
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
7-
use FiveamCode\LaravelNotionApi\Notion;
8-
use Illuminate\Support\Arr;
96
use Illuminate\Support\Collection;
107

118

src/Entities/Database.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use DateTime;
66
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
7-
use FiveamCode\LaravelNotionApi\Notion;
87
use Illuminate\Support\Arr;
98

109

src/Entities/Entity.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
66
use FiveamCode\LaravelNotionApi\Exceptions\NotionException;
7-
use FiveamCode\LaravelNotionApi\Notion;
87
use Illuminate\Support\Arr;
98
use Carbon\Carbon;
109
use JsonSerializable;

src/Entities/Page.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use DateTime;
66
use FiveamCode\LaravelNotionApi\Entities\Properties\Property;
77
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
8-
use FiveamCode\LaravelNotionApi\Notion;
98
use Illuminate\Support\Arr;
109
use Illuminate\Support\Collection;
1110

0 commit comments

Comments
 (0)