diff --git a/src/IdeHelper/JsonRelationsHook.php b/src/IdeHelper/JsonRelationsHook.php index e8ed6d7..a120fd9 100644 --- a/src/IdeHelper/JsonRelationsHook.php +++ b/src/IdeHelper/JsonRelationsHook.php @@ -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); @@ -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) {