IconifySvg   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 1
f 0
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getProcessors() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of ocubom/twig-svg-extension
5
 *
6
 * © Oscar Cubo Medina <https://ocubom.github.io>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ocubom\Twig\Extension\Svg\Provider\Iconify;
13
14
use Ocubom\Twig\Extension\Svg\Processor\RemoveAttributesProcessor;
15
use Ocubom\Twig\Extension\Svg\Svg;
16
17
class IconifySvg extends Svg
18
{
19 1
    protected static function getProcessors(): array
20
    {
21 1
        return array_merge(parent::getProcessors(), [
22
            // Options will be ignored & removed
23 1
            new RemoveAttributesProcessor(
24 1
                'data-icon',
25 1
                'icon',
26 1
            ),
27 1
        ]);
28
    }
29
}
30