OmitNode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
cbo 2
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A visit() 0 6 1
1
<?php
2
namespace Goetas\Twital\Node;
3
4
use Goetas\Twital\Compiler;
5
use Goetas\Twital\Helper\DOMHelper;
6
use Goetas\Twital\Node;
7
8
/**
9
 *
10
 * @author Asmir Mustafic <[email protected]>
11
 *
12
 */
13
class OmitNode implements Node
14
{
15 21
    public function visit(\DOMElement $node, Compiler $context)
16
    {
17 21
        $context->compileAttributes($node);
18 21
        $context->compileChilds($node);
19 21
        DOMHelper::replaceWithSet($node, iterator_to_array($node->childNodes));
20 21
    }
21
}
22