Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Aug 21, 2024
1 parent ce4631a commit ffeed70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lam/lib/baseModule.inc
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ abstract class baseModule {
if (isset($this->meta['alias'])) {
return $this->meta['alias'];
}
return get_class($this);
return static::class;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lam/lib/baseType.inc
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class baseType {
* @return string file name
*/
public function getIcon(): string {
return get_class($this) . '.png';
return static::class . '.png';
}

/**
Expand All @@ -444,7 +444,7 @@ class baseType {
* @return string scope
*/
public function getScope() {
return get_class($this);
return static::class;
}

}

0 comments on commit ffeed70

Please sign in to comment.