[Pkg-owncloud-commits] [php-sabredav] 123/220: Added vCard validation + auto repair.
David Prévot
taffit at moszumanska.debian.org
Thu May 12 01:21:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 6b0aa80f21306f7c6d90e8f303ad0a53a921dd7c
Author: Evert Pot <me at evertpot.com>
Date: Thu Mar 31 21:38:53 2016 -0400
Added vCard validation + auto repair.
---
lib/CardDAV/Plugin.php | 4 ++--
tests/Sabre/CardDAV/ValidateVCardTest.php | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/CardDAV/Plugin.php b/lib/CardDAV/Plugin.php
index 6f046a8..9f1524d 100644
--- a/lib/CardDAV/Plugin.php
+++ b/lib/CardDAV/Plugin.php
@@ -370,7 +370,7 @@ class Plugin extends DAV\ServerPlugin {
// $messages contains a list of problems with the vcard, along with
// their severity.
- foreach($messages as $message) {
+ foreach ($messages as $message) {
if ($message['level'] > $highestLevel) {
// Recording the highest reported error level.
@@ -378,7 +378,7 @@ class Plugin extends DAV\ServerPlugin {
$warningMessage = $message['message'];
}
- switch($message['level']) {
+ switch ($message['level']) {
case 1 :
// Level 1 means that there was a problem, but it was repaired.
diff --git a/tests/Sabre/CardDAV/ValidateVCardTest.php b/tests/Sabre/CardDAV/ValidateVCardTest.php
index ca69ded..84d523d 100644
--- a/tests/Sabre/CardDAV/ValidateVCardTest.php
+++ b/tests/Sabre/CardDAV/ValidateVCardTest.php
@@ -52,7 +52,7 @@ class ValidateVCardTest extends \PHPUnit_Framework_TestCase {
$realStatus = $this->server->httpResponse->getStatus();
$msg = '';
- if ($realStatus!==$expectedStatus) {
+ if ($realStatus !== $expectedStatus) {
$msg = 'Response body: ' . $this->server->httpResponse->getBodyAsString();
}
$this->assertEquals(
@@ -198,7 +198,7 @@ VCF;
$foo = $this->cardBackend->getCard('addressbook1', 'blabla.vcf');
$this->assertTrue(
strpos($foo['carddata'], 'UID') !== false,
- print_r($foo,true)
+ print_r($foo, true)
);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list