From cea3324a588efc203d70cda202c086199534039f Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Mon, 9 Sep 2024 16:59:54 +0200 Subject: [PATCH] Improve code coverage --- src/Relations/BelongsToThrough.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Relations/BelongsToThrough.php b/src/Relations/BelongsToThrough.php index f2b00b3..8c6e6d9 100644 --- a/src/Relations/BelongsToThrough.php +++ b/src/Relations/BelongsToThrough.php @@ -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); @@ -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));