Code Duplication    Length = 3-3 lines in 2 locations

apps/files_trashbin/lib/trashbin.php 1 location

@@ 651-653 (lines=3) @@
648
		$softQuota = true;
649
		$quota = $config->getUserValue($user, 'files', 'quota', null);
650
		$view = new \OC\Files\View('/' . $user);
651
		if ($quota === null || $quota === 'default') {
652
			$quota = $config->getAppValue('files', 'default_quota', null);
653
		}
654
		if ($quota === null || $quota === 'none') {
655
			$quota = \OC\Files\Filesystem::free_space('/');
656
			$softQuota = false;

apps/files_versions/lib/storage.php 1 location

@@ 544-546 (lines=3) @@
541
			// get available disk space for user
542
			$softQuota = true;
543
			$quota = $config->getUserValue($uid, 'files', 'quota', null);
544
			if ( $quota === null || $quota === 'default') {
545
				$quota = $config->getAppValue('files', 'default_quota', null);
546
			}
547
			if ( $quota === null || $quota === 'none' ) {
548
				$quota = \OC\Files\Filesystem::free_space('/');
549
				$softQuota = false;