IconifySvg::getProcessors()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
c 1
b 1
f 0
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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