| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 9 | public function getFunctions() |
|
| 33 | { |
||
| 34 | return [ |
||
| 35 | new Twig_SimpleFunction('parse_url', function ($url) { |
||
| 36 | 3 | return $this->parser |
|
| 37 | 3 | ->parseUrl($url) |
|
| 38 | 3 | ->toArray(); |
|
| 39 | 9 | }), |
|
| 40 | 9 | new Twig_SimpleFunction('parse_host', function ($host) { |
|
| 41 | 3 | return $this->parser |
|
| 42 | 3 | ->parseHost($host) |
|
| 43 | 3 | ->toArray(); |
|
| 44 | 9 | }), |
|
| 45 | 9 | ]; |
|
| 46 | } |
||
| 47 | |||
| 69 |