Conditions | 4 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function check($username) { |
||
34 | $ret = null; |
||
35 | if(is_array($username)){ |
||
36 | foreach($username as $key){ |
||
37 | $get = $this->_check($key); |
||
38 | if(!empty($get)){ |
||
39 | $ret[] = $get; |
||
40 | } |
||
41 | } |
||
42 | } else{ |
||
43 | $ret = $this->_check($username); |
||
44 | } |
||
45 | $ret = json_encode($ret); |
||
46 | return json_decode($ret); |
||
47 | } |
||
62 |