Lines 100.00% 3 / 3
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 formatDate 100.00% 3 / 3 100.00% 1 / 1 1
27class FormatDateTwigExtension extends AbstractExtension
28{
29    #[AsTwigFilter(name: 'formatDate')]
30    public static function formatDate(string $string): string
31    {
32        $configuration = Configuration::getConfigurationInstance();
33        $date = new Date($configuration);
34        return $date->format($string);
35    }
36}