| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function afterCall($proxied, $method, $args, $result) |
||
| 17 | { |
||
| 18 | $message = (empty($result)) ? "Missed: {$args[0]}" : "Hit: {$args[0]}"; |
||
| 19 | $result = preg_replace('/\s+/', ' ', trim($result)); |
||
| 20 | $result = Convert::raw2att($result); |
||
| 21 | PartialCacheCollector::addTemplateCache( |
||
| 22 | $message, |
||
| 23 | array( |
||
| 24 | 'cache_result' => |
||
| 25 | array('result' => $result) |
||
| 26 | ) |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |