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 9eac4c7 commit 6b0e787
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 @@ -50,10 +50,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 6b0e787

Please sign in to comment.