Commit 883037cd authored by Jens Segers's avatar Jens Segers

Update docblocks

parent 84b8b706
......@@ -40,6 +40,8 @@ class BelongsTo extends \Illuminate\Database\Eloquent\Relations\BelongsTo
/**
* Get the owner key with backwards compatible support.
*
* @return string
*/
public function getOwnerKey()
{
......
......@@ -32,12 +32,12 @@ class MorphTo extends EloquentMorphTo
}
/**
* get the Other/Owner Key name based on different version of Illuminate/Database
* see commit https://github.com/illuminate/database/commit/6a35698d72e276f435324b7e29b3cd37ef7d5d9c
* Get the owner key with backwards compatible support.
*
* @return string
*/
public function getOwnerKey()
{
return property_exists($this, "ownerKey") ? $this->ownerKey : $this->otherKey;
return property_exists($this, 'ownerKey') ? $this->ownerKey : $this->otherKey;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment