Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public static function get(string $key, string $default = null) |
||
26 | { |
||
27 | if (Cache::has($key)) { |
||
28 | return Cache::get($key); |
||
29 | } |
||
30 | |||
31 | $dbValue = Setting::where('key', $key)->first(); |
||
32 | $value = isset($dbValue) ? json_decode($dbValue->value) : $default; |
||
33 | Cache::forever($key, $value); |
||
34 | |||
35 | return $value; |
||
36 | } |
||
37 | |||
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.