Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
18 | public static function adjustWhiteList($white) |
||
19 | { |
||
20 | if ($white == '') { |
||
21 | return array(); |
||
22 | } |
||
23 | |||
24 | $w = explode(",", str_replace('\\', '/', $white)); |
||
25 | |||
26 | $whitelist = array_map(function ($item) { |
||
27 | return str_finish($item, '/'); |
||
28 | }, |
||
29 | $w |
||
30 | ); |
||
31 | |||
32 | return $whitelist; |
||
33 | } |
||
34 | } |
||
35 |