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

@@ 552-554 (lines=3) @@
549
			// get available disk space for user
550
			$softQuota = true;
551
			$quota = $config->getUserValue($uid, 'files', 'quota', null);
552
			if ( $quota === null || $quota === 'default') {
553
				$quota = $config->getAppValue('files', 'default_quota', null);
554
			}
555
			if ( $quota === null || $quota === 'none' ) {
556
				$quota = \OC\Files\Filesystem::free_space('/');
557
				$softQuota = false;