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