Code Duplication    Length = 9-11 lines in 2 locations

lib/private/Files/Storage/Home.php 1 location

@@ 80-88 (lines=9) @@
77
	 * @param \OC\Files\Storage\Storage (optional) the storage to pass to the watcher
78
	 * @return \OC\Files\Cache\Propagator
79
	 */
80
	public function getPropagator($storage = null) {
81
		if (!$storage) {
82
			$storage = $this;
83
		}
84
		if (!isset($this->propagator)) {
85
			$this->propagator = new HomePropagator($storage, \OC::$server->getDatabaseConnection());
86
		}
87
		return $this->propagator;
88
	}
89
90
91
	/**

lib/private/Files/Storage/Wrapper/Jail.php 1 location

@@ 493-503 (lines=11) @@
490
		return $this->getWrapperStorage()->moveFromStorage($sourceStorage, $sourceInternalPath, $this->getUnjailedPath($targetInternalPath));
491
	}
492
493
	public function getPropagator($storage = null) {
494
		if (isset($this->propagator)) {
495
			return $this->propagator;
496
		}
497
498
		if (!$storage) {
499
			$storage = $this;
500
		}
501
		$this->propagator = new JailPropagator($storage, \OC::$server->getDatabaseConnection());
502
		return $this->propagator;
503
	}
504
}
505