Disallowed   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isFiltered() 0 4 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