Passed
Push — master ( 7db8fc...45dcbf )
by Carlos C
01:00 queued 12s
created

XsltRetriever::searchElements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Eclipxe\XmlResourceRetriever;
6
7
class XsltRetriever extends AbstractXmlRetriever
8
{
9 1
    protected function searchNamespace(): string
10
    {
11 1
        return 'http://www.w3.org/1999/XSL/Transform';
12
    }
13
14
    /**
15
     * @return array<int, array<string, string>>
16
     */
17
    protected function searchElements(): array
18
    {
19
        return [
20
            ['element' => 'import', 'attribute' => 'href'],
21
            ['element' => 'include', 'attribute' => 'href'],
22
        ];
23
    }
24
}
25