Passed
Push — master ( 9c3f5b...41e382 )
by Antonio Carlos
03:03
created

FirewallBlacklist::handle()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 11
Code Lines 5

Duplication

Lines 11
Ratio 100 %

Importance

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