Code Duplication    Length = 8-8 lines in 2 locations

apps/files_trashbin/lib/expiration.php 1 location

@@ 50-57 (lines=8) @@
47
	/** @var bool */
48
	private $canPurgeToSaveSpace;
49
50
	public function __construct(IConfig $config,ITimeFactory $timeFactory){
51
		$this->timeFactory = $timeFactory;
52
		$this->retentionObligation = $config->getSystemValue('trashbin_retention_obligation', 'auto');
53
54
		if ($this->retentionObligation !== 'disabled') {
55
			$this->parseRetentionObligation();
56
		}
57
	}
58
59
	/**
60
	 * Is trashbin expiration enabled

apps/files_versions/lib/expiration.php 1 location

@@ 48-55 (lines=8) @@
45
	/** @var bool */
46
	private $canPurgeToSaveSpace;
47
48
	public function __construct(IConfig $config,ITimeFactory $timeFactory){
49
		$this->timeFactory = $timeFactory;
50
		$this->retentionObligation = $config->getSystemValue('versions_retention_obligation', 'auto');
51
52
		if ($this->retentionObligation !== 'disabled') {
53
			$this->parseRetentionObligation();
54
		}
55
	}
56
57
	/**
58
	 * Is versions expiration enabled