This is a followup to
485f66f1.
Change-Id: I7a2a44b7e933103178929b3cdc015859612c8b35
// Give site config file a chance to run the script in a wrapper.
// The caller may likely want to call wfBasename() on $script.
Hooks::run( 'wfShellWikiCmd', [ &$script, &$parameters, &$options ] );
- $cmd = isset( $options['php'] ) ? [ $options['php'] ] : [ $wgPhpCli ];
+ $cmd = [ $options['php'] ?? $wgPhpCli ];
if ( isset( $options['wrapper'] ) ) {
$cmd[] = $options['wrapper'];
}
'ct_log_id' => $log_id,
'ct_rev_id' => $rev_id,
'ct_params' => $params,
- 'ct_tag_id' => isset( $changeTagMapping[$tag] ) ? $changeTagMapping[$tag] : null,
+ 'ct_tag_id' => $changeTagMapping[$tag] ?? null,
]
);
}
$table = strtolower( $this->removeIdentifierQuotes( $this->tableName( $table ) ) );
- return ( isset( $this->sequenceData[$table] ) ) ? $this->sequenceData[$table] : false;
+ return $this->sequenceData[$table] ?? false;
}
/**