[Pkg-owncloud-commits] [php-sabre-vobject] 177/341: Fix API documentation of `getDocumentType`.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 7746d909b4b0e59593cb4bbfa7dbdc47fc888ae4
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Wed Jan 21 11:35:02 2015 +0100

    Fix API documentation of `getDocumentType`.
---
 lib/Component/VCalendar.php | 2 +-
 lib/Component/VCard.php     | 5 +++--
 lib/Document.php            | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/Component/VCalendar.php b/lib/Component/VCalendar.php
index a4f867b..1aa847c 100644
--- a/lib/Component/VCalendar.php
+++ b/lib/Component/VCalendar.php
@@ -148,7 +148,7 @@ class VCalendar extends VObject\Document {
     /**
      * Returns the current document type.
      *
-     * @return void
+     * @return int
      */
     function getDocumentType() {
 
diff --git a/lib/Component/VCard.php b/lib/Component/VCard.php
index 4578e6e..fdc935e 100644
--- a/lib/Component/VCard.php
+++ b/lib/Component/VCard.php
@@ -129,12 +129,14 @@ class VCard extends VObject\Document {
     /**
      * Returns the current document type.
      *
-     * @return void
+     * @return int
      */
     function getDocumentType() {
 
         if (!$this->version) {
+
             $version = (string)$this->VERSION;
+
             switch($version) {
                 case '2.1' :
                     $this->version = self::VCARD21;
@@ -148,7 +150,6 @@ class VCard extends VObject\Document {
                 default :
                     $this->version = self::UNKNOWN;
                     break;
-
             }
         }
 
diff --git a/lib/Document.php b/lib/Document.php
index 8b921d6..6ba737e 100644
--- a/lib/Document.php
+++ b/lib/Document.php
@@ -110,7 +110,7 @@ abstract class Document extends Component {
     /**
      * Returns the current document type.
      *
-     * @return void
+     * @return int
      */
     function getDocumentType() {
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list