| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | View Code Duplication | public static function findCachedById($id) |
|
| 30 | { |
||
| 31 | $key = HOST_HASH . md5("Javascript::getCachedScript($id)"); |
||
| 32 | $result = self::findFirst(array("id ='{$id}'", |
||
| 33 | 'cache' => array( |
||
| 34 | 'key' => $key, |
||
| 35 | 'lifetime' => 1200, //20 min |
||
| 36 | ) |
||
| 37 | )); |
||
| 38 | return $result; |
||
| 39 | } |
||
| 40 | |||
| 57 | } |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.