mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 12:10:34 +09:00
Remove redundant typing from DocBlocks
This commit is contained in:
@@ -70,10 +70,6 @@ class Setting extends Model
|
||||
*/
|
||||
protected static $cache = [];
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @return object
|
||||
*/
|
||||
public static function getInput(Request $request): object
|
||||
{
|
||||
return (object) [
|
||||
@@ -198,16 +194,12 @@ class Setting extends Model
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function group(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\App\SettingGroup::class, 'group_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
@@ -220,7 +212,6 @@ class Setting extends Model
|
||||
|
||||
// @codingStandardsIgnoreStart
|
||||
/**
|
||||
* @param string $key
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
@@ -267,7 +258,6 @@ class Setting extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param $value
|
||||
*/
|
||||
public static function add(string $key, $value)
|
||||
@@ -275,11 +265,6 @@ class Setting extends Model
|
||||
self::$cache[$key] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function cached(string $key): bool
|
||||
{
|
||||
return array_key_exists($key, self::$cache);
|
||||
|
||||
Reference in New Issue
Block a user