From c0927cba654d365af3f6fe6d5705bf2facd3f527 Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Mon, 25 Feb 2019 18:11:57 +0100 Subject: [PATCH] maintenance: Remove arguments that match their default values Calls to methods with arguments as default values can safely be removed as there is an exact match. With or without them, code will still work as intended. Change-Id: Id8141626a51d9cc8bf8bc0baeb5e38d120664da5 --- maintenance/resetUserEmail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/resetUserEmail.php b/maintenance/resetUserEmail.php index 771d19bc7b..3ba5c6b382 100644 --- a/maintenance/resetUserEmail.php +++ b/maintenance/resetUserEmail.php @@ -32,10 +32,10 @@ require_once __DIR__ . '/Maintenance.php'; class ResetUserEmail extends Maintenance { public function __construct() { $this->addDescription( "Resets a user's email" ); - $this->addArg( 'user', 'Username or user ID, if starts with #', true ); + $this->addArg( 'user', 'Username or user ID, if starts with #' ); $this->addArg( 'email', 'Email to assign' ); - $this->addOption( 'no-reset-password', 'Don\'t reset the user\'s password', false, false ); + $this->addOption( 'no-reset-password', 'Don\'t reset the user\'s password' ); parent::__construct(); } -- 2.20.1