Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jul 30, 2024
1 parent 702cb88 commit 5a200b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use BadMethodCallException;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Database\Eloquent\Relations\MorphOneOrMany;
use Illuminate\Support\Str;

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

if ($distantRelation instanceof HasMany) {
$returnedRelation = $this->rootModel->hasManyThrough(
$returnedRelation = $this->rootModel->hasManyThrough(
$distantRelation->getRelated()::class,
$this->localRelationship->getRelated()::class,
$this->localRelationship->getForeignKeyName(),
Expand Down
1 change: 0 additions & 1 deletion tests/Integration/Database/EloquentThroughTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ protected function afterRefreshingDatabase()
$table->unsignedInteger('comment_id');
});


$post = tap(new Post(['public' => true]))->save();
$comment = tap((new Comment)->commentable()->associate($post))->save();
(new Like())->comment()->associate($comment)->save();
Expand Down

0 comments on commit 5a200b6

Please sign in to comment.