🎨 Simplify the default Composers (#3250)

This commit is contained in:
Brandon
2025-03-26 21:24:04 -05:00
committed by GitHub
parent 3d87ce1f6a
commit 5ffb5636b2
6 changed files with 20 additions and 80 deletions

View File

@@ -16,23 +16,9 @@ class App extends Composer
];
/**
* Data to be passed to view before rendering.
*
* @return array
* Retrieve the site name.
*/
public function with()
{
return [
'siteName' => $this->siteName(),
];
}
/**
* Returns the site name.
*
* @return string
*/
public function siteName()
public function siteName(): string
{
return get_bloginfo('name', 'display');
}