| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 24 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 41 | public function injectInto(\Twig\Environment $twig): \Twig\Environment  | 
            ||
| 42 |     { | 
            ||
| 43 | $functions = $this->functions;  | 
            ||
| 44 | |||
| 45 |         if (function_exists('apply_filters')) { | 
            ||
| 46 | /**  | 
            ||
| 47 | * Filter Kses List to register  | 
            ||
| 48 | *  | 
            ||
| 49 | * @since 1.0.0  | 
            ||
| 50 | *  | 
            ||
| 51 | * @param array $functions The current kses list.  | 
            ||
| 52 | * @param \Twig\Environment $twig The twig environment instance.  | 
            ||
| 53 | */  | 
            ||
| 54 | $functions = apply_filters(self::FILTER_FUNCTIONS_LIST, $functions, $twig);  | 
            ||
| 55 | }  | 
            ||
| 56 | |||
| 57 |         foreach ($functions as $key => $k) { | 
            ||
| 58 | // Looking for options.  | 
            ||
| 59 | list($k, $options) = $this->extractConfiguration((array)$k);  | 
            ||
| 60 | |||
| 61 | $twig->addFunction(new \Twig\TwigFunction($key, $k, $options));  | 
            ||
| 62 | }  | 
            ||
| 63 | |||
| 64 | return $twig;  | 
            ||
| 65 | }  | 
            ||
| 67 |