Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 14, 2018
1 parent a05ee88 commit 701ac58
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,7 @@ protected function parseIds($value)
*/
protected function parseId($value)
{
if ($value instanceof Model) {
return $value->getKey();
}

return $value;
return $value instanceof Model ? $value->getKey() : $value;
}

/**
Expand Down

0 comments on commit 701ac58

Please sign in to comment.