Passed
Push — main ( 4a07e7...c747e2 )
by Oscar
05:42
created

Ident::configureOptions()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 32
Code Lines 23

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 26
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 23
c 1
b 0
f 0
dl 0
loc 32
ccs 26
cts 26
cp 1
rs 9.552
cc 2
nc 1
nop 1
crap 2
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;
13
14
use Ocubom\Twig\Extension\Svg\Util\DomIdent;
15
16
/**
17
 * @deprecated since ocubom/twig-svg-extension 1.1.2, use Ocubom\Twig\Extension\Svg\Util\DomIdent instead
18
 *
19
 * @codeCoverageIgnore
20
 */
21
class Ident
22
{
23
    public static function generate(
24
        \DOMElement $element,
25
        iterable $options = null
26
    ): string {
27
        trigger_deprecation('ocubom/twig-svg-extension', '1.1.2', 'Using "%s" is deprecated, use "%s" instead.', static::class, DomIdent::class);
28
29
        return DomIdent::generate($element, $options);
30
    }
31
}
32