Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 9, 2024
1 parent 905c220 commit cea3324
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Relations/BelongsToThrough.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,7 @@ public function getFirstForeignKeyName()
$firstThroughParent = end($this->throughParents);

if ($firstThroughParent === false) {
// @codeCoverageIgnore
throw new RuntimeException('No "through" parent models were specified.');
throw new RuntimeException('No "through" parent models were specified.'); // @codeCoverageIgnore
}

return $this->prefix . $this->getForeignKeyName($firstThroughParent);
Expand All @@ -358,8 +357,7 @@ public function getQualifiedFirstLocalKeyName()
$firstThroughParent = end($this->throughParents);

if ($firstThroughParent === false) {
// @codeCoverageIgnore
throw new RuntimeException('No "through" parent models were specified.');
throw new RuntimeException('No "through" parent models were specified.'); // @codeCoverageIgnore
}

return $firstThroughParent->qualifyColumn($this->getLocalKeyName($firstThroughParent));
Expand Down

0 comments on commit cea3324

Please sign in to comment.