jenkins-bot has submitted this change and it was merged.

Change subject: Fix whitespace and spelling: 'occurred'
......................................................................


Fix whitespace and spelling: 'occurred'

Change-Id: I2605dc58d0e9a45a46c56743b14df04a5c64c5a6
---
M includes/api/ApiWikiDataFormatXml.php
1 file changed, 21 insertions(+), 21 deletions(-)

Approvals:
  Addshore: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/api/ApiWikiDataFormatXml.php 
b/includes/api/ApiWikiDataFormatXml.php
index 8eaca57..7264648 100644
--- a/includes/api/ApiWikiDataFormatXml.php
+++ b/includes/api/ApiWikiDataFormatXml.php
@@ -39,7 +39,7 @@
        public function __construct( $main ) {
                parent :: __construct( $main, 'xml' );
        }
-       
+
        public function initPrinter( $isError ) {
                $this->isError = $isError;
                parent :: initPrinter( $isError );
@@ -61,11 +61,11 @@
        public function getNeedsRawData() {
                return false;
        }
-       
+
        public function setRootElement( $rootElemName ) {
                $this->mRootElemName = $rootElemName;
        }
-       
+
        public function setFormat( $format ) {
                $this->format = $format;
        }
@@ -73,24 +73,24 @@
        public function execute() {
                if ( !$this->isError && count( $this->errorMessages ) == 0 && 
!$this->suppress_output ) {
                        $doc =& $this->createDocument();
-                       
+
                        /* transform and output the xml document */
                        $proc = $this->getXsltProcessor();
                        echo $proc->transformToXML( $doc );
                } elseif ( $this->suppress_output ) {
                        /* do nothing */
                } else {
-                       echo "An error occured.\r\n";
+                       echo "An error occurred.\r\n";
                        foreach ( $this->errorMessages as $message ) {
                                echo $message . "\r\n";
                        }
                }
        }
-       
+
        private function & getXsltProcessor() {
                // this is an attempt to work with precompiled stylesheets
                static $plainProc, $tbxProc;
-               
+
                if ( $this->format == 'tbx' ) {
                        if ( $tbxProc == null ) {
                                $xsl = new DOMDocument();
@@ -111,37 +111,37 @@
                        return $plainProc;
                }
        }
-       
+
        private function & createDocument() {
                $doc = new DOMDocument( '1.0', 'utf-8' );
-               
+
                $root = $doc->createElement( $this->mRootElemName );
                $doc->appendChild( $root );
-               
+
                $body = $doc->createElement( 'body' );
                $root->appendChild( $body );
-               
+
                foreach ( $this->dmRecords as $dmRecord ) {
                        $this->appendRecord( $dmRecord, 'defined-meaning', 
$body );
                }
-               
+
                $xPath = new DOMXPath( $doc );
                $languageElements = $xPath->query( '//*[@language-id]' );
                foreach ( $languageElements as $languageElement ) {
                        $languageElement->removeAttribute( 'language-id' );
                }
-               
+
                return $doc;
        }
-       
+
        private function appendRecord( & $record, $elmName, & $parentElm ) {
-               
+
                $aExcluded = & $this->excluded;
                if ( isset( $aExcluded[$elmName] ) ) return;
-               
+
                $element = new DOMElement( $elmName );
                $parentElm->appendChild( $element );
-               
+
                $attributes = $record->getStructure()->getAttributes();
                foreach ( $attributes as $attribute ) {
                        if ( is_string( $attribute->type ) ) {
@@ -180,7 +180,7 @@
                                }
                        }
                }
-               
+
                // remove object-attributes elements that do not have children.
                if ( $elmName == 'object-attributes' && 
!$element->hasChildNodes() ) {
                        $parentElm->removeChild( $element );
@@ -201,9 +201,9 @@
                                }
                        }
                }
-               
+
        }
-       
+
        public function getDescription() {
                return 'Output WikiData defined meaning in XML format' . parent 
:: getDescription();
        }
@@ -211,6 +211,6 @@
        public function getVersion() {
                return __CLASS__ . ': $Id: $';
        }
-       
+
 }
 ?>

-- 
To view, visit https://gerrit.wikimedia.org/r/124528
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2605dc58d0e9a45a46c56743b14df04a5c64c5a6
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: Addshore <addshorew...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to