Code Duplication    Length = 4-4 lines in 2 locations

lib/private/Share20/Manager.php 2 locations

@@ 272-275 (lines=4) @@
269
		}
270
271
		if ($share->getNode() instanceof \OCP\Files\File) {
272
			if ($share->getPermissions() & \OCP\Constants::PERMISSION_DELETE) {
273
				$message_t = $this->l->t('Files can\'t be shared with delete permissions');
274
				throw new GenericShareException($message_t);
275
			}
276
			if ($share->getPermissions() & \OCP\Constants::PERMISSION_CREATE) {
277
				$message_t = $this->l->t('Files can\'t be shared with create permissions');
278
				throw new GenericShareException($message_t);
@@ 276-279 (lines=4) @@
273
				$message_t = $this->l->t('Files can\'t be shared with delete permissions');
274
				throw new GenericShareException($message_t);
275
			}
276
			if ($share->getPermissions() & \OCP\Constants::PERMISSION_CREATE) {
277
				$message_t = $this->l->t('Files can\'t be shared with create permissions');
278
				throw new GenericShareException($message_t);
279
			}
280
		}
281
	}
282