* @param IContextSource $context
* @param ApiBase[]|ApiBase $modules
* @param array $options Formatting options (described above)
- * @return string
*/
public static function getHelp( IContextSource $context, $modules, array $options ) {
global $wgContLang;
* @param string $log 'production' will always trigger a php error, 'auto'
* will trigger an error if $wgDevelopmentWarnings is true, and 'debug'
* will only write to the debug log(s).
- *
- * @return mixed
*/
public static function warning( $msg, $callerOffset = 1, $level = E_USER_NOTICE, $log = 'auto' ) {
global $wgDevelopmentWarnings;
}
public function needsUpdate() {
- return parent::needsUpdate() || $this->params !== $this->getDefaultParams();
+ return $this->params !== $this->getDefaultParams();
}
public function toString() {
*
* @return bool True if needs update, false otherwise
*/
- public function needsUpdate() {
- }
+ abstract public function needsUpdate();
/**
* Compare one Password object to this object
* @since 1.18
* @param string $feature
* @param mixed $data
- * @return bool
*/
public function setFeatureData( $feature, $data ) {
$this->features[$feature] = $data;
* @param string $subPage Subpage of the special page.
* @return string an AuthManager::ACTION_* constant.
*/
- protected function getDefaultAction( $subPage ) {
- throw new BadMethodCallException( 'Subclass did not implement getDefaultAction' );
- }
+ abstract protected function getDefaultAction( $subPage );
/**
* Return custom message key.
"PhanTypeMismatchProperty",
// approximate error count: 95
"PhanTypeMismatchReturn",
- // approximate error count: 16
+ // approximate error count: 11
"PhanTypeMissingReturn",
// approximate error count: 5
"PhanTypeNonVarPassByRef",