| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) |
||
| 43 | { |
||
| 44 | if (!isset($compiler->_cache[ 'blockNesting' ])) { |
||
| 45 | $compiler->trigger_template_error(' tag {$smarty.block.child} used outside {block} tags ', |
||
| 46 | $compiler->parser->lex->taglineno); |
||
| 47 | } |
||
| 48 | $compiler->has_code = true; |
||
| 49 | $compiler->suppressNocacheProcessing = true; |
||
| 50 | $compiler->_cache[ 'blockParams' ][ $compiler->_cache[ 'blockNesting' ] ][ 'callsChild' ] = 'true'; |
||
| 51 | $output = "<?php \n\$_smarty_tpl->inheritance->callChild(\$_smarty_tpl, \$this);\n?>\n"; |
||
| 52 | return $output; |
||
| 53 | } |
||
| 54 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.