Total Complexity | 7 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class base |
||
18 | { |
||
19 | /** |
||
20 | * [base_url] |
||
21 | * @return string |
||
22 | */ |
||
23 | public function url() |
||
24 | { |
||
25 | $protocol = $this->protocol(); |
||
26 | |||
27 | $base_url = $protocol . '://' . $_SERVER['HTTP_HOST']; |
||
28 | |||
29 | return $base_url; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * [base_uri] |
||
34 | * @return string |
||
35 | */ |
||
36 | public function uri() |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * [basepath] |
||
52 | * @return string |
||
53 | */ |
||
54 | public function basepath() |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * [protocol] |
||
63 | * @return string |
||
64 | */ |
||
65 | public function protocol() |
||
71 |