Completed
Push — master ( 9f8b44...e0ac7a )
by Kevin
03:57
created

Blockquote   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 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
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\Configuration;
6
use Groundskeeper\Tokens\Element;
7
use Groundskeeper\Tokens\ElementTypes\FlowContent;
8
use Groundskeeper\Tokens\ElementTypes\OpenElement;
9
use Groundskeeper\Tokens\ElementTypes\SectioningRoot;
10
use Groundskeeper\Tokens\Token;
11
use Psr\Log\LoggerInterface;
12
13
/**
14
 * "blockquote" element
15
 *
16
 * https://html.spec.whatwg.org/multipage/semantics.html#the-blockquote-element
17
 */
18
class Blockquote extends OpenElement implements FlowContent, SectioningRoot
19
{
20 1
    protected function getAllowedAttributes()
21
    {
22
        $blockquoteAllowedAttributes = array(
23
            '/^cite$/i' => Element::ATTR_URI
24 1
        );
25
26 1
        return array_merge(
27 1
            $blockquoteAllowedAttributes,
28 1
            parent::getAllowedAttributes()
29 1
        );
30
    }
31
}
32