Skip to content

Commit 325e5d6

Browse files
GautierDeleStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 82fb210 commit 325e5d6

File tree

5 files changed

+4
-26
lines changed

5 files changed

+4
-26
lines changed

src/Query/Traits/PerformMutation.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Database\Eloquent\Model;
66
use Lomkit\Rest\Http\Requests\MutateRequest;
77
use Lomkit\Rest\Http\Requests\RestRequest;
8-
use Lomkit\Rest\Tests\Support\Rest\Resources\BelongsToManyWithHooksResource;
98

109
trait PerformMutation
1110
{

tests/Feature/Controllers/HooksTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Lomkit\Rest\Tests\Support\Models\Model;
1515
use Lomkit\Rest\Tests\Support\Models\SoftDeletedModel;
1616
use Lomkit\Rest\Tests\Support\Policies\GreenPolicy;
17-
use Lomkit\Rest\Tests\Support\Rest\Resources\ModelResource;
1817

1918
class HooksTest extends TestCase
2019
{
@@ -279,7 +278,7 @@ public function test_resource_mutating_hook_by_updating(): void
279278
'attributes' => [
280279
'name' => 'new name',
281280
'number' => 5001,
282-
]
281+
],
283282
],
284283
],
285284
],
@@ -313,15 +312,15 @@ public function test_resource_mutating_hook_by_updating_two_entries(): void
313312
'attributes' => [
314313
'name' => 'new name',
315314
'number' => 5001,
316-
]
315+
],
317316
],
318317
[
319318
'operation' => 'update',
320319
'key' => $modelsToUpdate[1]->getKey(),
321320
'attributes' => [
322321
'name' => 'new name',
323322
'number' => 5001,
324-
]
323+
],
325324
],
326325
],
327326
],
@@ -537,7 +536,7 @@ public function test_resource_destroying(): void
537536
[
538537
'resources' => [
539538
$models[0]->getKey(),
540-
$models[1]->getKey()
539+
$models[1]->getKey(),
541540
],
542541
],
543542
['Accept' => 'application/json']

tests/Support/Rest/Resources/BelongsToManyWithHooksResource.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Support\Facades\Cache;
7-
use Lomkit\Rest\Concerns\Resource\DisableAutomaticGates;
87
use Lomkit\Rest\Http\Requests\DestroyRequest;
98
use Lomkit\Rest\Http\Requests\MutateRequest;
10-
use Lomkit\Rest\Http\Requests\RestRequest;
11-
use Lomkit\Rest\Http\Resource;
12-
use Lomkit\Rest\Tests\Support\Models\BelongsToManyRelation;
139

1410
class BelongsToManyWithHooksResource extends BelongsToManyResource
1511
{

tests/Support/Rest/Resources/BelongsToWithHooksResource.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Support\Facades\Cache;
7-
use Lomkit\Rest\Concerns\Resource\DisableAutomaticGates;
87
use Lomkit\Rest\Http\Requests\DestroyRequest;
98
use Lomkit\Rest\Http\Requests\MutateRequest;
10-
use Lomkit\Rest\Http\Requests\RestRequest;
11-
use Lomkit\Rest\Http\Resource;
12-
use Lomkit\Rest\Relations\HasMany;
13-
use Lomkit\Rest\Tests\Support\Models\BelongsToRelation;
149

1510
class BelongsToWithHooksResource extends BelongsToResource
1611
{

tests/Support/Rest/Resources/ModelWithHooksResource.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@
1111
use Lomkit\Rest\Http\Resource;
1212
use Lomkit\Rest\Relations\BelongsTo;
1313
use Lomkit\Rest\Relations\BelongsToMany;
14-
use Lomkit\Rest\Relations\HasMany;
15-
use Lomkit\Rest\Relations\HasManyThrough;
16-
use Lomkit\Rest\Relations\HasOne;
17-
use Lomkit\Rest\Relations\HasOneOfMany;
18-
use Lomkit\Rest\Relations\HasOneThrough;
19-
use Lomkit\Rest\Relations\MorphedByMany;
20-
use Lomkit\Rest\Relations\MorphMany;
21-
use Lomkit\Rest\Relations\MorphOne;
22-
use Lomkit\Rest\Relations\MorphOneOfMany;
23-
use Lomkit\Rest\Relations\MorphTo;
24-
use Lomkit\Rest\Relations\MorphToMany;
2514
use Lomkit\Rest\Tests\Support\Models\SoftDeletedModel;
2615
use Lomkit\Rest\Tests\Support\Rest\Actions\ModifyNumberAction;
2716

0 commit comments

Comments
 (0)