[Pkg-owncloud-commits] [php-sabredav] 127/148: Lots of docblock fixes. Thanks @DominikTo
David Prévot
taffit at moszumanska.debian.org
Wed Apr 15 01:37:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit fb3c01644d8abf709587b6c1387ae517755dac1f
Author: Evert Pot <me at evertpot.com>
Date: Sun Apr 12 20:42:37 2015 -0400
Lots of docblock fixes. Thanks @DominikTo
---
lib/CalDAV/CalendarHome.php | 2 +-
lib/CalDAV/Plugin.php | 2 +-
lib/DAV/IExtendedCollection.php | 4 ++--
lib/DAV/Server.php | 6 +++---
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/lib/CalDAV/CalendarHome.php b/lib/CalDAV/CalendarHome.php
index af3bd83..d1e8db5 100644
--- a/lib/CalDAV/CalendarHome.php
+++ b/lib/CalDAV/CalendarHome.php
@@ -231,7 +231,7 @@ class CalendarHome implements DAV\IExtendedCollection, DAVACL\IACL {
}
/**
- * Creates a new calendar or subscription.
+ * Creates a new addressbook.
*
* @param string $name
* @param MkCol $mkCol
diff --git a/lib/CalDAV/Plugin.php b/lib/CalDAV/Plugin.php
index 5736764..5ca6aa7 100644
--- a/lib/CalDAV/Plugin.php
+++ b/lib/CalDAV/Plugin.php
@@ -288,7 +288,7 @@ class Plugin extends DAV\ServerPlugin {
$resourceType = ['{DAV:}collection','{urn:ietf:params:xml:ns:caldav}calendar'];
}
- $this->server->createCollection($path,new MkCol($resourceType, $properties));
+ $this->server->createCollection($path, new MkCol($resourceType, $properties));
$this->server->httpResponse->setStatus(201);
$this->server->httpResponse->setHeader('Content-Length',0);
diff --git a/lib/DAV/IExtendedCollection.php b/lib/DAV/IExtendedCollection.php
index e398d5e..f1688eb 100644
--- a/lib/DAV/IExtendedCollection.php
+++ b/lib/DAV/IExtendedCollection.php
@@ -17,8 +17,8 @@ interface IExtendedCollection extends ICollection {
/**
* Creates a new collection.
*
- * This method will receive MkCol object with all the information about the
- * new collection that's being created.
+ * This method will receive a MkCol object with all the information about
+ * the new collection that's being created.
*
* The MkCol object contains information about the resourceType of the new
* collection. If you don't support the specified resourceType, you should
diff --git a/lib/DAV/Server.php b/lib/DAV/Server.php
index a1a2714..30d2b71 100644
--- a/lib/DAV/Server.php
+++ b/lib/DAV/Server.php
@@ -1095,7 +1095,7 @@ class Server extends EventEmitter {
*/
function createDirectory($uri) {
- $this->createCollection($uri,new MkCol(['{DAV:}collection'], []));
+ $this->createCollection($uri, new MkCol(['{DAV:}collection'], []));
}
@@ -1147,7 +1147,7 @@ class Server extends EventEmitter {
if ($parent instanceof IExtendedCollection) {
/**
- * If the parent is an instanced of IExtendedCollection, it means that
+ * If the parent is an instance of IExtendedCollection, it means that
* we can pass the MkCol object directly as it may be able to store
* properties immediately.
*/
@@ -1158,7 +1158,7 @@ class Server extends EventEmitter {
/**
* If the parent is a standard ICollection, it means only
* 'standard' collections can be created, so we should fail any
- * MKCOL operation that carry extra resourcetypes.
+ * MKCOL operation that carries extra resourcetypes.
*/
if (count($mkCol->getResourceType())>1) {
throw new Exception\InvalidResourceType('The {DAV:}resourcetype you specified is not supported here.');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list