Merge "Convert article delete to use OOUI"
[lhc/web/wiklou.git] / maintenance / userOptions.inc
index c657c03..5d773d1 100644 (file)
@@ -82,7 +82,6 @@ class UserOptions {
         * @return bool
         */
        private function initializeOpts( $opts, $args ) {
-
                $this->mQuick = isset( $opts['nowarn'] );
                $this->mQuiet = isset( $opts['quiet'] );
                $this->mDry = isset( $opts['dry'] );
@@ -149,12 +148,10 @@ class UserOptions {
                );
 
                foreach ( $result as $id ) {
-
                        $user = User::newFromId( $id->user_id );
 
                        // Get the options and update stats
                        if ( $this->mAnOption ) {
-
                                if ( !array_key_exists( $this->mAnOption, $defaultOptions ) ) {
                                        print "Invalid user option. Use --list to see valid choices\n";
                                        exit;
@@ -203,14 +200,12 @@ class UserOptions {
                );
 
                foreach ( $result as $id ) {
-
                        $user = User::newFromId( $id->user_id );
 
                        $curValue = $user->getOption( $this->mAnOption );
                        $username = $user->getName();
 
                        if ( $curValue == $this->mOldValue ) {
-
                                if ( !$this->mQuiet ) {
                                        print "Setting {$this->mAnOption} for $username from '{$this->mOldValue}' " .
                                                "to '{$this->mNewValue}'): ";
@@ -279,7 +274,6 @@ USAGE;
         * @return bool
         */
        public function warn() {
-
                if ( $this->mQuick ) {
                        return true;
                }