[Pkg-owncloud-commits] [php-sabredav] 03/220: CS

David Prévot taffit at moszumanska.debian.org
Thu May 12 01:21:01 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 234a5a5ad779859cdf70c26ea936da17cd921305
Author: Evert Pot <me at evertpot.com>
Date:   Tue Jul 7 13:58:56 2015 -0400

    CS
---
 lib/DAV/Xml/Request/ShareResource.php | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/lib/DAV/Xml/Request/ShareResource.php b/lib/DAV/Xml/Request/ShareResource.php
index 28ff105..59e8dad 100644
--- a/lib/DAV/Xml/Request/ShareResource.php
+++ b/lib/DAV/Xml/Request/ShareResource.php
@@ -4,8 +4,6 @@ namespace Sabre\DAV\Xml\Request;
 
 use Sabre\Xml\Reader;
 use Sabre\Xml\XmlDeserializable;
-use Sabre\Xml\Element\KeyValue;
-use Sabre\DAV\Exception\BadRequest;
 
 /**
  * ShareResource request parser.
@@ -95,13 +93,13 @@ class ShareResource implements XmlDeserializable {
                     $sharee = $elem['value'];
 
                     $setInvitee = [
-                        'href' => null,
-                        'comment' => null,
+                        'href'     => null,
+                        'comment'  => null,
                         'readOnly' => false,
                     ];
-                    foreach($sharee as $key=>$value) {
+                    foreach ($sharee as $key => $value) {
 
-                        switch($key) {
+                        switch ($key) {
 
                             case '{DAV:}href' :
                                 $setInvitee['href'] = $value;
@@ -119,7 +117,7 @@ class ShareResource implements XmlDeserializable {
                                 $setInvitee[$key] = $value;
                                 break;
 
-                        } 
+                        }
 
                     }
                     $set[] = $setInvitee;

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