Lines 100.00% 2 / 2
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 getTagName 100.00% 2 / 2 100.00% 1 / 1 1
27class TagNameTwigExtension extends AbstractExtension
28{
29    #[AsTwigFilter(name: 'tagName')]
30    public static function getTagName(int $tagId): string
31    {
32        $tags = new Tags(Configuration::getConfigurationInstance());
33        return $tags->getTagNameById($tagId);
34    }
35}