$cluster = $args[0];
$dbw = wfGetDB( DB_MASTER );
- if ( isset( $options['e'] ) ) {
- $maxID = $options['e'];
- } else {
- $maxID = $dbw->selectField( 'text', 'MAX(old_id)', '', $fname );
- }
- $minID = isset( $options['s'] ) ? $options['s'] : 1;
+ $maxID = $options['e'] ?? $dbw->selectField( 'text', 'MAX(old_id)', '', $fname );
+ $minID = $options['s'] ?? 1;
moveToExternal( $cluster, $maxID, $minID );
}