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

Q   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 2
Metric Value
wmc 1
c 2
b 1
f 2
lcom 0
cbo 1
dl 0
loc 14
ccs 6
cts 6
cp 1
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
use Groundskeeper\Tokens\ElementTypes\FlowContent;
7
use Groundskeeper\Tokens\ElementTypes\InlineElement;
8
use Groundskeeper\Tokens\ElementTypes\OpenElement;
9
use Groundskeeper\Tokens\ElementTypes\PhrasingContent;
10
11
/**
12
 * "q" element
13
 *
14
 * https://html.spec.whatwg.org/multipage/semantics.html#the-q-element
15
 */
16
class Q extends OpenElement implements FlowContent, PhrasingContent, InlineElement
17
{
18 1
    protected function getAllowedAttributes()
19
    {
20
        $aAllowedAttributes = array(
21
            '/^cite$/i' => Element::ATTR_CS_STRING
22 1
        );
23
24 1
        return array_merge(
25 1
            $aAllowedAttributes,
26 1
            parent::getAllowedAttributes()
27 1
        );
28
    }
29
}
30