}
if ( is_callable( $classOrCallable ) ) {
- return call_user_func_array( $classOrCallable, array( $page, $context ) );
+ return call_user_func_array( $classOrCallable, [ $page, $context ] );
}
return $classOrCallable;
* @return bool
*/
final public static function exists( $name ) {
- return self::getClass( $name, array() ) !== null;
+ return self::getClass( $name, [] ) !== null;
}
/**
*/
final public function msg() {
$params = func_get_args();
- return call_user_func_array( array( $this->getContext(), 'msg' ), $params );
+ return call_user_func_array( [ $this->getContext(), 'msg' ], $params );
}
/**
* Returns the description that goes below the \<h1\> tag
* @since 1.17
*
- * @return string
+ * @return string HTML
*/
protected function getDescription() {
return $this->msg( strtolower( $this->getName() ) )->escaped();
wfTransactionalTimeLimit();
}
}
+
+ /**
+ * Indicates whether this action may perform database writes
+ * @return bool
+ * @since 1.27
+ */
+ public function doesWrites() {
+ return false;
+ }
}