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

Colgroup   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllowedAttributes() 0 11 1
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