Code Duplication    Length = 7-7 lines in 2 locations

controller/settings.php 2 locations

@@ 106-112 (lines=7) @@
103
		$types = $this->data->getNotificationTypes($this->l10n);
104
105
		foreach ($types as $type => $data) {
106
			if (!is_array($data) || (isset($data['methods']) && in_array(IExtension::METHOD_MAIL, $data['methods']))) {
107
				$this->config->setUserValue(
108
					$this->user, 'activity',
109
					'notify_email_' . $type,
110
					(int) $this->request->getParam($type . '_email', false)
111
				);
112
			}
113
114
			if (!is_array($data) || (isset($data['methods']) && in_array(IExtension::METHOD_STREAM, $data['methods']))) {
115
				$this->config->setUserValue(
@@ 114-120 (lines=7) @@
111
				);
112
			}
113
114
			if (!is_array($data) || (isset($data['methods']) && in_array(IExtension::METHOD_STREAM, $data['methods']))) {
115
				$this->config->setUserValue(
116
					$this->user, 'activity',
117
					'notify_stream_' . $type,
118
					(int) $this->request->getParam($type . '_stream', false)
119
				);
120
			}
121
		}
122
123
		$email_batch_time = 3600;