Completed
Push — master ( 91ab9a...64950e )
by Kevin
04:15
created

Fieldset::fixSelf()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 1

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 6
loc 6
ccs 0
cts 3
cp 0
rs 9.4285
cc 1
eloc 1
nc 1
nop 1
crap 2
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
 * "fieldset" element
12
 *
13
 * https://html.spec.whatwg.org/multipage/forms.html#the-fieldset-element
14
 */
15 View Code Duplication
class Fieldset extends OpenElement implements FlowContent, SectioningRoot
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
16
{
17
    protected function getAllowedAttributes()
18
    {
19
        $fieldsetAllowedAttributes = array(
20
            '/^disabled$/i' => Attribute::BOOL,
21
            '/^form$/i' => Attribute::CS_STRING,
22
            '/^name$/i' => Attribute::CS_STRING
23
        );
24
25
        return array_merge(
26
            $fieldsetAllowedAttributes,
27
            parent::getAllowedAttributes()
28
        );
29
    }
30
31
    protected function fixSelf(LoggerInterface $logger)
32
    {
33
        // If "legend" element is present, then it must be the first
34
        // child of "fieldset" element.
35
        /// @todo
36
    }
37
}
38