Completed
Branch master (af7ffa)
by
unknown
24:08
created

Html5Internal   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 14
rs 10
c 1
b 0
f 0
wmc 2
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A tidy() 0 3 1
1
<?php
2
3
namespace MediaWiki\Tidy;
4
5
class Html5Internal extends TidyDriverBase {
6
	private $balancer;
7
	public function __construct( array $config ) {
8
		parent::__construct( $config + [
9
			'strict' => true,
10
			'tidyCompat' => true,
11
		] );
12
		$this->balancer = new Balancer( $this->config );
13
	}
14
15
	public function tidy( $text ) {
16
		return $this->balancer->balance( $text );
17
	}
18
}
19