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
// 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';
}
}
-
*/
interface DBMasterPos {
}
-
*/
public function getTable();
-}
\ No newline at end of file
+}
*/
interface ORMIterator extends Iterator {
-}
\ No newline at end of file
+}
return array_key_exists( $name, $this->getFields() );
}
-}
\ No newline at end of file
+}
class WebInstaller_Copying extends WebInstaller_Document {
protected function getFileName() { return 'COPYING'; }
}
-
return self::$user;
}
}
-
wfDebugLog( 'memcached', $text );
}
}
-
return $this->client->decr( $this->encodeKey( $key ), $value );
}
}
-
( $result === false ? "failure" : "success" ) );
}
}
-
* Backwards compatibility alias
*/
class MediaWikiBagOStuff extends SqlBagOStuff { }
-
return preg_replace( $this->regex, '', $text );
}
}
-
return new SearchResult( $row );
}
}
-
-
/**
* @deprecated
*/
-class SiteArray extends SiteList {}
\ No newline at end of file
+class SiteArray extends SiteList {}
return Linker::link( $wlh, $label );
}
}
-
$ul = new UpdateLogging;
$ul->execute();
-
$maintClass = "CheckSyntax";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = "DeleteOldRevisions";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = "DeleteOrphanedRevisions";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
echo( $mwe->getText() );
exit( 1 );
}
-
$maintClass = "DumpLinks";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = "EditCLI";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = 'MaintenanceFormatInstallDoc';
require_once( RUN_MAINTENANCE_IF_MAIN );
-
-
$maintClass = "PopulateLogUsertext";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = "PreprocessDump";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = "ReassignEdits";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = "ShowStats";
require_once( RUN_MAINTENANCE_IF_MAIN );
-
$maintClass = 'FixBug20757';
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 );
-
$uo->run();
print "Done.\n";
-
'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",
);
-