Code Duplication    Length = 3-3 lines in 2 locations

lib/Controller/WopiController.php 2 locations

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