Test Setup Failed
Push — master ( 933cc6...a54369 )
by Delete
02:38
created

Disallowed::addProperty()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 9
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 9
loc 9
rs 9.6666
cc 2
eloc 5
nc 2
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Crossjoin\Browscap\PropertyFilter;
5
6
/**
7
 * Class Disallowed
8
 *
9
 * @package Crossjoin\Browscap\PropertyFilter
10
 * @author Christoph Ziegenberg <[email protected]>
11
 * @link https://github.com/crossjoin/browscap
12
 */
13
class Disallowed extends PropertyAbstract
14
{
15
    /**
16
     * @inheritdoc
17
     */
18
    public function isFiltered(string $property) : bool
19
    {
20
        return in_array(strtolower($property), $this->getProperties(), true);
21
    }
22
}
23