[Pkg-owncloud-commits] [php-sabre-vobject] 59/106: Comments fixes. thnx @dominikTo

David Prévot taffit at moszumanska.debian.org
Fri Aug 22 15:11:03 UTC 2014


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 fcb97a915095542ef740e5bab43c17fbe95f0198
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Mon Aug 4 19:46:06 2014 -0400

    Comments fixes. thnx @dominikTo
---
 lib/Sabre/VObject/RRuleParser.php             | 14 +++++---------
 lib/Sabre/VObject/RecurrenceIterator.php      |  1 -
 tests/Sabre/VObject/FreeBusyGeneratorTest.php |  1 -
 3 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/lib/Sabre/VObject/RRuleParser.php b/lib/Sabre/VObject/RRuleParser.php
index 31402b5..1ec7c83 100644
--- a/lib/Sabre/VObject/RRuleParser.php
+++ b/lib/Sabre/VObject/RRuleParser.php
@@ -56,7 +56,7 @@ class RRuleParser implements Iterator {
     }
 
     /**
-     * Retursn wheter the current item is a valid item for the recurrence
+     * Returns whether the current item is a valid item for the recurrence
      * iterator. This will return false if we've gone beyond the UNTIL or COUNT
      * statements.
      *
@@ -138,10 +138,6 @@ class RRuleParser implements Iterator {
      * This method allows you to quickly go to the next occurrence after the
      * specified date.
      *
-     * Note that this checks the current 'endDate', not the 'stardDate'. This
-     * means that if you forward to January 1st, the iterator will stop at the
-     * first event that ends *after* January 1st.
-     *
      * @param DateTime $dt
      * @return void
      */
@@ -284,7 +280,7 @@ class RRuleParser implements Iterator {
     protected $byWeekNo;
 
     /**
-     * Which months to recur
+     * Which months to recur.
      *
      * This is an array of integers from 1 to 12.
      *
@@ -309,7 +305,7 @@ class RRuleParser implements Iterator {
     protected $bySetPos;
 
     /**
-     * When a week starts
+     * When the week starts.
      *
      * @var string
      */
@@ -483,7 +479,7 @@ class RRuleParser implements Iterator {
             // end of workaround
             $this->currentDate->modify('+ ' . $this->interval . ' months');
 
-            // This goes to 0 because we need to start counting at hte
+            // This goes to 0 because we need to start counting at the
             // beginning.
             $currentDayOfMonth = 0;
 
@@ -609,7 +605,7 @@ class RRuleParser implements Iterator {
      * This method receives a string from an RRULE property, and populates this
      * class with all the values.
      *
-     * @param string|array $rule
+     * @param string|array $rrule
      * @return void
      */
     protected function parseRRule($rrule) {
diff --git a/lib/Sabre/VObject/RecurrenceIterator.php b/lib/Sabre/VObject/RecurrenceIterator.php
index c191b5b..98e5158 100644
--- a/lib/Sabre/VObject/RecurrenceIterator.php
+++ b/lib/Sabre/VObject/RecurrenceIterator.php
@@ -318,7 +318,6 @@ class RecurrenceIterator implements \Iterator {
         // overridden event may cut ahead.
         if ($this->overriddenEventsIndex) {
 
-
             $offset = end($this->overriddenEventsIndex);
             $timestamp = key($this->overriddenEventsIndex);
             if (!$nextDate || $timestamp < $nextDate->getTimeStamp()) {
diff --git a/tests/Sabre/VObject/FreeBusyGeneratorTest.php b/tests/Sabre/VObject/FreeBusyGeneratorTest.php
index a1272f9..e96bc23 100644
--- a/tests/Sabre/VObject/FreeBusyGeneratorTest.php
+++ b/tests/Sabre/VObject/FreeBusyGeneratorTest.php
@@ -81,7 +81,6 @@ $blob7 = <<<ICS
 BEGIN:VCALENDAR
 BEGIN:VEVENT
 UID:foobar7
-UID:foo
 DTSTART:20110104T090000Z
 DTEND:20110104T100000Z
 END:VEVENT

-- 
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