Skip to content

Commit 92906f7

Browse files
GautierDeleStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 3c86240 commit 92906f7

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

src/Relations/MorphTo.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
namespace Lomkit\Rest\Relations;
44

5-
use Illuminate\Database\Eloquent\Builder;
65
use Illuminate\Database\Eloquent\Model;
7-
use Illuminate\Validation\Rule;
86
use Lomkit\Rest\Contracts\QueryBuilder;
97
use Lomkit\Rest\Contracts\RelationResource;
10-
use Lomkit\Rest\Http\Resource;
118

129
class MorphTo extends MorphRelation implements RelationResource
1310
{

src/Relations/Relation.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Closure;
66
use Illuminate\Database\Eloquent\Builder;
77
use Illuminate\Support\Str;
8-
use Illuminate\Validation\Rule;
98
use Lomkit\Rest\Concerns\Makeable;
109
use Lomkit\Rest\Concerns\Relations\HasPivotFields;
1110
use Lomkit\Rest\Http\Requests\RestRequest;
@@ -165,7 +164,7 @@ public function jsonSerialize(): mixed
165164
$request = app(RestRequest::class);
166165

167166
return [
168-
'resource' => $this->type,
167+
'resource' => $this->type,
169168
'relation' => $this->relation,
170169
'constraints' => [
171170
'required_on_creation' => $this->isRequiredOnCreation($request),

tests/Feature/Controllers/MutateCreateMorphOperationsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Lomkit\Rest\Tests\Support\Models\MorphToManyRelation;
1818
use Lomkit\Rest\Tests\Support\Models\MorphToRelation;
1919
use Lomkit\Rest\Tests\Support\Policies\GreenPolicy;
20-
use Lomkit\Rest\Tests\Support\Rest\Resources\MorphedByManyResource;
2120
use Lomkit\Rest\Tests\Support\Rest\Resources\MorphToResource;
2221

2322
class MutateCreateMorphOperationsTest extends TestCase

tests/Feature/Controllers/MutateUpdateMorphOperationsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Lomkit\Rest\Tests\Support\Models\MorphToManyRelation;
1818
use Lomkit\Rest\Tests\Support\Models\MorphToRelation;
1919
use Lomkit\Rest\Tests\Support\Policies\GreenPolicy;
20-
use Lomkit\Rest\Tests\Support\Rest\Resources\MorphToResource;
2120

2221
class MutateUpdateMorphOperationsTest extends TestCase
2322
{

0 commit comments

Comments
 (0)