@@ -50,25 +50,25 @@ 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::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 | } |
64 | 64 | return []; |
65 | 65 | } |
66 | 66 | /** |
67 | - * @param string $url |
|
68 | - * @param string $body |
|
69 | - * @param int $depth |
|
70 | - * @return Request |
|
71 | - */ |
|
67 | + * @param string $url |
|
68 | + * @param string $body |
|
69 | + * @param int $depth |
|
70 | + * @return Request |
|
71 | + */ |
|
72 | 72 | public static function createPropFindRequest($url , $body, $depth = 1){ |
73 | 73 | return new Request |
74 | 74 | ( |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * @param string $etag |
158 | 158 | * @return Request |
159 | 159 | */ |
160 | - public static function createPutRequest($url, $body, $etag = null){ |
|
160 | + public static function createPutRequest($url, $body, $etag = null){ |
|
161 | 161 | return new Request |
162 | 162 | ( |
163 | 163 | HttpMethods::Put, |