From 70fab9db48e28b851326dd00f6d368f779b0ee30 Mon Sep 17 00:00:00 2001 From: railken Date: Fri, 25 Sep 2020 04:47:22 +0000 Subject: [PATCH] Apply style changes --- src/Services/HasRelationSerializer.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Services/HasRelationSerializer.php b/src/Services/HasRelationSerializer.php index ac8aa6f..9cb789d 100644 --- a/src/Services/HasRelationSerializer.php +++ b/src/Services/HasRelationSerializer.php @@ -28,12 +28,7 @@ public function serializeBelongsTo($name, $relation): iterable }); if (!$attribute) { - throw new \Exception(sprintf( - "Cannot find the attribute BelongsTo of the relation %s:%s, searching with localKey %s", - $name, - $relation['name'], - $relation['localKey'] - )); + throw new \Exception(sprintf('Cannot find the attribute BelongsTo of the relation %s:%s, searching with localKey %s', $name, $relation['name'], $relation['localKey'])); } $data = $attribute->getManager()->newEntity()->getMorphClass();