Tablet::autorun()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 9.9
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 tablet device
6
 *
7
 * @since 2.4.0
8
 *
9
 * @package Redaxscript
10
 * @category Client
11
 * @author Henry Ruhs
12
 */
13
14
class Tablet 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
			'tablet',
27
			'android',
28
			'ipad',
29
			'kindle',
30
			'xoom'
31
		]);
32 13
	}
33
}
34