Code Duplication    Length = 3-3 lines in 2 locations

lib/Controller/WopiController.php 2 locations

@@ 260-262 (lines=3) @@
257
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_linkAll', 'no') === 'yes') {
258
				return true;
259
			}
260
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_linkRead', 'no') === 'yes' && !$wopi->getCanwrite()) {
261
				return true;
262
			}
263
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_linkSecure', 'no') === 'yes' && $wopi->getHideDownload()) {
264
				return true;
265
			}
@@ 282-284 (lines=3) @@
279
					return true;
280
				}
281
			}
282
			if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_shareRead', 'no') === 'yes' && !$wopi->getCanwrite()) {
283
				return true;
284
			}
285
		}
286
		if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_allGroups', 'no') === 'yes') {
287
			$groups = $this->appConfig->getAppValueArray('watermark_allGroupsList');