From bffd2cca647969c37dc0a50a6978284b18df5b7c Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Wed, 29 Apr 2015 08:46:32 -0400 Subject: [PATCH] Change case of class names to match declarations Found by running a script that uses PHP's tokenizer extension to extract class declarations and uses, then compare them: * AllMessagesTablePager * SVGReader * XML Change-Id: I960aa05b2127722ecc5ae8b165549f9e1077d3c1 --- includes/media/SVG.php | 2 +- includes/site/SiteExporter.php | 20 ++++++++++---------- includes/specials/SpecialAllMessages.php | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/includes/media/SVG.php b/includes/media/SVG.php index b505280def..c2f85e8394 100644 --- a/includes/media/SVG.php +++ b/includes/media/SVG.php @@ -95,7 +95,7 @@ class SvgHandler extends ImageHandler { $metadata = $this->unpackMetadata( $metadata ); if ( isset( $metadata['translations'] ) ) { foreach ( $metadata['translations'] as $lang => $langType ) { - if ( $langType === SvgReader::LANG_FULL_MATCH ) { + if ( $langType === SVGReader::LANG_FULL_MATCH ) { $langList[] = $lang; } } diff --git a/includes/site/SiteExporter.php b/includes/site/SiteExporter.php index 62f6ca3cb2..169c0d87a5 100644 --- a/includes/site/SiteExporter.php +++ b/includes/site/SiteExporter.php @@ -57,13 +57,13 @@ class SiteExporter { 'xmlns' => 'http://www.mediawiki.org/xml/sitelist-1.0/', ); - fwrite( $this->sink, XML::openElement( 'sites', $attributes ) . "\n" ); + fwrite( $this->sink, Xml::openElement( 'sites', $attributes ) . "\n" ); foreach ( $sites as $site ) { $this->exportSite( $site ); } - fwrite( $this->sink, XML::closeElement( 'sites' ) . "\n" ); + fwrite( $this->sink, Xml::closeElement( 'sites' ) . "\n" ); fflush( $this->sink ); } @@ -79,36 +79,36 @@ class SiteExporter { $siteAttr = null; } - fwrite( $this->sink, "\t" . XML::openElement( 'site', $siteAttr ) . "\n" ); + fwrite( $this->sink, "\t" . Xml::openElement( 'site', $siteAttr ) . "\n" ); - fwrite( $this->sink, "\t\t" . XML::element( 'globalid', null, $site->getGlobalId() ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'globalid', null, $site->getGlobalId() ) . "\n" ); if ( $site->getGroup() !== Site::GROUP_NONE ) { - fwrite( $this->sink, "\t\t" . XML::element( 'group', null, $site->getGroup() ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'group', null, $site->getGroup() ) . "\n" ); } if ( $site->getSource() !== Site::SOURCE_LOCAL ) { - fwrite( $this->sink, "\t\t" . XML::element( 'source', null, $site->getSource() ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'source', null, $site->getSource() ) . "\n" ); } if ( $site->shouldForward() ) { - fwrite( $this->sink, "\t\t" . XML::element( 'forward', null, '' ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'forward', null, '' ) . "\n" ); } foreach ( $site->getAllPaths() as $type => $path ) { - fwrite( $this->sink, "\t\t" . XML::element( 'path', array( 'type' => $type ), $path ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'path', array( 'type' => $type ), $path ) . "\n" ); } foreach ( $site->getLocalIds() as $type => $ids ) { foreach ( $ids as $id ) { - fwrite( $this->sink, "\t\t" . XML::element( 'localid', array( 'type' => $type ), $id ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'localid', array( 'type' => $type ), $id ) . "\n" ); } } //@todo: export //@todo: export - fwrite( $this->sink, "\t" . XML::closeElement( 'site' ) . "\n" ); + fwrite( $this->sink, "\t" . Xml::closeElement( 'site' ) . "\n" ); } } diff --git a/includes/specials/SpecialAllMessages.php b/includes/specials/SpecialAllMessages.php index 5211e3016c..91eade14eb 100644 --- a/includes/specials/SpecialAllMessages.php +++ b/includes/specials/SpecialAllMessages.php @@ -29,7 +29,7 @@ */ class SpecialAllMessages extends SpecialPage { /** - * @var AllmessagesTablePager + * @var AllMessagesTablePager */ protected $table; @@ -61,7 +61,7 @@ class SpecialAllMessages extends SpecialPage { $out->addModuleStyles( 'mediawiki.special' ); $out->addHelpLink( 'Help:System message' ); - $this->table = new AllmessagesTablePager( + $this->table = new AllMessagesTablePager( $this, array(), wfGetLangObj( $request->getVal( 'lang', $par ) ) -- 2.20.1