1 | <?php |
||
11 | class Setting extends Model |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $fillable = ['key', 'value']; |
||
17 | |||
18 | /** |
||
19 | * Get a single setting value. If no value is set, return null. |
||
20 | * |
||
21 | * @param string $key |
||
22 | * @param string|null $default |
||
23 | * @return string |
||
24 | */ |
||
25 | public static function get(string $key, string $default = null) |
||
37 | |||
38 | /** |
||
39 | * Get all data in settings as an array. |
||
40 | * @return array |
||
41 | */ |
||
42 | public static function getAll() |
||
51 | |||
52 | /** |
||
53 | * Set a setting value. If no value is provided, it is stored as null. |
||
54 | * |
||
55 | * @param string $key |
||
56 | * @param string|null $value |
||
57 | */ |
||
58 | public static function set(string $key, $value = null) |
||
63 | } |
||
64 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.