Completed
Push — master ( 14c945...6811c1 )
by Henry
05:37
created

Browser::autorun()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
	public function autorun() : void
23
	{
24
		$this->_detect(
25
		[
26
			'safari',
27
			'chrome',
28
			'chromium',
29
			'edge',
30
			'firefox',
31
			'konqueror',
32
			'msie',
33
			'netscape',
34
			'opera'
35
		]);
36
	}
37
}
38