$this->messages[$msg] = $this->msg( $msg )->escaped();
}
- $this->target = isset( $options['target'] ) ? $options['target'] : '';
- $this->contribs = isset( $options['contribs'] ) ? $options['contribs'] : 'users';
- $this->namespace = isset( $options['namespace'] ) ? $options['namespace'] : '';
- $this->tagFilter = isset( $options['tagfilter'] ) ? $options['tagfilter'] : false;
- $this->nsInvert = isset( $options['nsInvert'] ) ? $options['nsInvert'] : false;
- $this->associated = isset( $options['associated'] ) ? $options['associated'] : false;
+ $this->target = $options['target'] ?? '';
+ $this->contribs = $options['contribs'] ?? 'users';
+ $this->namespace = $options['namespace'] ?? '';
+ $this->tagFilter = $options['tagfilter'] ?? false;
+ $this->nsInvert = $options['nsInvert'] ?? false;
+ $this->associated = $options['associated'] ?? false;
$this->deletedOnly = !empty( $options['deletedOnly'] );
$this->topOnly = !empty( $options['topOnly'] );
* @return array Options array with processed start and end date filter options
*/
public static function processDateFilter( array $opts ) {
- $start = isset( $opts['start'] ) ? $opts['start'] : '';
- $end = isset( $opts['end'] ) ? $opts['end'] : '';
- $year = isset( $opts['year'] ) ? $opts['year'] : '';
- $month = isset( $opts['month'] ) ? $opts['month'] : '';
+ $start = $opts['start'] ?? '';
+ $end = $opts['end'] ?? '';
+ $year = $opts['year'] ?? '';
+ $month = $opts['month'] ?? '';
if ( $start !== '' && $end !== '' && $start > $end ) {
$temp = $start;