Conditions | 6 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function getAll(array $filtros){ |
||
17 | $filtro = ''; |
||
18 | if(is_array($filtros)){ |
||
|
|||
19 | if($filtros){ |
||
20 | foreach($filtros as $key => $f){ |
||
21 | if(!empty($f)){ |
||
22 | if($filtro){ |
||
23 | $filtro .= '&'; |
||
24 | } |
||
25 | $filtro .= $key.'='.$f; |
||
26 | } |
||
27 | } |
||
28 | $filtro = '?'.$filtro; |
||
29 | } |
||
30 | } |
||
31 | return $this->http->get('/cities'.$filtro); |
||
32 | } |
||
40 |