Skip to content

Commit 883037c

Browse files
committed
Update docblocks
1 parent 84b8b70 commit 883037c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Jenssegers/Mongodb/Relations/BelongsTo.php

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery,
4040

4141
/**
4242
* Get the owner key with backwards compatible support.
43+
*
44+
* @return string
4345
*/
4446
public function getOwnerKey()
4547
{

src/Jenssegers/Mongodb/Relations/MorphTo.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ protected function getResultsByType($type)
3232
}
3333

3434
/**
35-
* get the Other/Owner Key name based on different version of Illuminate/Database
36-
* see commit https://github.com/illuminate/database/commit/6a35698d72e276f435324b7e29b3cd37ef7d5d9c
35+
* Get the owner key with backwards compatible support.
36+
*
3737
* @return string
3838
*/
3939
public function getOwnerKey()
4040
{
41-
return property_exists($this, "ownerKey") ? $this->ownerKey : $this->otherKey;
41+
return property_exists($this, 'ownerKey') ? $this->ownerKey : $this->otherKey;
4242
}
4343
}

0 commit comments

Comments
 (0)