| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | private function loadCache() |
||
| 46 | { |
||
| 47 | $cache = file_get_contents(api_get_path(SYS_ARCHIVE_PATH).'lti_cache.txt'); |
||
| 48 | if (empty($cache)) { |
||
| 49 | file_put_contents(api_get_path(SYS_ARCHIVE_PATH).'lti_cache.txt', '{}'); |
||
| 50 | $this->cache = []; |
||
| 51 | } |
||
| 52 | $this->cache = json_decode($cache, true); |
||
| 53 | } |
||
| 60 |