Conditions | 4 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function hookTemplateRender($templates, $data, $rendered, $controller) |
||
|
|||
25 | { |
||
26 | $template = reset($templates); |
||
27 | |||
28 | if (strpos($template, '/modules/ga_report/templates/panels/') !== false |
||
29 | && isset($data['content']['data']['report']['data']) |
||
30 | && isset($data['content']['data']['handler']['id'])) { |
||
31 | |||
32 | $handler_id = $data['content']['data']['handler']['id']; |
||
33 | $controller->setJsSettings("ga_chart_$handler_id", $data['content']['data']['report']['data']); |
||
34 | |||
35 | $controller->setJs(__DIR__ . "/js/handlers/$handler_id.js"); |
||
36 | $controller->setJs(__DIR__ . "/js/common.js"); |
||
37 | } |
||
38 | } |
||
39 | } |
||
40 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.