aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/exception
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-18 18:28:24 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 10:38:37 +0100
commit49e1a81eba45fe33e00c217758656cf9201ec0cd (patch)
tree8bf628e52c0003b67677a6fad49adbd01941492d /lib/private/connector/sabre/exception
parent4bac595068c813c56d8d5e580e560527ba80194d (diff)
downloadnextcloud-server-49e1a81eba45fe33e00c217758656cf9201ec0cd.tar.gz
nextcloud-server-49e1a81eba45fe33e00c217758656cf9201ec0cd.zip
fixing namespaces and PHPDoc
Diffstat (limited to 'lib/private/connector/sabre/exception')
-rw-r--r--lib/private/connector/sabre/exception/invalidpath.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/private/connector/sabre/exception/invalidpath.php b/lib/private/connector/sabre/exception/invalidpath.php
index 18285994bcc..ecf28f377b0 100644
--- a/lib/private/connector/sabre/exception/invalidpath.php
+++ b/lib/private/connector/sabre/exception/invalidpath.php
@@ -1,12 +1,17 @@
<?php
-
/**
* Copyright (c) 2015 Thomas Müller <deepdiver@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file. */
-class OC_Connector_Sabre_Exception_InvalidPath extends \Sabre\DAV\Exception {
+namespace OC\Connector\Sabre\Exception;
+
+use Sabre\DAV\Exception;
+
+class InvalidPath extends Exception {
+
+ const NS_OWNCLOUD = 'http://owncloud.org/ns';
/**
* @var bool
@@ -34,7 +39,8 @@ class OC_Connector_Sabre_Exception_InvalidPath extends \Sabre\DAV\Exception {
}
/**
- * This method allows the exception to include additional information into the WebDAV error response
+ * This method allows the exception to include additional information
+ * into the WebDAV error response
*
* @param \Sabre\DAV\Server $server
* @param \DOMElement $errorNode
@@ -42,8 +48,8 @@ class OC_Connector_Sabre_Exception_InvalidPath extends \Sabre\DAV\Exception {
*/
public function serialize(\Sabre\DAV\Server $server,\DOMElement $errorNode) {
- // set owncloud namespace
- $errorNode->setAttribute('xmlns:o', OC_Connector_Sabre_FilesPlugin::NS_OWNCLOUD);
+ // set ownCloud namespace
+ $errorNode->setAttribute('xmlns:o', self::NS_OWNCLOUD);
// adding the retry node
$error = $errorNode->ownerDocument->createElementNS('o:','o:retry', var_export($this->retry, true));