[Pkg-owncloud-commits] [php-sabre-vobject] 100/341: s/Sabre\XML/Sabre\Xml

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:38 UTC 2015


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

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

commit a8b25d9d4b3adcbf58d047cc0798a470d83278b3
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Nov 25 09:03:05 2014 +0100

    s/Sabre\XML/Sabre\Xml
    
    See https://github.com/fruux/sabre-xml/issues/29.
---
 lib/Parser/XML.php                  |  6 +++---
 lib/Parser/XML/Element/KeyValue.php | 10 +++++-----
 lib/Writer.php                      |  6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 93be524..98d1459 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -6,7 +6,7 @@ use
     Sabre\VObject\Component,
     Sabre\VObject\Component\VCalendar,
     Sabre\VObject\Component\VCard,
-    Sabre\XML as SabreXML;
+    Sabre\Xml as SabreXml;
 
 /**
  * XML Parser.
@@ -219,7 +219,7 @@ class XML extends Parser {
 
         if(is_string($input)) {
 
-            $reader = new SabreXML\Reader();
+            $reader = new SabreXml\Reader();
             $reader->elementMap['{' . self::XCAL_NAMESPACE . '}period']
                 = 'Sabre\VObject\Parser\XML\Element\KeyValue';
             $reader->elementMap['{' . self::XCAL_NAMESPACE . '}recur']
@@ -240,7 +240,7 @@ class XML extends Parser {
      */
     static protected function getTagName ( $clarkedTagName ) {
 
-        list($namespace, $tagName) = SabreXML\Util::parseClarkNotation($clarkedTagName);
+        list($namespace, $tagName) = SabreXml\Util::parseClarkNotation($clarkedTagName);
 
         return $tagName;
     }
diff --git a/lib/Parser/XML/Element/KeyValue.php b/lib/Parser/XML/Element/KeyValue.php
index 89b5679..e2df687 100644
--- a/lib/Parser/XML/Element/KeyValue.php
+++ b/lib/Parser/XML/Element/KeyValue.php
@@ -2,7 +2,7 @@
 
 namespace Sabre\VObject\Parser\XML\Element;
 
-use Sabre\XML as SabreXML;
+use Sabre\Xml as SabreXml;
 
 /**
  * Our own sabre/xml key-value element.
@@ -13,7 +13,7 @@ use Sabre\XML as SabreXML;
  * @author Ivan Enderlin
  * @license http://sabre.io/license/ Modified BSD License
  */
-class KeyValue extends SabreXML\Element\KeyValue {
+class KeyValue extends SabreXml\Element\KeyValue {
 
     /**
      * The deserialize method is called during xml parsing.
@@ -36,7 +36,7 @@ class KeyValue extends SabreXML\Element\KeyValue {
      * @param XML\Reader $reader
      * @return mixed
      */
-    static function xmlDeserialize(SabreXML\Reader $reader) {
+    static function xmlDeserialize(SabreXml\Reader $reader) {
 
         // If there's no children, we don't do anything.
         if ($reader->isEmptyElement) {
@@ -49,7 +49,7 @@ class KeyValue extends SabreXML\Element\KeyValue {
 
         do {
 
-            if ($reader->nodeType === SabreXML\Reader::ELEMENT) {
+            if ($reader->nodeType === SabreXml\Reader::ELEMENT) {
 
                 $name = $reader->localName;
                 $values[$name] = $reader->parseCurrentElement()['value'];
@@ -58,7 +58,7 @@ class KeyValue extends SabreXML\Element\KeyValue {
                 $reader->read();
             }
 
-        } while ($reader->nodeType !== SabreXML\Reader::END_ELEMENT);
+        } while ($reader->nodeType !== SabreXml\Reader::END_ELEMENT);
 
         $reader->read();
 
diff --git a/lib/Writer.php b/lib/Writer.php
index a726359..8c95bca 100644
--- a/lib/Writer.php
+++ b/lib/Writer.php
@@ -2,7 +2,7 @@
 
 namespace Sabre\VObject;
 
-use Sabre\XML;
+use Sabre\Xml;
 
 /**
  * iCalendar/vCard/jCal/jCard/xCal/xCard writer object.
@@ -47,9 +47,9 @@ class Writer {
      * @param Component $component
      * @return string
      */
-    static public function writeXML(Component $component) {
+    static public function writeXml(Component $component) {
 
-        $writer = new XML\Writer();
+        $writer = new Xml\Writer();
         $writer->openMemory();
         $writer->startDocument('1.0', 'utf-8');
 

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



More information about the Pkg-owncloud-commits mailing list