| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ChecExtension extends SiteTreeExtension |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Loads the third party JavaScript during Controller->init() |
||
| 12 | */ |
||
| 13 | public function contentcontrollerInit(): void |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Tries to fetch the inline Chec JS from cache, failing which it gets it from the URL. |
||
| 22 | * Should your theme clear requirements, placing this before the closing body tag ensures |
||
| 23 | * that it always gets loaded. |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getChecJavaScript(): string |
||
| 35 |