Completed
Push — master ( b66e97...9d450b )
by Kevin
02:16
created

Base   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 15
ccs 0
cts 11
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllowedAttrbutes() 0 12 1
1
<?php
2
3
namespace Groundskeeper\Tokens\Elements;
4
5
class Base extends ClosedElement
6
{
7
    protected function getAllowedAttrbutes()
8
    {
9
        $baseAllowedAttributes = array(
10
            '/^href$/i' => Element::ATTR_URI,
11
            '/^target$/i' => Element::ATTR_CS_STRING
12
        );
13
14
        return array_merge(
15
            $baseAllowedAttributes,
16
            parent::getAllowedAttrbutes()
17
        );
18
    }
19
}
20