@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | if($time_zone->getName() == 'UTC'){ |
61 | 61 | $event->setUseUtc(true) |
62 | - ->setUseTimezone(false); |
|
62 | + ->setUseTimezone(false); |
|
63 | 63 | } |
64 | 64 | else{ |
65 | 65 | $event->setUseUtc(false) |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function __construct(){ |
23 | 23 | $this->properties = [ |
24 | - '{DAV:}current-user-principal' |
|
24 | + '{DAV:}current-user-principal' |
|
25 | 25 | ]; |
26 | 26 | } |
27 | 27 | } |
28 | 28 | \ No newline at end of file |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function getContent() |
39 | 39 | { |
40 | - $service = new Service(); |
|
40 | + $service = new Service(); |
|
41 | 41 | |
42 | 42 | $service->namespaceMap = [ |
43 | 43 | 'DAV:' => 'D', |
@@ -55,28 +55,28 @@ |
||
55 | 55 | break; |
56 | 56 | case HttpMethods::Put: |
57 | 57 | { |
58 | - $etag = $params[0]; |
|
59 | - if(empty($etag)){ |
|
60 | - return [ |
|
61 | - Headers::ContentType => ContentTypes::Calendar, |
|
62 | - Headers::IfNotMatch => '*', |
|
63 | - ]; |
|
64 | - } |
|
65 | - return [ |
|
66 | - Headers::ContentType => ContentTypes::Calendar, |
|
67 | - Headers::IfMatch => $etag |
|
68 | - ]; |
|
58 | + $etag = $params[0]; |
|
59 | + if(empty($etag)){ |
|
60 | + return [ |
|
61 | + Headers::ContentType => ContentTypes::Calendar, |
|
62 | + Headers::IfNotMatch => '*', |
|
63 | + ]; |
|
64 | + } |
|
65 | + return [ |
|
66 | + Headers::ContentType => ContentTypes::Calendar, |
|
67 | + Headers::IfMatch => $etag |
|
68 | + ]; |
|
69 | 69 | } |
70 | 70 | break; |
71 | 71 | } |
72 | 72 | return []; |
73 | 73 | } |
74 | 74 | /** |
75 | - * @param string $url |
|
76 | - * @param string $body |
|
77 | - * @param int $depth |
|
78 | - * @return Request |
|
79 | - */ |
|
75 | + * @param string $url |
|
76 | + * @param string $body |
|
77 | + * @param int $depth |
|
78 | + * @return Request |
|
79 | + */ |
|
80 | 80 | static public function createPropFindRequest($url , $body, $depth = 1){ |
81 | 81 | return new Request |
82 | 82 | ( |