1 | |||
0 ignored issues
–
show
Security
Bug
introduced
by
![]() |
|||
2 | <?php |
||
3 | |||
4 | use Bytesfield\SimpleKyc\SimpleKyc; |
||
5 | |||
6 | |||
7 | if (!function_exists('simple_kyc')) { |
||
8 | function simple_kyc() |
||
9 | { |
||
10 | return new SimpleKyc(); |
||
11 | } |
||
12 | } |
||
13 | |||
14 | if (!function_exists('filterCountry')) { |
||
15 | function filterCountry($country = null) |
||
16 | { |
||
17 | if ($country == null) { |
||
18 | return 'NG'; |
||
19 | } |
||
20 | $country = strtoupper($country); |
||
21 | |||
22 | if ($country == 'NIGERIA') { |
||
23 | return 'NG'; |
||
24 | } |
||
25 | |||
26 | if ($country == 'GHANA') { |
||
27 | return 'GH'; |
||
28 | } |
||
29 | |||
30 | if ($country == 'KENYA') { |
||
31 | return 'KE'; |
||
32 | } |
||
33 | |||
34 | if ($country == 'UGANDA') { |
||
35 | return 'UG'; |
||
36 | } |
||
37 | |||
38 | return $country; |
||
39 | } |
||
40 | } |
||
41 |