Test Failed
Pull Request — master (#173)
by
unknown
15:48 queued 13:33
created

FirewallWhitelist::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace PragmaRX\Firewall\Middleware;
4
5
use PragmaRX\Firewall\Filters\Whitelist;
6
7
class FirewallWhitelist extends FilterMiddleware
8
{
9
    protected $whitelist;
10
11
    public function __construct(Whitelist $whitelist)
12
    {
13
        $this->whitelist = $whitelist;
14
    }
15
16
    /**
17
     * Filter Request.
18
     *
19
     * @return mixed
20
     */
21
    public function filter()
22
    {
23
        return $this->whitelist->filter();
24
    }
25
}
26