*/
// Options we will use
-$options = array( 'list', 'nowarn', 'quiet', 'usage', 'dry' );
-$optionsWithArgs = array( 'old', 'new' );
+$options = [ 'list', 'nowarn', 'quiet', 'usage', 'dry' ];
+$optionsWithArgs = [ 'old', 'new' ];
require_once __DIR__ . '/commandLine.inc';
* List options usage
*/
private function USAGER() {
- $ret = array();
+ $ret = [];
$defaultOptions = User::getDefaultOptions();
// We list user by user_id from one of the slave database
$dbr = wfGetDB( DB_SLAVE );
$result = $dbr->select( 'user',
- array( 'user_id' ),
- array(),
+ [ 'user_id' ],
+ [],
__METHOD__
);
// We list user by user_id from one of the slave database
$dbr = wfGetDB( DB_SLAVE );
$result = $dbr->select( 'user',
- array( 'user_id' ),
- array(),
+ [ 'user_id' ],
+ [],
__METHOD__
);
*/
public static function getDefaultOptionsNames() {
$def = User::getDefaultOptions();
- $ret = array();
+ $ret = [];
foreach ( $def as $optname => $defaultValue ) {
array_push( $ret, $optname );
}