From 1ac35cde8a62c100fc5d41723b9499fd5ec9a275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Israel=20Ortu=C3=B1o?= Date: Fri, 15 Apr 2016 12:49:26 +0200 Subject: [PATCH] Removed double var set --- src/RelationBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RelationBuilder.php b/src/RelationBuilder.php index 054d257..9e6ce95 100644 --- a/src/RelationBuilder.php +++ b/src/RelationBuilder.php @@ -24,7 +24,7 @@ public function build(Model $entity) $relation = $this->getRelationClosure($entity, $attribute); $entity->setAttributeRelation($attribute->getCode(), $relation); - } + + } } /** @@ -36,7 +36,7 @@ public function build(Model $entity) */ protected function getRelationClosure(Model $entity, Attribute $attribute) { - $method = $method = $this->guessRelationMethod($attribute); + $method = $this->guessRelationMethod($attribute); // This will return a closure fully binded to the current model instance. // This will help us to simulate any relation as if it was handly made