| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | function perTemplateResolveData() { |
||
| 25 | return function(ResolveDataArgs $args, $next) { |
||
| 26 | $ctx = $args->getContext(); |
||
| 27 | $name = $args->getTemplate()->name; |
||
| 28 | if (!isset($ctx['pre_assigned_template_data'][$name])) { |
||
| 29 | return $next($args); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $next($args->withAddedData($ctx['pre_assigned_template_data'][$name])); |
||
| 33 | }; |
||
| 34 | } |
||
| 35 | |||
| 48 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.