Skip to content

Commit ad5d85d

Browse files
authored
Apply fixes from StyleCI (#141)
1 parent 039f8f9 commit ad5d85d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/Macros/PestHttpRecorder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Http\Client\Request;
77
use Illuminate\Support\Arr;
88
use Illuminate\Support\Facades\File;
9-
use Illuminate\Support\Facades\Hash;
109
use Illuminate\Support\Facades\Http;
1110
use Illuminate\Support\Str;
1211

@@ -41,7 +40,6 @@ class HttpRecorder
4140

4241
private $requestNames = [];
4342

44-
4543
public function storeIn($directory)
4644
{
4745
$this->snapshotDirectory = $directory;
@@ -82,7 +80,7 @@ public function handle(Request $request)
8280
// filter out Notion API Token Header
8381
$header = Arr::except($header, ['Authorization']);
8482

85-
if ($forceRecording || !File::exists($filePath)) {
83+
if ($forceRecording || ! File::exists($filePath)) {
8684
File::makeDirectory($directoryPath, 0744, true, true);
8785

8886
$client = new Client();

tests/RecordedEndpointDatabasesCreationTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
use Carbon\Carbon;
43
use FiveamCode\LaravelNotionApi\Builder\PropertyBuilder;
54
use FiveamCode\LaravelNotionApi\Entities\Properties\Checkbox;
65
use FiveamCode\LaravelNotionApi\Entities\Properties\CreatedBy;
@@ -29,21 +28,20 @@
2928
});
3029

3130
it('should create a new database with all available properties', function () {
32-
3331
$this->httpRecorder->nameForNextRequest('all-properties');
3432

3533
$selectOptions = [
3634
[
3735
'name' => 'testing',
38-
'color' => 'blue'
39-
]
36+
'color' => 'blue',
37+
],
4038
];
4139

4240
$multiSelectOptions = [
4341
[
4442
'name' => 'testing2',
45-
'color' => 'yellow'
46-
]
43+
'color' => 'yellow',
44+
],
4745
];
4846

4947
$scheme = PropertyBuilder::bulk()

0 commit comments

Comments
 (0)