Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | class Filter implements FoaasFilter |
||
6 | { |
||
7 | protected $decencyLevelMap = [ |
||
8 | 'low' => [ |
||
9 | 'search' => 'fuck', |
||
10 | 'replace'=> 'f*ck', |
||
11 | ], |
||
12 | 'medium' => [ |
||
13 | 'search' => 'fuck', |
||
14 | 'replace'=> 'f*#k', |
||
15 | ], |
||
16 | 'high' => [ |
||
17 | 'search' => 'fuck', |
||
18 | 'replace'=> 'f*#$', |
||
19 | ], |
||
20 | 'extreme' => [ |
||
21 | 'search' => 'fuck', |
||
22 | 'replace'=> '!*#$', |
||
23 | ], |
||
24 | ]; |
||
25 | |||
26 | protected $decencyLevel; |
||
27 | |||
28 | public function __construct($decency) |
||
29 | { |
||
30 | $this->decencyLevel = $decency; |
||
31 | } |
||
32 | |||
33 | public function filter($response) |
||
36 | } |
||
37 | } |
||
38 |