<?php
/**
- *
- *
- * Created on January 1, 2017
- *
* Copyright © 2017 Justin Du "<justin.d128@gmail.com>"
*
* This program is free software; you can redistribute it and/or modify
// If change tagging was requested, check that the user is allowed to tag,
// and the tags are valid
- if ( count( $params['tags'] ) ) {
+ if ( $params['tags'] ) {
$tagStatus = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user );
if ( !$tagStatus->isOK() ) {
$this->dieStatus( $tagStatus );
$this,
$titleObj,
$params['lang'],
- $params['reason'] === null ? '' : $params['reason'],
+ $params['reason'] ?? '',
$params['tags'] ?: []
);