[Pkg-owncloud-commits] [php-sabre-vobject] 99/128: Space.

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:11:06 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 c8bbad4d53468bf0eceee7bfeaea961adbd159be
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Wed Apr 2 19:48:35 2014 -0400

    Space.
---
 ChangeLog.md                                |  2 ++
 bin/generate_vcards                         | 12 ++++++------
 tests/Sabre/VObject/Property/BinaryTest.php |  2 +-
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/ChangeLog.md b/ChangeLog.md
index 2f51324..7da7e35 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -5,6 +5,8 @@ ChangeLog
 ------------------
 
 * Now hhvm compatible!
+* The validator can now detect a _lot_ more problems. Many rules for both
+  iCalendar and vCard were added.
 * Added: bin/generate_vcards, a utility to generate random vcards for testing
   purposes. Patches are welcome to add more data.
 * Updated: Windows timezone mapping to latest version from unicode.org
diff --git a/bin/generate_vcards b/bin/generate_vcards
index 9418c7f..6520359 100755
--- a/bin/generate_vcards
+++ b/bin/generate_vcards
@@ -23,7 +23,7 @@ if (!class_exists('Sabre\\VObject\\Version')) {
 }
 
 if ($argc < 2) {
-    
+
     $version = Version::VERSION;
 
     $help = <<<HI
@@ -41,12 +41,12 @@ HI;
 
     fwrite(STDERR, $help);
     exit(2);
-} 
+}
 
 $count = (int)$argv[1];
 if ($count < 1) {
     fwrite(STDERR, "Count must be at least 1\n");
-    exit(2); 
+    exit(2);
 }
 
 fwrite(STDERR, "sabre/vobject " . Version::VERSION . "\n");
@@ -213,7 +213,7 @@ while($current < $count) {
         'FN' => $r($sets[$country][$gender]) . ' ' . $r($sets[$country]['last']),
         'UID' => UUIDUtil::getUUID(),
     ]);
-    
+
     $bdayRatio = mt_rand(0,9);
 
     if($bdayRatio < 2) {
@@ -224,14 +224,14 @@ while($current < $count) {
     } elseif ($bdayRatio < 3) {
         // 10% we only know the month and date of
         $dt = new \DateTime('@' . mt_rand($bdayStart, $bdayEnd));
-        $vcard->add('BDAY', '--' . $dt->format('md')); 
+        $vcard->add('BDAY', '--' . $dt->format('md'));
     }
     if ($result = $vcard->validate()) {
         ob_start();
         echo "\nWe produced an invalid vcard somehow!\n";
         foreach($result as $message) {
             echo "  " . $message['message'] . "\n";
-        } 
+        }
         fwrite(STDERR, ob_get_clean());
     }
     echo $vcard->serialize();
diff --git a/tests/Sabre/VObject/Property/BinaryTest.php b/tests/Sabre/VObject/Property/BinaryTest.php
index 0d5bb43..0a8c79c 100644
--- a/tests/Sabre/VObject/Property/BinaryTest.php
+++ b/tests/Sabre/VObject/Property/BinaryTest.php
@@ -8,7 +8,7 @@ class BinaryTest extends \PHPUnit_Framework_TestCase {
 
     /**
      * @expectedException \InvalidArgumentException
-     */ 
+     */
     function testMimeDir() {
 
         $vcard = new VObject\Component\VCard();

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