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