Code Duplication    Length = 7-7 lines in 2 locations

core/Command/User/Setting.php 2 locations

@@ 178-184 (lines=7) @@
175
					return 1;
176
				}
177
178
				if ($app === 'settings' && $key === 'email') {
179
					$user = $this->userManager->get($uid);
180
					if ($user instanceof IUser) {
181
						$user->setEMailAddress($input->getArgument('value'));
182
						return 0;
183
					}
184
				}
185
186
				$this->config->setUserValue($uid, $app, $key, $input->getArgument('value'));
187
				return 0;
@@ 195-201 (lines=7) @@
192
					return 1;
193
				}
194
195
				if ($app === 'settings' && $key === 'email') {
196
					$user = $this->userManager->get($uid);
197
					if ($user instanceof IUser) {
198
						$user->setEMailAddress('');
199
						return 0;
200
					}
201
				}
202
203
				$this->config->deleteUserValue($uid, $app, $key);
204
				return 0;