[Pkg-owncloud-commits] [php-sabredav] 90/148: Simplify

David Prévot taffit at moszumanska.debian.org
Wed Apr 15 01:37:20 UTC 2015


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

taffit pushed a commit to branch master
in repository php-sabredav.

commit c66777864da02b3cd0711b76981c214cada68d41
Author: Evert Pot <me at evertpot.com>
Date:   Tue Mar 24 12:01:17 2015 -0400

    Simplify
---
 lib/DAV/Xml/Property/ResourceType.php | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/lib/DAV/Xml/Property/ResourceType.php b/lib/DAV/Xml/Property/ResourceType.php
index c116c13..13d5cab 100644
--- a/lib/DAV/Xml/Property/ResourceType.php
+++ b/lib/DAV/Xml/Property/ResourceType.php
@@ -30,13 +30,7 @@ class ResourceType extends Element\Elements {
      */
     function __construct($resourceTypes = null) {
 
-        if (is_null($resourceTypes)) {
-            parent::__construct([]);
-        } elseif (is_array($resourceTypes)) {
-            parent::__construct($resourceTypes);
-        } else {
-            parent::__construct([$resourceTypes]);
-        }
+        parent::__construct((array)$resourceTypes);
 
     }
 

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