@@ -50,21 +50,21 @@ discard block |
||
50 | 50 | ]; |
51 | 51 | case HttpMethods::Put: |
52 | 52 | $etag = $params[0]; |
53 | - if(!empty($etag)){ |
|
54 | - return [ |
|
55 | - Headers::ContentType => ContentTypes::Calendar, |
|
56 | - Headers::IfMatch => $etag |
|
57 | - ]; |
|
58 | - } |
|
53 | + if(!empty($etag)){ |
|
54 | + return [ |
|
55 | + Headers::ContentType => ContentTypes::Calendar, |
|
56 | + Headers::IfMatch => $etag |
|
57 | + ]; |
|
58 | + } |
|
59 | 59 | } |
60 | 60 | return []; |
61 | 61 | } |
62 | 62 | /** |
63 | - * @param string $url |
|
64 | - * @param string $body |
|
65 | - * @param int $depth |
|
66 | - * @return Request |
|
67 | - */ |
|
63 | + * @param string $url |
|
64 | + * @param string $body |
|
65 | + * @param int $depth |
|
66 | + * @return Request |
|
67 | + */ |
|
68 | 68 | public static function createPropFindRequest($url , $body, $depth = 1){ |
69 | 69 | return new Request |
70 | 70 | ( |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @param string $etag |
154 | 154 | * @return Request |
155 | 155 | */ |
156 | - public static function createPutRequest($url, $body, $etag = null){ |
|
156 | + public static function createPutRequest($url, $body, $etag = null){ |
|
157 | 157 | return new Request |
158 | 158 | ( |
159 | 159 | HttpMethods::Put, |