Skip to content

Commit 5a200b6

Browse files
committed
Apply fixes from StyleCI
1 parent 702cb88 commit 5a200b6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Illuminate/Database/Eloquent/PendingHasThroughRelationship.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use BadMethodCallException;
66
use Illuminate\Database\Eloquent\Relations\HasMany;
7-
use Illuminate\Database\Eloquent\Relations\MorphMany;
87
use Illuminate\Database\Eloquent\Relations\MorphOneOrMany;
98
use Illuminate\Support\Str;
109

@@ -66,7 +65,7 @@ public function has($callback)
6665
$distantRelation = $callback($this->localRelationship->getRelated());
6766

6867
if ($distantRelation instanceof HasMany) {
69-
$returnedRelation = $this->rootModel->hasManyThrough(
68+
$returnedRelation = $this->rootModel->hasManyThrough(
7069
$distantRelation->getRelated()::class,
7170
$this->localRelationship->getRelated()::class,
7271
$this->localRelationship->getForeignKeyName(),

tests/Integration/Database/EloquentThroughTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ protected function afterRefreshingDatabase()
3131
$table->unsignedInteger('comment_id');
3232
});
3333

34-
3534
$post = tap(new Post(['public' => true]))->save();
3635
$comment = tap((new Comment)->commentable()->associate($post))->save();
3736
(new Like())->comment()->associate($comment)->save();

0 commit comments

Comments
 (0)