Configurator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 9
ccs 0
cts 0
cp 0
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTemplate() 0 3 1
1
<?php declare(strict_types=1);
2
3
/**
4
* @package   s9e\TextFormatter
5
* @copyright Copyright (c) The s9e authors
6
* @license   http://www.opensource.org/licenses/mit-license.php The MIT License
7
*/
8
namespace s9e\TextFormatter\Plugins\Autovideo;
9
10
use s9e\TextFormatter\Plugins\AbstractStaticUrlReplacer\AbstractConfigurator;
11
12
class Configurator extends AbstractConfigurator
13
{
14
	public    array  $fileExtensions = ['mov', 'mp4', 'ogg', 'webm'];
15
	protected        $attrName       = 'src';
16
	protected        $tagName        = 'VIDEO';
17
18
	protected function getTemplate(): string
19
	{
20
		return '<video controls="" src="{@' . $this->attrName . '}"/>';
21
	}
22
}