Blockquote   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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\Attribute;
6
use Groundskeeper\Tokens\ElementTypes\FlowContent;
7
use Groundskeeper\Tokens\ElementTypes\OpenElement;
8
use Groundskeeper\Tokens\ElementTypes\SectioningRoot;
9
10
/**
11
 * "blockquote" element
12
 *
13
 * https://html.spec.whatwg.org/multipage/semantics.html#the-blockquote-element
14
 */
15
class Blockquote extends OpenElement implements FlowContent, SectioningRoot
16
{
17 1
    protected function getAllowedAttributes()
18
    {
19
        $blockquoteAllowedAttributes = array(
20 1
            '/^cite$/i' => Attribute::URI
21
        );
22
23 1
        return array_merge(
24 1
            $blockquoteAllowedAttributes,
25 1
            parent::getAllowedAttributes()
26
        );
27
    }
28
}
29