@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class Conflict extends DAV\Exception |
20 | 20 | { |
21 | - /** |
|
22 | - * Returns the HTTP statuscode for this exception. |
|
23 | - * |
|
24 | - * @return int |
|
25 | - */ |
|
26 | - public function getHTTPCode() |
|
27 | - { |
|
28 | - return 409; |
|
29 | - } |
|
21 | + /** |
|
22 | + * Returns the HTTP statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 409; |
|
29 | + } |
|
30 | 30 | } |
@@ -17,13 +17,13 @@ |
||
17 | 17 | */ |
18 | 18 | class Forbidden extends DAV\Exception |
19 | 19 | { |
20 | - /** |
|
21 | - * Returns the HTTP statuscode for this exception. |
|
22 | - * |
|
23 | - * @return int |
|
24 | - */ |
|
25 | - public function getHTTPCode() |
|
26 | - { |
|
27 | - return 403; |
|
28 | - } |
|
20 | + /** |
|
21 | + * Returns the HTTP statuscode for this exception. |
|
22 | + * |
|
23 | + * @return int |
|
24 | + */ |
|
25 | + public function getHTTPCode() |
|
26 | + { |
|
27 | + return 403; |
|
28 | + } |
|
29 | 29 | } |
@@ -18,12 +18,12 @@ |
||
18 | 18 | */ |
19 | 19 | class InvalidResourceType extends Forbidden |
20 | 20 | { |
21 | - /** |
|
22 | - * This method allows the exception to include additional information into the WebDAV error response. |
|
23 | - */ |
|
24 | - public function serialize(\Sabre\DAV\Server $server, \DOMElement $errorNode) |
|
25 | - { |
|
26 | - $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:valid-resourcetype'); |
|
27 | - $errorNode->appendChild($error); |
|
28 | - } |
|
21 | + /** |
|
22 | + * This method allows the exception to include additional information into the WebDAV error response. |
|
23 | + */ |
|
24 | + public function serialize(\Sabre\DAV\Server $server, \DOMElement $errorNode) |
|
25 | + { |
|
26 | + $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:valid-resourcetype'); |
|
27 | + $errorNode->appendChild($error); |
|
28 | + } |
|
29 | 29 | } |
@@ -17,12 +17,12 @@ |
||
17 | 17 | */ |
18 | 18 | class ReportNotSupported extends UnsupportedMediaType |
19 | 19 | { |
20 | - /** |
|
21 | - * This method allows the exception to include additional information into the WebDAV error response. |
|
22 | - */ |
|
23 | - public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
24 | - { |
|
25 | - $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:supported-report'); |
|
26 | - $errorNode->appendChild($error); |
|
27 | - } |
|
20 | + /** |
|
21 | + * This method allows the exception to include additional information into the WebDAV error response. |
|
22 | + */ |
|
23 | + public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
24 | + { |
|
25 | + $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:supported-report'); |
|
26 | + $errorNode->appendChild($error); |
|
27 | + } |
|
28 | 28 | } |
@@ -17,13 +17,13 @@ |
||
17 | 17 | */ |
18 | 18 | class NotImplemented extends DAV\Exception |
19 | 19 | { |
20 | - /** |
|
21 | - * Returns the HTTP statuscode for this exception. |
|
22 | - * |
|
23 | - * @return int |
|
24 | - */ |
|
25 | - public function getHTTPCode() |
|
26 | - { |
|
27 | - return 501; |
|
28 | - } |
|
20 | + /** |
|
21 | + * Returns the HTTP statuscode for this exception. |
|
22 | + * |
|
23 | + * @return int |
|
24 | + */ |
|
25 | + public function getHTTPCode() |
|
26 | + { |
|
27 | + return 501; |
|
28 | + } |
|
29 | 29 | } |
@@ -17,13 +17,13 @@ |
||
17 | 17 | */ |
18 | 18 | class NotFound extends DAV\Exception |
19 | 19 | { |
20 | - /** |
|
21 | - * Returns the HTTP statuscode for this exception. |
|
22 | - * |
|
23 | - * @return int |
|
24 | - */ |
|
25 | - public function getHTTPCode() |
|
26 | - { |
|
27 | - return 404; |
|
28 | - } |
|
20 | + /** |
|
21 | + * Returns the HTTP statuscode for this exception. |
|
22 | + * |
|
23 | + * @return int |
|
24 | + */ |
|
25 | + public function getHTTPCode() |
|
26 | + { |
|
27 | + return 404; |
|
28 | + } |
|
29 | 29 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class ServiceUnavailable extends DAV\Exception |
20 | 20 | { |
21 | - /** |
|
22 | - * Returns the HTTP statuscode for this exception. |
|
23 | - * |
|
24 | - * @return int |
|
25 | - */ |
|
26 | - public function getHTTPCode() |
|
27 | - { |
|
28 | - return 503; |
|
29 | - } |
|
21 | + /** |
|
22 | + * Returns the HTTP statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 503; |
|
29 | + } |
|
30 | 30 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class UnsupportedMediaType extends DAV\Exception |
20 | 20 | { |
21 | - /** |
|
22 | - * returns the http statuscode for this exception. |
|
23 | - * |
|
24 | - * @return int |
|
25 | - */ |
|
26 | - public function getHTTPCode() |
|
27 | - { |
|
28 | - return 415; |
|
29 | - } |
|
21 | + /** |
|
22 | + * returns the http statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 415; |
|
29 | + } |
|
30 | 30 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class NotAuthenticated extends DAV\Exception |
20 | 20 | { |
21 | - /** |
|
22 | - * Returns the HTTP statuscode for this exception. |
|
23 | - * |
|
24 | - * @return int |
|
25 | - */ |
|
26 | - public function getHTTPCode() |
|
27 | - { |
|
28 | - return 401; |
|
29 | - } |
|
21 | + /** |
|
22 | + * Returns the HTTP statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 401; |
|
29 | + } |
|
30 | 30 | } |