/**
* @param int $namespace Namespace (Default NS_MAIN)
- * @param string $from List all pages from this name (default false)
- * @param string $to List all pages to this name (default false)
+ * @param string|false $from List all pages from this name (default false)
+ * @param string|false $to List all pages to this name (default false)
* @param bool $hideredirects Don't show redirects (default false)
*/
function showChunk( $namespace = NS_MAIN, $from = false, $to = false, $hideredirects = false ) {
* If the user has already been blocked with similar settings, load that block
* and change the defaults for the form fields to match the existing settings.
* @param array &$fields HTMLForm descriptor array
- * @return bool Whether fields were altered (that is, whether the target is
- * already blocked)
*/
protected function maybeAlterFormDefaults( &$fields ) {
# This will be overwritten by request data
/**
* UI entry point for form submission.
- * @throws PermissionsError
* @return bool
*/
protected function submit() {
/**
* @param null|string $subPage
- * @throws MWException
- * @throws PermissionsError
+ * @throws ErrorPageError
+ * @throws LogicException
*/
public function execute( $subPage ) {
$this->setHeaders();
*
* @param FormOptions $opts
* @param string $par
- * @throws ConfigException
*/
private function parseParams( FormOptions $opts, $par ) {
# Get parameters
* @param int $offset A small offset to make the result seem more "random"
* @param bool $up Get the result above the random value
* @param string $fname The name of the calling method
- * @return array Info for the title selected.
+ * @return stdClass|false Info for the title selected.
*/
private function selectRandomPageFromDB( $rand, $offset, $up, $fname = __METHOD__ ) {
$dbr = wfGetDB( DB_REPLICA );
* Creates the choose namespace selection
*
* @param FormOptions $opts
- * @return string
+ * @return string[]
*/
protected function namespaceFilterForm( FormOptions $opts ) {
$nsSelect = Html::namespaceSelector(
*
* @param File $file
* @param array $params
- *
- * @return bool Success
*/
private function outputThumbFromStash( $file, $params ) {
$flags = 0;
return '';
}
- /** @return string HTML */
+ /**
+ * @param stdClass $row
+ * @return string HTML
+ */
function formatRow( $row ) {
// Do all the normal stuff
$s = parent::formatRow( $row );
return [];
}
- /** @return array HTML attributes */
+ /**
+ * @param string $field
+ * @param string $value
+ * @return array HTML attributes
+ */
function getCellAttrs( $field, $value ) {
$attr = [];
if ( $field === 'am_title' ) {