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

Disallowed::getProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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