| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public function getFunctions(): array |
|
| 18 | { |
||
| 19 | return [ |
||
| 20 | 1 | new \Twig_SimpleFunction( |
|
| 21 | 1 | self::FUNCTION_NAME, |
|
| 22 | function (string $moleculeName, string $moleculeModule = self::MODULE) { |
||
| 23 | 1 | return $this->twigMolecule($moleculeName, $moleculeModule); |
|
| 24 | 1 | }, |
|
| 25 | [ |
||
| 26 | 1 | $this, |
|
| 27 | 1 | self::FUNCTION_NAME |
|
| 28 | ] |
||
| 44 | } |