Test Setup Failed
Pull Request — master (#4522)
by Craig
08:26 queued 03:47
created

SessionExtension::showFlashes()   B

Complexity

Conditions 9
Paths 36

Size

Total Lines 45
Code Lines 29

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 9
eloc 29
nc 36
nop 1
dl 0
loc 45
rs 8.0555
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\Bundle\CoreBundle\Twig\Extension;
15
16
use Twig\Extension\AbstractExtension;
17
use Twig\TwigFunction;
18
use Zikula\Bundle\CoreBundle\Twig\Runtime\SessionRuntime;
19
20
class SessionExtension extends AbstractExtension
21
{
22
    public function getFunctions()
23
    {
24
        return [
25
            new TwigFunction('showflashes', [SessionRuntime::class, 'showFlashes'], ['is_safe' => ['html']])
26
        ];
27
    }
28
}
29