AbstractConfigurationFile::configureSchema()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 7
Ratio 100 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 7
loc 7
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Magium\Configuration\File\Configuration;
4
5
use Magium\Configuration\File\AbstractAdapter;
6
7
abstract class AbstractConfigurationFile extends AbstractAdapter
8
{
9 8 View Code Duplication
    protected function configureSchema(\DOMElement $element)
10
    {
11 8
        $schema = realpath(__DIR__ . '/../../../assets/configuration.xsd');
12 8
        $element->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://www.magiumlib.com/Configuration');
13 8
        $element->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', 'http://www.magiumlib.com/Configuration ' . $schema);
14 8
        return $schema;
15
    }
16
}
17