Skip to content

Commit

Permalink
Removed double var set
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelOrtuno committed Apr 15, 2016
1 parent 7b22474 commit 1ac35cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RelationBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function build(Model $entity)
$relation = $this->getRelationClosure($entity, $attribute);

$entity->setAttributeRelation($attribute->getCode(), $relation);
}
+ }
}

/**
Expand All @@ -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
Expand Down

0 comments on commit 1ac35cd

Please sign in to comment.