Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Dec 19, 2023
1 parent 0643033 commit 567a12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IdeHelper/DeepRelationsHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function run(ModelsCommand $command, Model $model): void
$traits = class_uses_recursive($model);

if (!in_array(HasRelationships::class, $traits)) {
return;
return; // @codeCoverageIgnore
}

$methods = (new ReflectionClass($model))->getMethods(ReflectionMethod::IS_PUBLIC);
Expand All @@ -36,7 +36,7 @@ public function run(ModelsCommand $command, Model $model): void
try {
$relationship = $method->invoke($model);
} catch (Throwable) {
continue;
continue; // @codeCoverageIgnore
}

if ($relationship instanceof HasManyDeep) {
Expand Down

0 comments on commit 567a12a

Please sign in to comment.