Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function getPrefix() |
||
38 | { |
||
39 | // the prefix might not start with a forward slash, but the REQUEST_URI always will |
||
40 | // make sure we always have a forward slash so the comparison to REQUEST_URI works as expected |
||
41 | return ($this->prefix[0] !== '/') ? "/$this->prefix" : $this->prefix; |
||
42 | } |
||
43 | } |