Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
47 | 9 | public function buildUrl($key, $fops, $protocol = 'http') |
|
48 | { |
||
49 | 9 | if (is_array($fops)) { |
|
50 | 3 | $fops = implode('|', $fops); |
|
51 | 3 | } |
|
52 | |||
53 | 9 | $url = $protocol . "://$this->domain/$key?$fops"; |
|
54 | 9 | if ($this->auth !== null) { |
|
55 | 3 | $url = $this->auth->privateDownloadUrl($url, $this->token_expire); |
|
56 | 3 | } |
|
57 | |||
58 | 9 | return $url; |
|
59 | } |
||
60 | } |
||
61 |