1 | <?php |
||
20 | class BreakpointExtension extends Twig_Extension |
||
21 | { |
||
22 | 1 | public function getName() |
|
26 | |||
27 | 1 | public function getFunctions() |
|
33 | |||
34 | /** |
||
35 | * If XDebug is detected, makes the debugger break. |
||
36 | * |
||
37 | * @param Twig_Environment $environment the environment instance |
||
38 | * @param mixed $context variables from the Twig template |
||
39 | */ |
||
40 | public function setBreakpoint(Twig_Environment $environment, $context) |
||
47 | } |
||
48 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.