[Pkg-owncloud-commits] [php-sabredav] 36/66: Fixed a few problems as pointed out by sensiolabs.

David Prévot taffit at moszumanska.debian.org
Wed May 27 13:56:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 3.0.0-alpha1
in repository php-sabredav.

commit 17dcf7a7f62e745e69e77d0faf814c3c9a3fb7c2
Author: Evert Pot <me at evertpot.com>
Date:   Wed Apr 22 14:26:22 2015 -0400

    Fixed a few problems as pointed out by sensiolabs.
---
 lib/CalDAV/Xml/Notification/InviteReply.php       | 1 -
 lib/CalDAV/Xml/Notification/SystemStatus.php      | 7 +++----
 lib/CalDAV/Xml/Property/SupportedCalendarData.php | 8 ++++----
 lib/CardDAV/Plugin.php                            | 1 -
 lib/CardDAV/Xml/Filter/AddressData.php            | 8 +++-----
 lib/DAV/MkCol.php                                 | 2 --
 lib/DAV/Xml/Property/LockDiscovery.php            | 1 -
 lib/DAV/Xml/Property/SupportedLock.php            | 6 +++---
 lib/DAV/Xml/Property/SupportedMethodSet.php       | 6 +++---
 lib/DAV/Xml/Request/SyncCollectionReport.php      | 2 --
 10 files changed, 16 insertions(+), 26 deletions(-)

diff --git a/lib/CalDAV/Xml/Notification/InviteReply.php b/lib/CalDAV/Xml/Notification/InviteReply.php
index 2c483c7..b29702a 100644
--- a/lib/CalDAV/Xml/Notification/InviteReply.php
+++ b/lib/CalDAV/Xml/Notification/InviteReply.php
@@ -3,7 +3,6 @@
 namespace Sabre\CalDAV\Xml\Notification;
 
 use Sabre\Xml\Writer;
-use Sabre\DAV;
 use Sabre\CalDAV;
 use Sabre\CalDAV\SharingPlugin;
 
diff --git a/lib/CalDAV/Xml/Notification/SystemStatus.php b/lib/CalDAV/Xml/Notification/SystemStatus.php
index bdbfd94..4fb69a5 100644
--- a/lib/CalDAV/Xml/Notification/SystemStatus.php
+++ b/lib/CalDAV/Xml/Notification/SystemStatus.php
@@ -2,10 +2,9 @@
 
 namespace Sabre\CalDAV\Xml\Notification;
 
-use Sabre\Xml\Reader;
-use Sabre\Xml\Writer;
-use Sabre\CalDAV\Plugin;
-
+use
+    Sabre\Xml\Writer,
+    Sabre\CalDAV\Plugin;
 
 /**
  * SystemStatus notification
diff --git a/lib/CalDAV/Xml/Property/SupportedCalendarData.php b/lib/CalDAV/Xml/Property/SupportedCalendarData.php
index 7aad168..7ed4add 100644
--- a/lib/CalDAV/Xml/Property/SupportedCalendarData.php
+++ b/lib/CalDAV/Xml/Property/SupportedCalendarData.php
@@ -2,10 +2,10 @@
 
 namespace Sabre\CalDAV\Xml\Property;
 
-use Sabre\Xml\XmlSerializable;
-use Sabre\Xml\Reader;
-use Sabre\Xml\Writer;
-use Sabre\CalDAV\Plugin;
+use
+    Sabre\Xml\XmlSerializable,
+    Sabre\Xml\Writer,
+    Sabre\CalDAV\Plugin;
 
 /**
  * Supported-calendar-data property
diff --git a/lib/CardDAV/Plugin.php b/lib/CardDAV/Plugin.php
index 0a39328..326e0a3 100644
--- a/lib/CardDAV/Plugin.php
+++ b/lib/CardDAV/Plugin.php
@@ -5,7 +5,6 @@ namespace Sabre\CardDAV;
 use
     Sabre\DAV,
     Sabre\DAV\Exception\ReportNotSupported,
-    Sabre\DAV\MkCol,
     Sabre\DAV\Xml\Property\Href,
     Sabre\DAVACL,
     Sabre\HTTP,
diff --git a/lib/CardDAV/Xml/Filter/AddressData.php b/lib/CardDAV/Xml/Filter/AddressData.php
index 69cefb2..06b074c 100644
--- a/lib/CardDAV/Xml/Filter/AddressData.php
+++ b/lib/CardDAV/Xml/Filter/AddressData.php
@@ -2,11 +2,9 @@
 
 namespace Sabre\CardDAV\Xml\Filter;
 
-use Sabre\Xml\Reader;
-use Sabre\Xml\XmlDeserializable;
-use Sabre\DAV\Exception\BadRequest;
-use Sabre\CardDAV\Plugin;
-use Sabre\VObject\DateTimeParser;
+use
+    Sabre\Xml\Reader,
+    Sabre\Xml\XmlDeserializable;
 
 
 /**
diff --git a/lib/DAV/MkCol.php b/lib/DAV/MkCol.php
index b874a3d..5547e2a 100644
--- a/lib/DAV/MkCol.php
+++ b/lib/DAV/MkCol.php
@@ -2,8 +2,6 @@
 
 namespace Sabre\DAV;
 
-use UnexpectedValueException;
-
 /**
  * This class represents a MKCOL operation.
  *
diff --git a/lib/DAV/Xml/Property/LockDiscovery.php b/lib/DAV/Xml/Property/LockDiscovery.php
index 61c7c34..1892746 100644
--- a/lib/DAV/Xml/Property/LockDiscovery.php
+++ b/lib/DAV/Xml/Property/LockDiscovery.php
@@ -6,7 +6,6 @@ use
     Sabre\DAV,
     Sabre\DAV\Locks\LockInfo,
     Sabre\Xml\Element\XmlFragment,
-    Sabre\Xml\Reader,
     Sabre\Xml\Writer,
     Sabre\Xml\XmlSerializable;
 
diff --git a/lib/DAV/Xml/Property/SupportedLock.php b/lib/DAV/Xml/Property/SupportedLock.php
index faa2133..af69c05 100644
--- a/lib/DAV/Xml/Property/SupportedLock.php
+++ b/lib/DAV/Xml/Property/SupportedLock.php
@@ -2,9 +2,9 @@
 
 namespace Sabre\DAV\Xml\Property;
 
-use Sabre\DAV;
-use Sabre\Xml\Writer;
-use Sabre\Xml\XmlSerializable;
+use
+    Sabre\Xml\Writer,
+    Sabre\Xml\XmlSerializable;
 
 /**
  * This class represents the {DAV:}supportedlock property.
diff --git a/lib/DAV/Xml/Property/SupportedMethodSet.php b/lib/DAV/Xml/Property/SupportedMethodSet.php
index 4b44239..9be231a 100644
--- a/lib/DAV/Xml/Property/SupportedMethodSet.php
+++ b/lib/DAV/Xml/Property/SupportedMethodSet.php
@@ -2,9 +2,9 @@
 
 namespace Sabre\DAV\Xml\Property;
 
-use Sabre\DAV;
-use Sabre\Xml\Writer;
-use Sabre\Xml\XmlSerializable;
+use
+    Sabre\Xml\Writer,
+    Sabre\Xml\XmlSerializable;
 
 /**
  * supported-method-set property.
diff --git a/lib/DAV/Xml/Request/SyncCollectionReport.php b/lib/DAV/Xml/Request/SyncCollectionReport.php
index ff41c5c..2d41850 100644
--- a/lib/DAV/Xml/Request/SyncCollectionReport.php
+++ b/lib/DAV/Xml/Request/SyncCollectionReport.php
@@ -73,8 +73,6 @@ class SyncCollectionReport implements XmlDeserializable {
 
         $self = new self();
 
-        $elementMap = $reader->elementMap;
-
         $reader->pushContext();
 
         $reader->elementMap['{DAV:}prop']   = 'Sabre\Xml\Element\Elements';

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