Desktop::autorun()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace Redaxscript\Client;
3
4
/**
5
 * children class to detect the desktop device
6
 *
7
 * @since 2.4.0
8
 *
9
 * @package Redaxscript
10
 * @category Client
11
 * @author Henry Ruhs
12
 */
13
14
class Desktop 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
			'bsd',
27
			'linux',
28
			'ubuntu',
29
			'macintosh',
30
			'solaris',
31
			'windows'
32
		]);
33 13
	}
34
}
35