Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 18, 2018
1 parent 6387569 commit 7ab30b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Illuminate/Database/Eloquent/Relations/Pivot.php
Expand Up @@ -214,7 +214,9 @@ public function hasTimestampAttributes()
*/
public function getCreatedAtColumn()
{
return ($this->pivotParent) ? $this->pivotParent->getCreatedAtColumn() : parent::getCreatedAtColumn();
return ($this->pivotParent)
? $this->pivotParent->getCreatedAtColumn()
: parent::getCreatedAtColumn();
}

/**
Expand All @@ -224,7 +226,9 @@ public function getCreatedAtColumn()
*/
public function getUpdatedAtColumn()
{
return ($this->pivotParent) ? $this->pivotParent->getUpdatedAtColumn() : parent::getUpdatedAtColumn();
return ($this->pivotParent)
? $this->pivotParent->getUpdatedAtColumn()
: parent::getUpdatedAtColumn();
}

/**
Expand Down

0 comments on commit 7ab30b2

Please sign in to comment.