[Pkg-owncloud-commits] [php-sabredav] 112/220: CS
David Prévot
taffit at moszumanska.debian.org
Thu May 12 01:21:14 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 e362385551be0f28dbe79f6fd8e9f40093105dd5
Author: Evert Pot <me at evertpot.com>
Date: Wed Mar 30 00:31:45 2016 -0400
CS
---
lib/CalDAV/Backend/PDO.php | 8 ++++----
tests/Sabre/CalDAV/Backend/AbstractPDOTest.php | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/lib/CalDAV/Backend/PDO.php b/lib/CalDAV/Backend/PDO.php
index ac4419a..d2b5cf6 100644
--- a/lib/CalDAV/Backend/PDO.php
+++ b/lib/CalDAV/Backend/PDO.php
@@ -1370,7 +1370,7 @@ INSERT INTO ' . $this->calendarInstancesTableName . '
?
FROM ' . $this->calendarInstancesTableName . ' WHERE id = ?');
- foreach($sharees as $sharee) {
+ foreach ($sharees as $sharee) {
if ($sharee->access === \Sabre\DAV\Sharing\Plugin::ACCESS_NOACCESS) {
// if access was set no NOACCESS, it means access for an
@@ -1385,7 +1385,7 @@ INSERT INTO ' . $this->calendarInstancesTableName . '
$sharee->inviteStatus = \Sabre\DAV\Sharing\Plugin::INVITE_INVALID;
}
- foreach($currentInvites as $oldSharee) {
+ foreach ($currentInvites as $oldSharee) {
if ($oldSharee->href === $sharee->href) {
// This is an update
@@ -1461,11 +1461,11 @@ SQL;
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$result[] = new Sharee([
- 'href' => isset( $row['share_href'] ) ? $row['share_href'] : \Sabre\HTTP\encodePath($row['principaluri']),
+ 'href' => isset($row['share_href']) ? $row['share_href'] : \Sabre\HTTP\encodePath($row['principaluri']),
'access' => (int)$row['access'],
/// Everyone is always immediately accepted, for now.
'inviteStatus' => (int)$row['share_invitestatus'],
- 'properties' =>
+ 'properties' =>
!empty($row['share_displayname'])
? [ '{DAV:}displayname' => $row['share_displayname'] ]
: [],
diff --git a/tests/Sabre/CalDAV/Backend/AbstractPDOTest.php b/tests/Sabre/CalDAV/Backend/AbstractPDOTest.php
index 3263048..d8560cd 100644
--- a/tests/Sabre/CalDAV/Backend/AbstractPDOTest.php
+++ b/tests/Sabre/CalDAV/Backend/AbstractPDOTest.php
@@ -947,17 +947,17 @@ abstract class AbstractPDOTest extends \PHPUnit_Framework_TestCase {
// Checking calendar_instances too
$expectedCalendar = [
- 'id' => [1,2],
- 'principaluri' => 'principals/user2',
+ 'id' => [1,2],
+ 'principaluri' => 'principals/user2',
'{http://calendarserver.org/ns/}getctag' => 'http://sabre.io/ns/sync/1',
'{http://sabredav.org/ns}sync-token' => '1',
- 'share-access' => \Sabre\DAV\Sharing\Plugin::ACCESS_READ,
- 'read-only' => true,
- 'share-resource-uri' => '/ns/share/1',
+ 'share-access' => \Sabre\DAV\Sharing\Plugin::ACCESS_READ,
+ 'read-only' => true,
+ 'share-resource-uri' => '/ns/share/1',
];
$calendars = $backend->getCalendarsForUser('principals/user2');
- foreach($expectedCalendar as $k=>$v) {
+ foreach ($expectedCalendar as $k => $v) {
$this->assertEquals(
$v,
$calendars[0][$k],
--
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