Browser   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A autorun() 0 15 1
1
<?php
2
namespace Redaxscript\Client;
3
4
/**
5
 * children class to detect the browser name
6
 *
7
 * @since 2.4.0
8
 *
9
 * @package Redaxscript
10
 * @category Client
11
 * @author Henry Ruhs
12
 */
13
14
class Browser extends ClientAbstract
15
{
16
	/**
17
	 * automate run
18
	 *
19
	 * @since 2.4.0
20
	 */
21
22 13
	public function autorun() : void
23
	{
24 13
		$this->_detect(
25
		[
26 13
			'safari',
27
			'chrome',
28
			'chromium',
29
			'edge',
30
			'firefox',
31
			'konqueror',
32
			'msie',
33
			'netscape',
34
			'opera'
35
		]);
36 13
	}
37
}
38