Skip to content

Commit 5c001e6

Browse files
committed
CSF.
1 parent 6dc1349 commit 5c001e6

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

Tests/Feature/ElasticsearchAuditServiceTest.php

+8-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Support\Facades\Config;
77
use Illuminate\Support\Facades\Hash;
88
use Illuminate\Support\Facades\Queue;
9-
use OwenIt\Auditing\Contracts\Audit;
109
use OwenIt\Auditing\Resolvers\UserResolver;
1110
use PHPUnit\Framework\Attributes\DataProvider;
1211
use rajmundtoth0\AuditDriver\Jobs\IndexAuditDocumentJob;
@@ -91,10 +90,10 @@ public function testIndexDocument(bool $shouldReturnResult, ?bool $expectedResul
9190
*/
9291
public function testSearchDocument(): void
9392
{
94-
$user = $this->getUser();
93+
$user = $this->getUser();
9594
/** @var array<string, mixed> */
9695
$userArray = $user->toArray();
97-
$service = $this->getService(
96+
$service = $this->getService(
9897
statuses: [200, 200, 200],
9998
bodies: [null, null, $userArray],
10099
shouldBind: true,
@@ -113,10 +112,10 @@ public function testSearchDocument(): void
113112
*/
114113
public function testSearch(): void
115114
{
116-
$user = $this->getUser();
115+
$user = $this->getUser();
117116
/** @var array<string, mixed> */
118117
$userArray = $user->toArray();
119-
$service = $this->getService(
118+
$service = $this->getService(
120119
statuses: [200, 200, 200],
121120
bodies: [null, null, $userArray],
122121
shouldBind: true,
@@ -150,10 +149,10 @@ public function testSearch(): void
150149
*/
151150
public function testCount(): void
152151
{
153-
$user = $this->getUser();
152+
$user = $this->getUser();
154153
/** @var array<string, mixed> */
155154
$userArray = $user->toArray();
156-
$service = $this->getService(
155+
$service = $this->getService(
157156
statuses: [200, 200, 200],
158157
bodies: [null, null, ['count' => 1]],
159158
shouldBind: true,
@@ -190,10 +189,10 @@ public function testCount(): void
190189
*/
191190
public function testDeleteDocument(): void
192191
{
193-
$user = $this->getUser();
192+
$user = $this->getUser();
194193
/** @var array<string, mixed> */
195194
$userArray = $user->toArray();
196-
$service = $this->getService(
195+
$service = $this->getService(
197196
statuses: [200, 200, 200],
198197
bodies: [],
199198
shouldBind: true,

Tests/Model/User.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace rajmundtoth0\AuditDriver\Tests\Model;
44

5+
use Carbon\Carbon;
56
use Illuminate\Database\Eloquent\Factories\HasFactory;
67
use Illuminate\Database\Eloquent\Model;
78
use Illuminate\Support\Collection;
89
use OwenIt\Auditing\Contracts\Auditable as AuditableContract;
910
use rajmundtoth0\AuditDriver\Traits\ElasticSearchAuditable;
10-
use Carbon\Carbon;
1111

1212
/**
1313
* @property int $id

src/Client/ElasticsearchClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function setHosts(): void
124124
*/
125125
public function updateAliases(string $index): Elasticsearch|Promise
126126
{
127-
$params = [];
127+
$params = [];
128128
$params['body'] = [
129129
'actions' => [
130130
[

0 commit comments

Comments
 (0)