Code Duplication    Length = 3-3 lines in 2 locations

apps/files_versions/lib/storage.php 1 location

@@ 672-674 (lines=3) @@
669
			// get available disk space for user
670
			$softQuota = true;
671
			$quota = $config->getUserValue($uid, 'files', 'quota', null);
672
			if ( $quota === null || $quota === 'default') {
673
				$quota = $config->getAppValue('files', 'default_quota', null);
674
			}
675
			if ( $quota === null || $quota === 'none' ) {
676
				$quota = \OC\Files\Filesystem::free_space('/');
677
				$softQuota = false;

apps/files_trashbin/lib/trashbin.php 1 location

@@ 581-583 (lines=3) @@
578
		$softQuota = true;
579
		$quota = $config->getUserValue($user, 'files', 'quota', null);
580
		$view = new \OC\Files\View('/' . $user);
581
		if ($quota === null || $quota === 'default') {
582
			$quota = $config->getAppValue('files', 'default_quota', null);
583
		}
584
		if ($quota === null || $quota === 'none') {
585
			$quota = \OC\Files\Filesystem::free_space('/');
586
			$softQuota = false;