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:
// get here to worry about whether this should be = or =&, but the file has to parse properly.
$lb = wfGetLBFactory();
$lb->shutdown();
// get here to worry about whether this should be = or =&, but the file has to parse properly.
$lb = wfGetLBFactory();
$lb->shutdown();
return $this->type == 'END';
}
}
return $this->type == 'END';
}
}
*/
interface DBMasterPos {
}
*/
interface DBMasterPos {
}
*/
public function getTable();
*/
public function getTable();
-}
\ No newline at end of file
*/
interface ORMIterator extends Iterator {
*/
interface ORMIterator extends Iterator {
-}
\ No newline at end of file
return array_key_exists( $name, $this->getFields() );
}
return array_key_exists( $name, $this->getFields() );
}
-}
\ No newline at end of file
class WebInstaller_Copying extends WebInstaller_Document {
protected function getFileName() { return 'COPYING'; }
}
class WebInstaller_Copying extends WebInstaller_Document {
protected function getFileName() { return 'COPYING'; }
}
wfDebugLog( 'memcached', $text );
}
}
wfDebugLog( 'memcached', $text );
}
}
return $this->client->decr( $this->encodeKey( $key ), $value );
}
}
return $this->client->decr( $this->encodeKey( $key ), $value );
}
}
( $result === false ? "failure" : "success" ) );
}
}
( $result === false ? "failure" : "success" ) );
}
}
* Backwards compatibility alias
*/
class MediaWikiBagOStuff extends SqlBagOStuff { }
* Backwards compatibility alias
*/
class MediaWikiBagOStuff extends SqlBagOStuff { }
return preg_replace( $this->regex, '', $text );
}
}
return preg_replace( $this->regex, '', $text );
}
}
return new SearchResult( $row );
}
}
return new SearchResult( $row );
}
}
-class SiteArray extends SiteList {}
\ No newline at end of file
+class SiteArray extends SiteList {}
return Linker::link( $wlh, $label );
}
}
return Linker::link( $wlh, $label );
}
}
$ul = new UpdateLogging;
$ul->execute();
$ul = new UpdateLogging;
$ul->execute();
$maintClass = "CheckSyntax";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "CheckSyntax";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "DeleteOldRevisions";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "DeleteOldRevisions";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "DeleteOrphanedRevisions";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "DeleteOrphanedRevisions";
require_once( RUN_MAINTENANCE_IF_MAIN );
echo( $mwe->getText() );
exit( 1 );
}
echo( $mwe->getText() );
exit( 1 );
}
$maintClass = "DumpLinks";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "DumpLinks";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "EditCLI";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "EditCLI";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = 'MaintenanceFormatInstallDoc';
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = 'MaintenanceFormatInstallDoc';
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "PopulateLogUsertext";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "PopulateLogUsertext";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "PreprocessDump";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "PreprocessDump";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "ReassignEdits";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "ReassignEdits";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "ShowStats";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "ShowStats";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = 'FixBug20757';
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = 'FixBug20757';
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = 'StorageTypeStats';
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = 'StorageTypeStats';
require_once( RUN_MAINTENANCE_IF_MAIN );
}
$t += microtime( true );
printf( "Decompression time: %5.2f ms\n", $t * 1000 );
}
$t += microtime( true );
printf( "Decompression time: %5.2f ms\n", $t * 1000 );
$uo->run();
print "Done.\n";
$uo->run();
print "Done.\n";
'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",
);
'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",
);