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