| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | public function getCacheSetting() |
||
| 41 | { |
||
| 42 | $cache_name = 'setting'; |
||
| 43 | |||
| 44 | if (Cache::has($cache_name) && !Cache::get($cache_name)->isEmpty()) { |
||
| 45 | $data_cache = Cache::get($cache_name); |
||
| 46 | } else { |
||
| 47 | $data_cache = Cache::remember($cache_name, $this->cache_time_forever, function () { |
||
| 48 | return $this->getSetting(); |
||
| 49 | }); |
||
| 50 | } |
||
| 51 | |||
| 52 | return $data_cache; |
||
| 53 | } |
||
| 55 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.