Remove redundant typing from DocBlocks

This commit is contained in:
Shift
2024-02-16 21:13:14 +00:00
parent 3487f52a6b
commit f3a5be79dc
53 changed files with 0 additions and 363 deletions

View File

@@ -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 = [];