Completed
Pull Request — master (#103)
by Asmir
03:32
created

HTML5

Complexity

Total Complexity 0

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Importance

Changes 8
Bugs 0 Features 3
Metric Value
wmc 0
c 8
b 0
f 3
cbo 1
dl 0
loc 5
1
<?php
2
namespace Masterminds;
3
4
use Masterminds\Html5\Parser\FileInputStream;
5
use Masterminds\Html5\Parser\StringInputStream;
6
use Masterminds\Html5\Parser\DOMTreeBuilder;
7
use Masterminds\Html5\Parser\Scanner;
8
use Masterminds\Html5\Parser\Tokenizer;
9
use Masterminds\Html5\Serializer\OutputRules;
10
use Masterminds\Html5\Serializer\Traverser;
11
12
class HTML5 extends AbstractHtml5
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type Masterminds\Html5 has been defined more than once; this definition is ignored, only the first definition in src/HTML5.php (L12-16) is considered.

This check looks for classes that have been defined more than once.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
13
{
14
15
16
}
17