Completed
Push — master ( f59553...fef96a )
by Kevin
02:59
created

Blockquote::getAllowedAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 11
ccs 0
cts 10
cp 0
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
crap 2
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
    protected function getAllowedAttributes()
21
    {
22
        $blockquoteAllowedAttributes = array(
23
            '/^cite$/i' => Element::ATTR_URI
24
        );
25
26
        return array_merge(
27
            $blockquoteAllowedAttributes,
28
            parent::getAllowedAttributes()
29
        );
30
    }
31
}
32