Code Duplication    Length = 5-5 lines in 2 locations

lib/Controller/Settings.php 2 locations

@@ 127-131 (lines=5) @@
124
		}
125
126
		$email_batch_time = 3600;
127
		if ($notify_setting_batchtime === UserSettings::EMAIL_SEND_DAILY) {
128
			$email_batch_time = 3600 * 24;
129
		} else if ($notify_setting_batchtime === UserSettings::EMAIL_SEND_WEEKLY) {
130
			$email_batch_time = 3600 * 24 * 7;
131
		}
132
133
		$this->config->setUserValue(
134
			$this->user, 'activity',
@@ 187-191 (lines=5) @@
184
		}
185
186
		$email_batch_time = 3600;
187
		if ($notify_setting_batchtime === UserSettings::EMAIL_SEND_DAILY) {
188
			$email_batch_time = 3600 * 24;
189
		} else if ($notify_setting_batchtime === UserSettings::EMAIL_SEND_WEEKLY) {
190
			$email_batch_time = 3600 * 24 * 7;
191
		}
192
193
		$this->config->setAppValue(
194
			'activity',