Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RosemaryOrchard committed Aug 25, 2022
1 parent 5d292a2 commit ce693a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ public function getAttribute($key)

// This checks for embedded relation support.
if (
method_exists($this, $key)
&& ! method_exists(self::class, $key)
&& ! $this->hasAttributeGetMutator($key)
) {
return $this->getRelationValue($key);
method_exists($this, $key)
&& !method_exists(self::class, $key)
&& !$this->hasAttributeGetMutator($key)
) {
return $this->getRelationValue($key);
}

return parent::getAttribute($key);
Expand Down

0 comments on commit ce693a8

Please sign in to comment.