| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function processData($data) |
||
| 33 | { |
||
| 34 | // Fetch content from cache if possible |
||
| 35 | $content = self::fromCache($data); |
||
| 36 | if ($content === false) { |
||
| 37 | $content = self::downloadContent($data); |
||
| 38 | self::toCache($data, $content); |
||
| 39 | } |
||
| 40 | |||
| 41 | return nl2br(Html::encode($content)); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |