Conditions | 6 |
Paths | 20 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php namespace CalDAVClient\Facade\Responses; |
||
24 | public function getPrincipalUrl() { |
||
25 | $url = isset($this->found_props['current-user-principal']) && isset($this->found_props['current-user-principal']['href']) ? |
||
26 | $this->server_url.$this->found_props['current-user-principal']['href'] : null; |
||
27 | // check on not found one ( issue on caldav icloud imp) |
||
28 | if(empty($url)) |
||
29 | $url = isset($this->not_found_props['current-user-principal']) && isset($this->not_found_props['current-user-principal']['href']) ? |
||
30 | $this->server_url.$this->not_found_props['current-user-principal']['href'] : null; |
||
31 | return $url; |
||
32 | } |
||
33 | } |