style: normalize end of files
authorAntoine Musso <hashar@free.fr>
Wed, 30 Jan 2013 14:29:40 +0000 (15:29 +0100)
committerAntoine Musso <hashar@free.fr>
Sun, 3 Feb 2013 14:04:39 +0000 (15:04 +0100)
By PSR2 PHP Standard, the files should ends with exactly one newline.
Some of our files have 2 or more and some other were missing a newline.

Fix almost all occurences of CodeSniffer sniff:
PSR2.Files.EndFileNewline.TooMany

I have not fixed the selenium files, I believe we will drop them.

Change-Id: I89fca8c1786fee94855b7b77bb0f364001ee84b6

55 files changed:
api.php
includes/ArrayUtils.php
includes/Cdb.php
includes/Collation.php
includes/ConfEditor.php
includes/api/ApiQueryStashImageInfo.php
includes/content/ContentHandler.php
includes/db/DatabaseUtility.php
includes/db/IORMRow.php
includes/db/LoadMonitor.php
includes/db/ORMIterator.php
includes/db/ORMTable.php
includes/filerepo/LocalRepo.php
includes/installer/WebInstallerPage.php
includes/job/jobs/DoubleRedirectJob.php
includes/libs/IEContentAnalyzer.php
includes/media/Exif.php
includes/media/ExifBitmap.php
includes/media/Jpeg.php
includes/objectcache/HashBagOStuff.php
includes/objectcache/MemcachedBagOStuff.php
includes/objectcache/MemcachedPhpBagOStuff.php
includes/objectcache/RedisBagOStuff.php
includes/objectcache/SqlBagOStuff.php
includes/parser/StripState.php
includes/search/SearchMssql.php
includes/site/SiteList.php
includes/specials/SpecialMostlinkedtemplates.php
includes/specials/SpecialUpload.php
maintenance/archives/upgradeLogging.php
maintenance/checkSyntax.php
maintenance/deleteOldRevisions.php
maintenance/deleteOrphanedRevisions.php
maintenance/doMaintenance.php
maintenance/dumpLinks.php
maintenance/dumpTextPass.php
maintenance/edit.php
maintenance/eval.php
maintenance/formatInstallDoc.php
maintenance/fuzz-tester.php
maintenance/mergeMessageFileList.php
maintenance/populateLogUsertext.php
maintenance/preprocessDump.php
maintenance/reassignEdits.php
maintenance/showStats.php
maintenance/storage/fixBug20757.php
maintenance/storage/moveToExternal.php
maintenance/storage/recompressTracked.php
maintenance/storage/resolveStubs.php
maintenance/storage/storageTypeStats.php
maintenance/storage/testCompression.php
maintenance/term/MWTerm.php
maintenance/userOptions.php
serialized/serialize.php
tests/TestsAutoLoader.php

diff --git a/api.php b/api.php
index 94266d8..4efcdba 100644 (file)
--- a/api.php
+++ b/api.php
@@ -107,4 +107,3 @@ if ( $wgAPIRequestLog ) {
 // get here to worry about whether this should be = or =&, but the file has to parse properly.
 $lb = wfGetLBFactory();
 $lb->shutdown();
-
index 4ff31b8..8d1884b 100644 (file)
@@ -31,4 +31,3 @@ class ArrayUtils {
                } );
        }
 }
-
index 2a6a3d2..960e76a 100644 (file)
@@ -183,4 +183,3 @@ class CdbWriter_DBA {
                }
        }
 }
-
index 3cc7902..f53ce02 100644 (file)
@@ -375,4 +375,3 @@ class IcuCollation extends Collation {
                return false;
        }
 }
-
index e563416..699e83a 100644 (file)
@@ -1095,4 +1095,3 @@ class ConfEditorToken {
                return $this->type == 'END';
        }
 }
-
index 1b97317..7128920 100644 (file)
@@ -139,4 +139,3 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo {
        }
 
 }
-
index 0dc7455..b493715 100644 (file)
@@ -1114,4 +1114,3 @@ abstract class ContentHandler {
                return $ok;
        }
 }
-
index c846788..064bc41 100644 (file)
@@ -306,4 +306,3 @@ class LikeMatch {
  */
 interface DBMasterPos {
 }
-
index 1ea4b12..6a7a5bb 100644 (file)
@@ -272,4 +272,4 @@ interface IORMRow {
         */
        public function getTable();
 
-}
\ No newline at end of file
+}
index 146ac61..22938aa 100644 (file)
@@ -199,4 +199,3 @@ class LoadMonitor_MySQL implements LoadMonitor {
                }
        }
 }
-
index 7542797..077eab0 100644 (file)
@@ -28,4 +28,4 @@
  */
 interface ORMIterator extends Iterator {
 
-}
\ No newline at end of file
+}
index 8abfdb6..06f88c1 100644 (file)
@@ -901,4 +901,4 @@ class ORMTable extends DBAccessBase implements IORMTable {
                return array_key_exists( $name, $this->getFields() );
        }
 
-}
\ No newline at end of file
+}
index 118e981..89a458b 100644 (file)
@@ -323,4 +323,3 @@ class LocalRepo extends FileRepo {
                }
        }
 }
-
index 68e8e11..572360a 100644 (file)
@@ -1302,4 +1302,3 @@ class WebInstaller_UpgradeDoc extends WebInstaller_Document {
 class WebInstaller_Copying extends WebInstaller_Document {
        protected function getFileName() { return 'COPYING'; }
 }
-
index fb73bf1..3cb5894 100644 (file)
@@ -207,4 +207,3 @@ class DoubleRedirectJob extends Job {
                return self::$user;
        }
 }
-
index cfc7f53..fae06ad 100644 (file)
@@ -848,4 +848,3 @@ class IEContentAnalyzer {
                return 'unknown';
        }
 }
-
index bdacbc8..f0b4536 100644 (file)
@@ -843,4 +843,3 @@ class Exif {
                }
        }
 }
-
index 34a1f51..cd7ec19 100644 (file)
@@ -225,4 +225,3 @@ class ExifBitmapHandler extends BitmapHandler {
                return 0;
        }
 }
-
index a15b652..86f5030 100644 (file)
@@ -60,4 +60,3 @@ class JpegHandler extends ExifBitmapHandler {
        }
 
 }
-
index d3f3583..d061eff 100644 (file)
@@ -110,4 +110,3 @@ class HashBagOStuff extends BagOStuff {
                return true;
        }
 }
-
index aebcbe7..4f8209d 100644 (file)
@@ -185,4 +185,3 @@ class MemcachedBagOStuff extends BagOStuff {
                wfDebugLog( 'memcached', $text );
        }
 }
-
index 5a9ee50..33a134c 100644 (file)
@@ -100,4 +100,3 @@ class MemcachedPhpBagOStuff extends MemcachedBagOStuff {
                return $this->client->decr( $this->encodeKey( $key ), $value );
        }
 }
-
index bd5b354..2946407 100644 (file)
@@ -449,4 +449,3 @@ class RedisBagOStuff extends BagOStuff {
                        ( $result === false ? "failure" : "success" ) );
        }
 }
-
index 80c670e..0fc117a 100644 (file)
@@ -697,4 +697,3 @@ class SqlBagOStuff extends BagOStuff {
  * Backwards compatibility alias
  */
 class MediaWikiBagOStuff extends SqlBagOStuff { }
-
index 57f623d..5f3f18e 100644 (file)
@@ -233,4 +233,3 @@ class StripState {
                return preg_replace( $this->regex, '', $text );
        }
 }
-
index 23dd479..85fe148 100644 (file)
@@ -253,5 +253,3 @@ class MssqlSearchResultSet extends SearchResultSet {
                return new SearchResult( $row );
        }
 }
-
-
index 97848b5..d21520c 100644 (file)
@@ -297,4 +297,4 @@ class SiteList extends GenericArrayObject {
 /**
  * @deprecated
  */
-class SiteArray extends SiteList {}
\ No newline at end of file
+class SiteArray extends SiteList {}
index 22932e5..a2d51db 100644 (file)
@@ -125,4 +125,3 @@ class MostlinkedTemplatesPage extends QueryPage {
                return Linker::link( $wlh, $label );
        }
 }
-
index 73c7e2a..c146eb4 100644 (file)
@@ -1142,4 +1142,3 @@ class UploadSourceField extends HTMLTextField {
                        : 60;
        }
 }
-
index 0a22f58..1e44e23 100644 (file)
@@ -368,4 +368,3 @@ class CheckSyntax extends Maintenance {
 
 $maintClass = "CheckSyntax";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index 4f82a63..114aefd 100644 (file)
@@ -101,4 +101,3 @@ class DeleteOldRevisions extends Maintenance {
 
 $maintClass = "DeleteOldRevisions";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index dcbf739..f0da9a8 100644 (file)
@@ -91,4 +91,3 @@ class DeleteOrphanedRevisions extends Maintenance {
 
 $maintClass = "DeleteOrphanedRevisions";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index c6768bd..f470aed 100644 (file)
@@ -118,4 +118,3 @@ try {
        echo( $mwe->getText() );
        exit( 1 );
 }
-
index 153fdd7..08aae29 100644 (file)
@@ -76,4 +76,3 @@ class DumpLinks extends Maintenance {
 
 $maintClass = "DumpLinks";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index ad4c12f..93fc3e7 100644 (file)
@@ -93,4 +93,3 @@ class EditCLI extends Maintenance {
 
 $maintClass = "EditCLI";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index 69cf548..95f46ff 100644 (file)
@@ -80,5 +80,3 @@ while ( ( $line = Maintenance::readconsole() ) !== false ) {
 }
 
 print "\n";
-
-
index 600ca97..691ed80 100644 (file)
@@ -76,5 +76,3 @@ class MaintenanceFormatInstallDoc extends Maintenance {
 
 $maintClass = 'MaintenanceFormatInstallDoc';
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
-
index b72430a..445a3fb 100644 (file)
@@ -2709,5 +2709,3 @@ for ( $count = 0; true; $count++ ) {
                break;
        }
 }
-
-
index cea6433..01ba157 100644 (file)
@@ -120,4 +120,3 @@ if ( isset( $mmfl['output'] ) ) {
 } else {
        echo $s;
 }
-
index 059b6fe..fa9d512 100644 (file)
@@ -83,4 +83,3 @@ class PopulateLogUsertext extends LoggedUpdateMaintenance {
 
 $maintClass = "PopulateLogUsertext";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index 87fc997..bb3d68b 100644 (file)
@@ -95,4 +95,3 @@ class PreprocessDump extends DumpIterator {
 
 $maintClass = "PreprocessDump";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index a91abf9..2d79f36 100644 (file)
@@ -180,4 +180,3 @@ class ReassignEdits extends Maintenance {
 
 $maintClass = "ReassignEdits";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index 982c7cb..657c056 100644 (file)
@@ -71,4 +71,3 @@ class ShowStats extends Maintenance {
 
 $maintClass = "ShowStats";
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index d394558..30cbcf1 100644 (file)
@@ -349,4 +349,3 @@ class FixBug20757 extends Maintenance {
 
 $maintClass = 'FixBug20757';
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index e4a2a45..1049e0c 100644 (file)
@@ -124,5 +124,3 @@ function moveToExternal( $cluster, $maxID, $minID = 1 ) {
                }
        }
 }
-
-
index fe62ddf..5e5cc8f 100644 (file)
@@ -809,4 +809,3 @@ class CgzCopyTransaction {
                }
        }
 }
-
index 0f5cd2b..414eab8 100644 (file)
@@ -110,4 +110,3 @@ function resolveStub( $id, $stubText, $flags ) {
                ), $fname
        );
 }
-
index 1afecc4..3187c31 100644 (file)
@@ -113,4 +113,3 @@ SQL;
 
 $maintClass = 'StorageTypeStats';
 require_once( RUN_MAINTENANCE_IF_MAIN );
-
index 9487bbf..e13e1b1 100644 (file)
@@ -99,4 +99,3 @@ foreach ( $keys as $id => $key ) {
 }
 $t += microtime( true );
 printf( "Decompression time: %5.2f ms\n", $t * 1000 );
-
index 1cb97f9..c52f07c 100644 (file)
@@ -70,4 +70,3 @@ class DummyTermColorer {
                return '';
        }
 }
-
index 2181e44..1e1f24b 100644 (file)
@@ -33,4 +33,3 @@ $uo = new userOptions( $options, $args );
 $uo->run();
 
 print "Done.\n";
-
index 0be614a..09aec79 100644 (file)
@@ -93,4 +93,3 @@ function unixLineEndings( $var ) {
        }
        return $var;
 }
-
index 30b9f94..264ba69 100644 (file)
@@ -101,4 +101,3 @@ $wgAutoloadClasses += array(
        'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
        'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",
 );
-