Merge "Add missing @covers to database related tests"
[lhc/web/wiklou.git] / maintenance / storage / moveToExternal.php
index 9bb554c..0b95ba5 100644 (file)
@@ -38,12 +38,8 @@ if ( !defined( 'MEDIAWIKI' ) ) {
        $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 );
 }