mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
Remove redundant typing from DocBlocks
This commit is contained in:
@@ -66,17 +66,11 @@ class Application extends Model
|
||||
return $this->icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function iconView(): string
|
||||
{
|
||||
return asset('storage/'.$this->icon);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function defaultColour(): string
|
||||
{
|
||||
// check if light or dark
|
||||
@@ -87,9 +81,6 @@ class Application extends Model
|
||||
return '#161b1f';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function class(): string
|
||||
{
|
||||
$name = $this->name;
|
||||
@@ -100,7 +91,6 @@ class Application extends Model
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @return string
|
||||
*/
|
||||
public static function classFromName($name): string
|
||||
{
|
||||
@@ -111,9 +101,6 @@ class Application extends Model
|
||||
return $class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection
|
||||
*/
|
||||
public static function apps(): Collection
|
||||
{
|
||||
$json = json_decode(file_get_contents(storage_path('app/supportedapps.json'))) ?? [];
|
||||
@@ -122,9 +109,6 @@ class Application extends Model
|
||||
return $apps->sortBy('name', SORT_NATURAL | SORT_FLAG_CASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public static function autocomplete(): array
|
||||
{
|
||||
$apps = self::apps();
|
||||
@@ -193,9 +177,6 @@ class Application extends Model
|
||||
return $app;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public static function applist(): array
|
||||
{
|
||||
$list = [];
|
||||
|
||||
Reference in New Issue
Block a user