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

Base::getAllowedAttrbutes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 12
ccs 0
cts 11
cp 0
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
crap 2
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