@@ -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', |
@@ -50,26 +50,26 @@ discard block |
||
| 50 | 50 | break; |
| 51 | 51 | case HttpMethods::Put: |
| 52 | 52 | $etag = $params[0]; |
| 53 | - if(empty($etag)){ |
|
| 54 | - return [ |
|
| 55 | - Headers::ContentType => ContentTypes::Calendar, |
|
| 56 | - Headers::IfNotMatch => '*', |
|
| 57 | - ]; |
|
| 58 | - } |
|
| 59 | - return [ |
|
| 60 | - Headers::ContentType => ContentTypes::Calendar, |
|
| 61 | - Headers::IfMatch => $etag |
|
| 62 | - ]; |
|
| 53 | + if(empty($etag)){ |
|
| 54 | + return [ |
|
| 55 | + Headers::ContentType => ContentTypes::Calendar, |
|
| 56 | + Headers::IfNotMatch => '*', |
|
| 57 | + ]; |
|
| 58 | + } |
|
| 59 | + return [ |
|
| 60 | + Headers::ContentType => ContentTypes::Calendar, |
|
| 61 | + Headers::IfMatch => $etag |
|
| 62 | + ]; |
|
| 63 | 63 | break; |
| 64 | 64 | } |
| 65 | 65 | return []; |
| 66 | 66 | } |
| 67 | 67 | /** |
| 68 | - * @param string $url |
|
| 69 | - * @param string $body |
|
| 70 | - * @param int $depth |
|
| 71 | - * @return Request |
|
| 72 | - */ |
|
| 68 | + * @param string $url |
|
| 69 | + * @param string $body |
|
| 70 | + * @param int $depth |
|
| 71 | + * @return Request |
|
| 72 | + */ |
|
| 73 | 73 | public static function createPropFindRequest($url , $body, $depth = 1){ |
| 74 | 74 | return new Request |
| 75 | 75 | ( |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * @param string $etag |
| 159 | 159 | * @return Request |
| 160 | 160 | */ |
| 161 | - public static function createPutRequest($url, $body, $etag = null){ |
|
| 161 | + public static function createPutRequest($url, $body, $etag = null){ |
|
| 162 | 162 | return new Request |
| 163 | 163 | ( |
| 164 | 164 | HttpMethods::Put, |