Conditions | 3 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public static function configureAPIURL($instance){ |
||
18 | if (strpos("http", $instance)===FALSE){ |
||
19 | $instance = "http://".$instance; |
||
20 | } |
||
21 | if (strpos("rest/v10", $instance)!==FALSE){ |
||
22 | $instance = str_replace("rest/v10", "", $instance); |
||
23 | } |
||
24 | return rtrim($instance, "/").self::API_URL; |
||
25 | } |
||
26 | |||
49 | } |