Code Duplication    Length = 9-11 lines in 2 locations

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

@@ 87-95 (lines=9) @@
84
	 * @param \OC\Files\Storage\Storage (optional) the storage to pass to the watcher
85
	 * @return \OC\Files\Cache\Propagator
86
	 */
87
	public function getPropagator($storage = null) {
88
		if (!$storage) {
89
			$storage = $this;
90
		}
91
		if (!isset($this->propagator)) {
92
			$this->propagator = new HomePropagator($storage, \OC::$server->getDatabaseConnection());
93
		}
94
		return $this->propagator;
95
	}
96
97
98
	/**

apps/files_sharing/lib/sharedstorage.php 1 location

@@ 314-324 (lines=11) @@
311
		return new \OCA\Files_Sharing\Scanner($storage);
312
	}
313
314
	public function getPropagator($storage = null) {
315
		if (isset($this->propagator)) {
316
			return $this->propagator;
317
		}
318
319
		if (!$storage) {
320
			$storage = $this;
321
		}
322
		$this->propagator = new \OCA\Files_Sharing\SharedPropagator($storage, \OC::$server->getDatabaseConnection());
323
		return $this->propagator;
324
	}
325
326
	public function getOwner($path) {
327
		return $this->superShare->getShareOwner();