diff options
Diffstat (limited to 'core/Command/Group/AddUser.php')
-rw-r--r-- | core/Command/Group/AddUser.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Command/Group/AddUser.php b/core/Command/Group/AddUser.php index 5cbcbf10145..b5d0068acc6 100644 --- a/core/Command/Group/AddUser.php +++ b/core/Command/Group/AddUser.php @@ -2,6 +2,7 @@ /** * @copyright Copyright (c) 2016 Robin Appelman <robin@icewind.nl> * + * @author Joas Schilling <coding@schilljs.com> * @author Robin Appelman <robin@icewind.nl> * * @license GNU AGPL version 3 or any later version @@ -13,14 +14,13 @@ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ - namespace OC\Core\Command\Group; use OC\Core\Command\Base; @@ -61,7 +61,7 @@ class AddUser extends Base { ); } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { $group = $this->groupManager->get($input->getArgument('group')); if (is_null($group)) { $output->writeln('<error>group not found</error>'); @@ -73,5 +73,6 @@ class AddUser extends Base { return 1; } $group->addUser($user); + return 0; } } |