* Creates the choose namespace selection
*
* @param FormOptions $opts
- * @return string
+ * @return string[]
*/
protected function namespaceFilterForm( FormOptions $opts ) {
$nsSelect = Html::namespaceSelector(
$categories = array_map( 'trim', explode( '|', $opts['categories'] ) );
- if ( !count( $categories ) ) {
+ if ( $categories === [] ) {
return;
}
}
# Shortcut?
- if ( !count( $articles ) || !count( $cats ) ) {
+ if ( $articles === [] || $cats === [] ) {
return;
}
'span',
[ 'class' => 'rclistfrom' ],
$this->makeOptionsLink(
- $this->msg( 'rclistfrom' )->rawParams( $now, $timenow, $datenow )->parse(),
+ $this->msg( 'rclistfrom' )->plaintextParams( $now, $timenow, $datenow )->parse(),
[ 'from' => $timestamp ],
$nondefaults
)