[Pkg-owncloud-commits] [php-sabredav] 06/30: CS

David Prévot taffit at moszumanska.debian.org
Tue Jan 26 16:19:39 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 b7463910459a1582cc7adc9ed9719a446bbf25b9
Author: Evert Pot <me at evertpot.com>
Date:   Fri Jan 8 17:08:59 2016 -0500

    CS
---
 lib/CalDAV/Plugin.php                                | 4 ++--
 tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/CalDAV/Plugin.php b/lib/CalDAV/Plugin.php
index e389486..6634900 100644
--- a/lib/CalDAV/Plugin.php
+++ b/lib/CalDAV/Plugin.php
@@ -105,8 +105,8 @@ class Plugin extends DAV\ServerPlugin {
         // excludes things like the calendar-proxy-read principal (which it
         // should).
         $parts = explode('/', trim($principalUrl, '/'));
-        if (count($parts)!==2) return;
-        if ($parts[0]!=='principals') return;
+        if (count($parts) !== 2) return;
+        if ($parts[0] !== 'principals') return;
 
         return self::CALENDAR_ROOT . '/' . $parts[1];
 
diff --git a/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php b/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php
index 5e227ae..2d03918 100644
--- a/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php
+++ b/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php
@@ -93,7 +93,7 @@ class PluginPropertiesTest extends \Sabre\DAVServerTest {
     }
     function testNoDefaultCalendar() {
 
-        foreach($this->caldavBackend->getCalendarsForUser('principals/user1') as $calendar) {
+        foreach ($this->caldavBackend->getCalendarsForUser('principals/user1') as $calendar) {
             $this->caldavBackend->deleteCalendar($calendar['id']);
         }
         $props = $this->server->getPropertiesForPath('/principals/user1', [

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



More information about the Pkg-owncloud-commits mailing list