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 25, 2023
1 parent c6b107d commit 021f536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/IdeHelper/JsonRelationsHook.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(HasJsonRelationships::class, $traits)) {
return;
return; // @codeCoverageIgnore
}

$methods = (new ReflectionClass($model))->getMethods(ReflectionMethod::IS_PUBLIC);
Expand All @@ -35,8 +35,8 @@ public function run(ModelsCommand $command, Model $model): void

try {
$relationship = $method->invoke($model);
} catch (Throwable) {
continue;
} catch (Throwable) { // @codeCoverageIgnore
continue; // @codeCoverageIgnore
}

if ($relationship instanceof BelongsToJson || $relationship instanceof HasManyJson) {
Expand Down

0 comments on commit 021f536

Please sign in to comment.