Skip to content

Commit

Permalink
chore: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson authored and github-actions[bot] committed Sep 17, 2024
1 parent 3089660 commit 43dbae8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/Base/Traits/HasModelExtending.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ public static function modelClass(): string
/**
* Returns the model alias registered in the model relation morph map.
*/
public static function morphName():string{
public static function morphName(): string
{
return (new (static::modelClass()))->getMorphClass();
}

public function getMorphClass(): string
{
$morphMap = Relation::morphMap();
Expand Down

0 comments on commit 43dbae8

Please sign in to comment.