Skip to content

Commit bc8a3e6

Browse files
authored
Apply fixes from StyleCI (#74)
1 parent a64227c commit bc8a3e6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/Entities/Collections/EntityCollection.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ public function hasMoreEntries(): bool
173173
public function nextCursor(): ?StartCursor
174174
{
175175
$rawNextCursor = $this->getRawNextCursor();
176-
if($rawNextCursor === null) return null;
176+
if ($rawNextCursor === null) {
177+
return null;
178+
}
179+
177180
return new StartCursor($rawNextCursor);
178181
}
179182
}

tests/EndpointDatabaseTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,17 @@ public function it_queries_a_database_with_and_without_offset_and_processes_resu
164164
{
165165
// success /v1/databases/DATABASE_DOES_EXIST/query
166166
Http::fake([
167-
'https://api.notion.com/v1/databases/8284f3ff77e24d4a939d19459e4d6bdc/query*' =>
168-
Http::sequence()
167+
'https://api.notion.com/v1/databases/8284f3ff77e24d4a939d19459e4d6bdc/query*' => Http::sequence()
169168
->push(
170-
json_decode(file_get_contents("tests/stubs/endpoints/databases/response_query_offset_start_200.json"), true),
169+
json_decode(file_get_contents('tests/stubs/endpoints/databases/response_query_offset_start_200.json'), true),
171170
200,
172171
['Headers']
173172
)
174173
->push(
175-
json_decode(file_get_contents("tests/stubs/endpoints/databases/response_query_offset_end_200.json"), true),
174+
json_decode(file_get_contents('tests/stubs/endpoints/databases/response_query_offset_end_200.json'), true),
176175
200,
177176
['Headers']
178-
)
177+
),
179178
]);
180179

181180
$result = Notion::database('8284f3ff77e24d4a939d19459e4d6bdc')

0 commit comments

Comments
 (0)