Completed
Push — master ( 45904d...9fbe45 )
by Kevin
03:18
created

Colgroup::getAllowedAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

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 11
ccs 0
cts 10
cp 0
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Groundskeeper\Tokens\Elements;
4
5
use Groundskeeper\Tokens\Element;
6
7
/**
8
 * "colgroup" element
9
 *
10
 * https://html.spec.whatwg.org/multipage/semantics.html#the-colgroup-element
11
 */
12
class Colgroup extends Element
13
{
14
    protected function getAllowedAttributes()
15
    {
16
        $colgroupAllowedAttributes = array(
17
            '/^span$/i' => Element::ATTR_INT,
18
        );
19
20
        return array_merge(
21
            $colgroupAllowedAttributes,
22
            parent::getAllowedAttributes()
23
        );
24
    }
25
}
26