@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class RequestedRangeNotSatisfiable 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 416; |
|
29 | - } |
|
21 | + /** |
|
22 | + * returns the http statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 416; |
|
29 | + } |
|
30 | 30 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class LengthRequired 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 411; |
|
29 | - } |
|
21 | + /** |
|
22 | + * Returns the HTTP statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 411; |
|
29 | + } |
|
30 | 30 | } |
@@ -18,15 +18,15 @@ |
||
18 | 18 | */ |
19 | 19 | class ConflictingLock extends Locked |
20 | 20 | { |
21 | - /** |
|
22 | - * This method allows the exception to include additional information into the WebDAV error response. |
|
23 | - */ |
|
24 | - public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
25 | - { |
|
26 | - if ($this->lock) { |
|
27 | - $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:no-conflicting-lock'); |
|
28 | - $errorNode->appendChild($error); |
|
29 | - $error->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:href', $this->lock->uri)); |
|
30 | - } |
|
31 | - } |
|
21 | + /** |
|
22 | + * This method allows the exception to include additional information into the WebDAV error response. |
|
23 | + */ |
|
24 | + public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
25 | + { |
|
26 | + if ($this->lock) { |
|
27 | + $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:no-conflicting-lock'); |
|
28 | + $errorNode->appendChild($error); |
|
29 | + $error->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:href', $this->lock->uri)); |
|
30 | + } |
|
31 | + } |
|
32 | 32 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class BadRequest 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 400; |
|
29 | - } |
|
21 | + /** |
|
22 | + * Returns the HTTP statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 400; |
|
29 | + } |
|
30 | 30 | } |
@@ -17,52 +17,52 @@ |
||
17 | 17 | */ |
18 | 18 | class Locked extends DAV\Exception |
19 | 19 | { |
20 | - /** |
|
21 | - * Lock information. |
|
22 | - * |
|
23 | - * @var \Sabre\DAV\Locks\LockInfo |
|
24 | - */ |
|
25 | - protected $lock; |
|
20 | + /** |
|
21 | + * Lock information. |
|
22 | + * |
|
23 | + * @var \Sabre\DAV\Locks\LockInfo |
|
24 | + */ |
|
25 | + protected $lock; |
|
26 | 26 | |
27 | - /** |
|
28 | - * Creates the exception. |
|
29 | - * |
|
30 | - * A LockInfo object should be passed if the user should be informed |
|
31 | - * which lock actually has the file locked. |
|
32 | - * |
|
33 | - * @param DAV\Locks\LockInfo $lock |
|
34 | - */ |
|
35 | - public function __construct(DAV\Locks\LockInfo $lock = null) |
|
36 | - { |
|
37 | - parent::__construct(); |
|
27 | + /** |
|
28 | + * Creates the exception. |
|
29 | + * |
|
30 | + * A LockInfo object should be passed if the user should be informed |
|
31 | + * which lock actually has the file locked. |
|
32 | + * |
|
33 | + * @param DAV\Locks\LockInfo $lock |
|
34 | + */ |
|
35 | + public function __construct(DAV\Locks\LockInfo $lock = null) |
|
36 | + { |
|
37 | + parent::__construct(); |
|
38 | 38 | |
39 | - $this->lock = $lock; |
|
40 | - } |
|
39 | + $this->lock = $lock; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Returns the HTTP statuscode for this exception. |
|
44 | - * |
|
45 | - * @return int |
|
46 | - */ |
|
47 | - public function getHTTPCode() |
|
48 | - { |
|
49 | - return 423; |
|
50 | - } |
|
42 | + /** |
|
43 | + * Returns the HTTP statuscode for this exception. |
|
44 | + * |
|
45 | + * @return int |
|
46 | + */ |
|
47 | + public function getHTTPCode() |
|
48 | + { |
|
49 | + return 423; |
|
50 | + } |
|
51 | 51 | |
52 | - /** |
|
53 | - * This method allows the exception to include additional information into the WebDAV error response. |
|
54 | - */ |
|
55 | - public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
56 | - { |
|
57 | - if ($this->lock) { |
|
58 | - $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:lock-token-submitted'); |
|
59 | - $errorNode->appendChild($error); |
|
52 | + /** |
|
53 | + * This method allows the exception to include additional information into the WebDAV error response. |
|
54 | + */ |
|
55 | + public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
56 | + { |
|
57 | + if ($this->lock) { |
|
58 | + $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:lock-token-submitted'); |
|
59 | + $errorNode->appendChild($error); |
|
60 | 60 | |
61 | - $href = $errorNode->ownerDocument->createElementNS('DAV:', 'd:href'); |
|
62 | - $href->appendChild($errorNode->ownerDocument->createTextNode($this->lock->uri)); |
|
63 | - $error->appendChild( |
|
64 | - $href |
|
65 | - ); |
|
66 | - } |
|
67 | - } |
|
61 | + $href = $errorNode->ownerDocument->createElementNS('DAV:', 'd:href'); |
|
62 | + $href->appendChild($errorNode->ownerDocument->createTextNode($this->lock->uri)); |
|
63 | + $error->appendChild( |
|
64 | + $href |
|
65 | + ); |
|
66 | + } |
|
67 | + } |
|
68 | 68 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | class PaymentRequired 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 402; |
|
29 | - } |
|
21 | + /** |
|
22 | + * Returns the HTTP statuscode for this exception. |
|
23 | + * |
|
24 | + * @return int |
|
25 | + */ |
|
26 | + public function getHTTPCode() |
|
27 | + { |
|
28 | + return 402; |
|
29 | + } |
|
30 | 30 | } |
@@ -17,13 +17,13 @@ |
||
17 | 17 | */ |
18 | 18 | class InsufficientStorage 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 507; |
|
28 | - } |
|
20 | + /** |
|
21 | + * Returns the HTTP statuscode for this exception. |
|
22 | + * |
|
23 | + * @return int |
|
24 | + */ |
|
25 | + public function getHTTPCode() |
|
26 | + { |
|
27 | + return 507; |
|
28 | + } |
|
29 | 29 | } |
@@ -23,12 +23,12 @@ |
||
23 | 23 | */ |
24 | 24 | class InvalidSyncToken extends Forbidden |
25 | 25 | { |
26 | - /** |
|
27 | - * This method allows the exception to include additional information into the WebDAV error response. |
|
28 | - */ |
|
29 | - public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
30 | - { |
|
31 | - $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:valid-sync-token'); |
|
32 | - $errorNode->appendChild($error); |
|
33 | - } |
|
26 | + /** |
|
27 | + * This method allows the exception to include additional information into the WebDAV error response. |
|
28 | + */ |
|
29 | + public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
30 | + { |
|
31 | + $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:valid-sync-token'); |
|
32 | + $errorNode->appendChild($error); |
|
33 | + } |
|
34 | 34 | } |
@@ -17,20 +17,20 @@ |
||
17 | 17 | */ |
18 | 18 | class LockTokenMatchesRequestUri extends Conflict |
19 | 19 | { |
20 | - /** |
|
21 | - * Creates the exception. |
|
22 | - */ |
|
23 | - public function __construct() |
|
24 | - { |
|
25 | - parent::__construct('The locktoken supplied does not match any locks on this entity'); |
|
26 | - } |
|
20 | + /** |
|
21 | + * Creates the exception. |
|
22 | + */ |
|
23 | + public function __construct() |
|
24 | + { |
|
25 | + parent::__construct('The locktoken supplied does not match any locks on this entity'); |
|
26 | + } |
|
27 | 27 | |
28 | - /** |
|
29 | - * This method allows the exception to include additional information into the WebDAV error response. |
|
30 | - */ |
|
31 | - public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
32 | - { |
|
33 | - $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:lock-token-matches-request-uri'); |
|
34 | - $errorNode->appendChild($error); |
|
35 | - } |
|
28 | + /** |
|
29 | + * This method allows the exception to include additional information into the WebDAV error response. |
|
30 | + */ |
|
31 | + public function serialize(DAV\Server $server, \DOMElement $errorNode) |
|
32 | + { |
|
33 | + $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:lock-token-matches-request-uri'); |
|
34 | + $errorNode->appendChild($error); |
|
35 | + } |
|
36 | 36 | } |