$status = Status::newGood();
$missing = array_flip( $this->ids );
$this->clearFileOps();
- $idsForLog = array();
- $authorIds = $authorIPs = array();
+ $idsForLog = [];
+ $authorIds = $authorIPs = [];
if ( $perItemStatus ) {
- $status->itemStatuses = array();
+ $status->itemStatuses = [];
}
// @codingStandardsIgnoreStart Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
// Log it
// @FIXME: $newBits/$oldBits set in for loop, makes IDE warnings too
- $this->updateLog( array(
+ $this->updateLog( [
'title' => $this->title,
'count' => $successCount,
'newBits' => $newBits,
'ids' => $idsForLog,
'authorIds' => $authorIds,
'authorIPs' => $authorIPs
- ) );
+ ] );
// Clear caches
$that = $this;
$logEntry->setParameters( $logParams );
$logEntry->setPerformer( $this->getUser() );
// Allow for easy searching of deletion log items for revision/log items
- $logEntry->setRelations( array(
+ $logEntry->setRelations( [
$field => $params['ids'],
'target_author_id' => $params['authorIds'],
'target_author_ip' => $params['authorIPs'],
- ) );
+ ] );
$logId = $logEntry->insert();
$logEntry->publish( $logId );
}
* @return array
*/
public function getLogParams( $params ) {
- return array(
+ return [
'4::type' => $this->getType(),
'5::ids' => $params['ids'],
'6::ofield' => $params['oldBits'],
'7::nfield' => $params['newBits'],
- );
+ ];
}
/**