| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function register(Plates\Engine $plates) { |
||
| 11 | $c = $plates->getContainer(); |
||
| 12 | |||
| 13 | $c->wrap('compose', function($compose, $c) { |
||
|
|
|||
| 14 | return Plates\Util\compose($compose, sectionsCompose()); |
||
| 15 | }); |
||
| 16 | $c->wrap('renderTemplate.factories', function($factories) { |
||
| 17 | $factories[] = LayoutRenderTemplate::factory(); |
||
| 18 | return $factories; |
||
| 19 | }); |
||
| 20 | $c->wrap('renderContext.func.funcs', function($funcs, $c) { |
||
| 21 | $template_args = RenderContext\assertTemplateArgsFunc(); |
||
| 22 | $one_arg = RenderContext\assertArgsFunc(1); |
||
| 23 | |||
| 24 | return array_merge($funcs, [ |
||
| 25 | 'layout' => [$template_args, layoutFunc()], |
||
| 26 | 'section' => [$one_arg, sectionFunc()], |
||
| 27 | 'start' => [$one_arg, startFunc()], |
||
| 28 | 'push' => [$one_arg, startFunc(START_APPEND)], |
||
| 29 | 'unshift' => [$one_arg, startFunc(START_PREPEND)], |
||
| 30 | ]); |
||
| 31 | }); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.