Completed
Push — master ( 559d2f...0490e0 )
by Kevin
03:29
created

Colgroup::getAllowedAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

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