Code Duplication    Length = 3-3 lines in 2 locations

lib/Controller/WopiController.php 2 locations

@@ 250-252 (lines=3) @@
247
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_linkAll', 'no') === 'yes') {
248
				return true;
249
			}
250
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_linkRead', 'no') === 'yes' && !$wopi->getCanwrite()) {
251
				return true;
252
			}
253
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_linkSecure', 'no') === 'yes' && $wopi->getHideDownload()) {
254
				return true;
255
			}
@@ 272-274 (lines=3) @@
269
					return true;
270
				}
271
			}
272
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_shareRead', 'no') === 'yes' && !$wopi->getCanwrite()) {
273
				return true;
274
			}
275
		}
276
		if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_allGroups', 'no') === 'yes') {
277
			$groups = $this->appConfig->getAppValueArray('watermark_allGroupsList');